ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Jagger <...@jaggersoft.com>
Subject slight duplication because target name is not available
Date Mon, 08 Nov 2004 13:49:55 GMT
Hi,
I'm using a package based structure, where each package has a target, 
like so:

<target name="a.b.c" depends="a.b,d.e">
  <run-test package="a/b/c" />
</target>

where run-test is a macrodef task that builds the package, then builds 
the tests for the package, then runs the tests. I'd like to avoid the 
obvious duplication. One idea is rather than the current:

 >ant a.b.c

I could use something along the lines of:

 >ant -Dpackage=a.b.c run-test

However I can't see how to do this and retain the explicit package-level 
dependencies. Any ideas?

Thanks
Jon Jagger



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


Mime
View raw message