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