ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarun Garg" <tar...@induslogic.com>
Subject Re: property
Date Fri, 28 Sep 2001 05:32:32 GMT
I did exactly the same thing too, for the subprojects.
Though it appears a bit odd that a target should call a target in the parent
file which again calls a target back in the same file, but it works. And is
pretty neat too.


----- Original Message -----
From: "Victor Hadianto" <victorh@nuix.com.au>
To: <ant-user@jakarta.apache.org>
Sent: Friday, September 28, 2001 4:51 AM
Subject: Re: property


>
> > and similarly other build files too.
> > But now I realise that your design is much neater.
> > (Its my first brush with ant or make system of any kind. Couldn't think
of
> > such a basic thing.)
> > Thanks for the tip.
> > It would certainly make things simpler.
> >
>
> Yupe I got similar problem as well and that is how I solved the problem.
> However the problem arise when I tried to compile from the sub-project, I
> then make the target on the subproject call the top most level. fe:
>
>
> <project name="main" basedir=".">
>    <target name="build-A" depends="build-B, build-C">
>      <ant antfile="dirA/build.xml" dir="dirA"/>
>    </target>
> </project>
>
> and in B:
> <project name="B" default="build" basedir=".">
>    <target name="build">
>      <ant antfile="../build.xml" target="build-B/>
>    </target>
> </project>
>
>
> I wonder what other people has done for similar thing.
>
> Regards,
> Victor
>


Mime
View raw message