ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Jagger <>
Subject slight duplication because target name is not available
Date Mon, 08 Nov 2004 13:49:55 GMT
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" />

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?

Jon Jagger

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message