You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Richard Han <ri...@bitonic.com> on 2001/12/12 17:13:53 UTC

[ANT]/exec/arg/line

Hi,
Could you help me with the following problem?
I try to run the following target by:
                ant  -f  build.xml  build-fulcrum

The target: build-fulcrum in the build.xml is:

 <target name="build-fulcrum">
        <exec executable="ant" dir="${fulcrum.dir}">
            <arg line="clean"/>
        </exec>
        <exec executable="ant" dir="${fulcrum.dir}">
            <arg line="-Dsecurity.database.name=${scarab.database.prop.name} -Dscheduler.database.name=${scarab.database.prop.name}
install-jar"/>
        </exec>
    </target>

however, I got error message:
Execute failed: java.io.IOException: CreateProcess: ant clean error=2

If you know what is the problem, please let me know. Thanks!

richard



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [ANT]/exec/arg/line

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Richard Han" <ri...@bitonic.com>
To: <an...@jakarta.apache.org>
Sent: Wednesday, December 12, 2001 8:13 AM
Subject: [ANT]/exec/arg/line
>
>  <target name="build-fulcrum">
>         <exec executable="ant" dir="${fulcrum.dir}">
>             <arg line="clean"/>
>         </exec>
>         <exec executable="ant" dir="${fulcrum.dir}">
>             <arg
line="-Dsecurity.database.name=${scarab.database.prop.name} -Dscheduler.data
base.name=${scarab.database.prop.name}
> install-jar"/>
>         </exec>
>     </target>
>
> however, I got error message:
> Execute failed: java.io.IOException: CreateProcess: ant clean error=2


=executable not found on win32, (see error.h in VC++ include dir)
#define ERROR_FILE_NOT_FOUND        2

If you want to call ant this way, use the full exe name of ant.bat


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>