You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hanasaki <ha...@hanaden.com> on 2004/05/02 05:48:03 UTC

subant project namespace clash ant 1.6.1 - target name polymorphism

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