ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Hildebrand \(web\)" <Hal.Hildebr...@hellblazer.com>
Subject Re: <import> would be nice
Date Sat, 25 May 2002 01:47:25 GMT
I would love to have <import>.  If nothing else, xml includes really
suck.

----- Original Message -----
From: "Alexey Solofnenko" <alexeys@mdli.com>

> Hello,
>
>   it is well known that recursive builds at least make build slower,
but
> they also lead to incomplete dependency trees. But the main problem
with
> recursive builds is parallel execution of targets. It is inherently
very
> difficult (?impossible?) to efficiently use parallel build in
recursive
> process, because not all dependencies are specified in all build
files. I am
> thinking that something like <import buildfile="dir/build.xml"
base="dir"
> prefix="subcomponent1"/> would help a lot. <import> would allow to
specify
> inter-component dependencies inside each component build file without
> causing ANT to repeatedly execute subcomponent builds. It would also
allow
> to specify recursive inter-component dependencies (not recursive
target
> dependencies). What do you think?
>
> Sincerely,
>   Alexey Solofnenko.
>
> Here is an example:
>
> <project>
>   <import buildfile="dir/build.xml" base="dir"
prefix="subcomponent1"/>
>   <property name="prop1" value="${subcomponent1.prop1}"/>
>   <target name="all-rec" depends="all,subcomponent1.all"/>
>   <target name="all" depends="classes,jars"/>
>   <target name="jars" depends="classes,subcomponent1.classes"/>
> </project>
>
> --
> { http://trelony.cjb.net/   } Alexey N. Solofnenko
> { http://www.inventigo.com/ } Inventigo LLC
> Pleasant Hill, CA (GMT-8 usually)
>
> --
> To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
>
>
>


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


Mime
View raw message