Re: Trouble executing python script in Unix

2008-07-16 Thread Keith Hughitt
Got it :) Somewhat round-about, but I wrote a small bash script that accepts two arguments and wraps the first one in <> and then executes the command: #!/bin/bash input=$1 output=$2 ./jsmin.py <$input>$output

Re: Trouble executing python script in Unix

2008-07-16 Thread André Pilz
Hi, oh, the <|> problem. Today learned: Never ignore funny arguments. Maybe the output/input attributes of the task are helpful. In my cases I use a self-written ant task. Cheers, André Keith Hughitt schrieb: Hi André, Thanks for the suggestion. Python does find the script: Adding a print

Re: Trouble executing python script in Unix

2008-07-16 Thread Keith Hughitt
Hi André, Thanks for the suggestion. Python does find the script: Adding a print statement in the python script shows up during the build. Originally I thought that the issue might be due to the script not finding the input file. I now think, however, it may be due to how python interprets the ang

Re: Trouble executing python script in Unix

2008-07-16 Thread André Pilz
Seems like python doesn't find the script (because there is no error message). Possible solutions: - use absolute path for script location: - call script directly (like your working test.py): resolveexecutable="true"> I also note the double

Re: Trouble executing python script in Unix

2008-07-16 Thread Keith Hughitt
Hi Luis, Thanks for the suggestion. I had tried using "ant -v" before, and also redirecting the output, but was not aware of the '-d' parameter. The script *should* result in a new file, "proj-all-min.js" being created. The file is only created when I run the script manually, however, and not when

Re: Trouble executing python script in Unix

2008-07-16 Thread André Pilz
Hi, need more info to help you. Use "ant -d" to get the command line and the arguments how python is called. How exactly does it not work? Any error message? Cheers, André Keith Hughitt schrieb: Hi all, I've just recently started using Ant on Linux, and so far it has been really amazing. I

Trouble executing python script in Unix

2008-07-15 Thread Keith Hughitt
Hi all, I've just recently started using Ant on Linux, and so far it has been really amazing. I've run into one problem, however, that I haven't been able to get past. I would like to call an external script (a python script to minimize some JavaScript files), but have not been able to get it to