You are not logged in.
Announcement
Unanswered posts
|
Hi
Awesome!!!
Thanks for your feedback.
Regards,
Pedro
If someone else needs to do this for any reason, the best way I found was this solution:
String path = ErrorLog.class.getProtectionDomain().getCodeSource().getLocation().getPath();
if (path.contains("/workspace/.Java/classes")) {
System.out.println("-- Debug Run from inside Talend");
}
Unfortunately that means changing the .bat/.sh file everytime we do an export.
I was hoping there would be some kind of environment variable/flag or something to detect debug mode / running inside the Talend environment?
Hi
As far as I know, there isn't any way to distinguish them.
Only a workaround is to add some code in .bat/ .sh script.
For example, "echo running_bat"...
Regards,
Pedro
Is is possible to detect from code whether the current job execution is running from inside Talend (F6) or it is executing from the console (running .bat / .sh) ?