ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Blaukopf <Daniel.Blauk...@Sun.COM>
Subject Re: Referencing another build file
Date Mon, 06 Nov 2006 17:22:08 GMT
Use a propertyset with a mapper:

<ant ...>
    <mapper type="glob" from="*" to="parent.*"/>

and then refer to the parent's dist.dir as ${parent.dist.dir}

alternatively, just override the specific property:

<ant ...>
  <property name="parent.dist.dir" value="${dist.dir}"/>


David Bates wrote:

> I'm using Ant within Netbeans.  I have two projects: ProjectA and
> ProjectB.  ProjectA is dependant upon ProjectB.  I'm trying to write a
> new task which will copy the JAR produced by each project onto my web
> server.
> The problem I am having is that I can't find a nice way to refer to the
> location of the "dist" directory for ProjectB because the variable name
> for the location is called ${dist.dir} in both projects, rendering the
> "inheritall" Ant task attribute fairly useless.  
> Any thoughts?
> Cheers,
> David.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message