You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <dd...@gmail.com> on 2007/12/01 04:25:01 UTC

Re: AW: Alternative to subant

On Nov 29, 2007 1:21 PM, Dominique Devienne <dd...@gmail.com> wrote:
> On Nov 29, 2007 12:40 PM, Francisco Tolmasky <to...@gmail.com> wrote:
> > Is there any way to say:
> > "Use the build file in the directory if the directory contains a properties file?"
>
> I would have thought it to be possible with selectors and a mapper,
> but I don't see how do it in practice. I thought I used to do
> something like this...

Francisco, in case you missed the other thread, Matt answered your
question there. I've pasted the code here for you. --DD

>   <fileset dir="${basedir}" includes="*/build.xml">
>     <present targetdir="${basedir}">
>       <mapper type="glob" from="*/build.xml" to="*/project.properties" />
>     </present>
>   </fileset>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: AW: Alternative to subant

Posted by Francisco Tolmasky <to...@gmail.com>.
ah yes, somehow I missed that.  thanks!

On Nov 30, 2007 7:25 PM, Dominique Devienne <dd...@gmail.com> wrote:
> On Nov 29, 2007 1:21 PM, Dominique Devienne <dd...@gmail.com> wrote:
> > On Nov 29, 2007 12:40 PM, Francisco Tolmasky <to...@gmail.com> wrote:
> > > Is there any way to say:
> > > "Use the build file in the directory if the directory contains a properties file?"
> >
> > I would have thought it to be possible with selectors and a mapper,
> > but I don't see how do it in practice. I thought I used to do
> > something like this...
>
> Francisco, in case you missed the other thread, Matt answered your
> question there. I've pasted the code here for you. --DD
>
> >   <fileset dir="${basedir}" includes="*/build.xml">
> >     <present targetdir="${basedir}">
> >       <mapper type="glob" from="*/build.xml" to="*/project.properties" />
> >     </present>
> >   </fileset>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
Francisco Tolmasky
www.tolmasky.com
tolmasky@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org