Comment 3 for bug 1224481

Revision history for this message
markshao (mark-shao) wrote :

I trigger the sikuli script by the ant task 'exec'.

There are three exit code happened according to the log

     [exec] The problems found when running the application
     [exec] Traceback (most recent call last):
     [exec] File "C:\Users\user\Desktop\scripts_folder\deployment.sikuli\deployment.py", line 112, in <module>
     [exec] exit(3)
     [exec] File "C:\sikuli\sikuli1.0.1\sikuli_download\sikuli-ide.jar\Lib\sikuli\Sikuli.py", line 232, in exit
     [exec] sys.exit(code)
     [exec] SystemExit: 3
     [exec] [info] Exit code: 1
     [echo] [Ant] The deployment process exit code is 0

1. The exit(3) function try to exit the process with the code 3
2. But the [info] Exit code :1 shows that the sikuli process is return with 1 exit code
3. The outside ant get the subprocess exit code 0

I am trying the investigate the ant code to see why the ant get the exit code = 0 , but still strange thing is that why the info shows the exit code is 1

My Environement

1. Ant 1.7.1
2. JDK 1.6.0_32
3. Sikuli is the latest version download from today