Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

pedro
2012-06-27 03:48:40

Hi

Awesome!!!
Thanks for your feedback.

Regards,
Pedro

sguft
2012-06-26 12:20:02

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");
}

sguft
2012-06-19 08:54:01

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?

pedro
2012-06-18 04:06:51

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

sguft
2012-06-15 13:27:00

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) ?

Board footer

Powered by FluxBB