You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jon Jagger <jo...@jaggersoft.com> on 2004/11/08 14:49:55 UTC
slight duplication because target name is not available
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