ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alfredo Perez" <>
Subject Target overriding inside imported files.
Date Fri, 28 Nov 2008 17:25:53 GMT
Hi everybody.

I'm working with Eclipse and I have auto generated the build.xml file. There
is a way to automatically import your own buildfiles by adding
<?eclipse.ant.import?> on the top.
My question: ┬┐Is it possible to override the definition of a target in order
to specify the dependencies?
Let's say for example:

<!-- Eclipse automatically generated build.xml file -->
<project ...
<import file="build.proxies.xml"/>
<target depends="build-subprojects,build-project" name="build"/>
<!-- End of Eclipse automatically generated build.xml file -->


<!-- My own build.proxies.xml file -->
<project ...

<!-- Override the target to add the dependency of build -->
<target depends="generateproxies" name="build" />

<target name="generateproxies">
    <!-- generate the proxies for the project -->

<!-- End of my own build.proxies.xml file -->

Or, do you have any other suggestion in order no to modify the main
build.xml file every time?
Thank you very much in advance.
Best Regards.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message