Hi,

I am trying to execute a command line task via ant and somehow it didn't
work.  For example, for a simple command line task like "ls -l *" I
implemented as

<target name="mytarget">
<exec executable="ls" failonerror="True"[>
<arg line="-l *" />
</exec>
</target>

And ant gave me:

compilejsp:
     [exec] Current OS is SunOS
     [exec] ls -l *

BUILD FAILED

/home/rsu/prototype/exec.xml:19: exec returned: -1
        at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java,
Compiled Code)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java,

Compiled Code)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java,

Compiled Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled
Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled
Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)


Does anyone have an idea what's wrong?  I couldn't get more output from
ant by specifying -verbose or -debug.  So I have no idea what's going
on.

Thanks a lot!

Zhendi Su

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to