ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanasaki <hanas...@hanaden.com>
Subject subant project namespace clash ant 1.6.1 - target name polymorphism
Date Sun, 02 May 2004 03:48:03 GMT
Below is a description of what I wish to accomplish and what is 
happening with the current approach.  I think what is needed is not <ant 
or <subant but a way to use <ant on multiple build files selected in the 
same way that <subant runs multiple files with a fileset.

The reason for using the same projectname is to achieve some 
polymorphism of ant targets.

Any suggestions are appreciated.  Thank you

thanks
=============

build_1.xml includes build_x.xml
	build_1.xml project name="build_1"
	build_x.xml project name="build_special"

project target build_1.all calls subant on some directories

build_sub1.xml includes build_x.xml
	build_sub1.xml project name="build_sub1"

problem
================
when calling target build_1.all, ant calls target
build_sub1.all and then reports build_special was
first defined in build_1 and then again in
build_sub1

The reason for using the same projectname is to achieve some 
polymorphism of ant targets.

directories and files
========================
.
..
build_1.xml
	subdir1
		build_sub1.xml
build_x.xml

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


Mime
View raw message