Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
stefan_ilogs
Contributor
Contributor

Content of context ignored after job build

HI,

 

I am using Talend 7.2.1.

 

i have some troubles with changing the context (db connections,...) variables after i build my job.

 

It seems that the job does not use the content of the context file (in my case DEV.proberties). So i am not able to change the db connection after i built the job.

 

The content of my .bat file:

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository="%cd%/../lib" -Xms256M -Xmx1024M -cp classpath.jar; report.ipca_main_1_1.ipca_main --context=DEV %*

 

Attached is a screentshot of the options i set, when i built the job.

 

Can anyone help or know why the job ignores the context files?

 

Thanks in advance

 

 

Labels (1)
  • v7.x

1 Reply
stefan_ilogs
Contributor
Contributor
Author

i found the "error"

 

Talend gernerates the .bat file like this...

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository="%cd%/../lib" -Xms256M -Xmx1024M -cp classpath.jar; report.ipca_main_1_1.ipca_main --context=DEV %*

 

but it should look like this

 

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository="%cd%/../lib" -Xms256M -Xmx1024M -cp .;classpath.jar; report.ipca_main_1_1.ipca_main --context=DEV %*

 

in front of classpath i added " .;  ". Now it works, but it is not a proper solution because i dont want to change the but file everytime i build the job.