Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.