ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhendi Su <rachael...@oracle.com>
Subject error running <exec> task
Date Wed, 06 Feb 2002 03:25:32 GMT
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


Mime
View raw message