ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject Re: CreateProcess Ant error=2
Date Wed, 29 Aug 2001 13:34:35 GMT

--- "Tait, Allen" <atait@IDEXX.com> wrote:
> I am executing Ant with a build.xml file that uses exec to execute
> Ant again
> on another build.xml that exists in a subdirectory.  This is on
> windows NT.
> I am getting the following message:
> 
> 
 <errors snipped>

> Here is a piece of the build.xml:
> 
>   <target name="subprojects" depends="5min">
>     <exec dir="content" executable="ant"/>
>     <mkdir dir="${build.dir}/webapp/lab"/>
>     <copy todir="${build.dir}/webapp/lab">
>       <fileset dir="content/output"/>
>     </copy>
>     <exec dir="help" executable="ant"/>
>     <mkdir dir="${build.dir}/webapp/help"/>
>     <copy todir="${build.dir}/webapp/help">
>       <fileset dir="help/output"/>
>     </copy>
>   </target>
> 
> 
> 
> This seems to be an environment issue.  I have Ant in my PATH.  Not
> sure why
> this is failing.  Has anyone else worked through this?

Replace the exec task with the ant task:

<ant dir="content" />

Check out the ant task in the manual.

-- Don



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message