You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Russ Fink <ru...@hotmail.com> on 2001/12/12 17:47:18 UTC
Re: [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.database.name=${scarab.database.prop.name}
>install-jar"/>
> </exec>
> </target>
I think you want to use the <ant> target:
<ant antfile="build.xml" target="clean">
The docs say that properties in your build.xml will propagate through to
other build.xml's.
The problem with the way you're doing it (besides that there's a specific
feature to do this exact thing) is maybe that it can't find the classpath.
I dunno, that's only a guess.
HTH,
Russ
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [ANT]/exec/arg/line
Posted by Richard Han <ri...@bitonic.com>.
Thank you Russ! It does help.
richard
----- Original Message -----
From: "Russ Fink" <ru...@hotmail.com>
To: <an...@jakarta.apache.org>
Sent: Wednesday, December 12, 2001 4:47 PM
Subject: Re: [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.database.name=${scarab.database.prop.name}
> >install-jar"/>
> > </exec>
> > </target>
>
> I think you want to use the <ant> target:
> <ant antfile="build.xml" target="clean">
>
> The docs say that properties in your build.xml will propagate through to
> other build.xml's.
>
> The problem with the way you're doing it (besides that there's a specific
> feature to do this exact thing) is maybe that it can't find the classpath.
> I dunno, that's only a guess.
>
> HTH,
> Russ
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>