ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: How to get list of build files that will be executed for Ant build
Date Wed, 18 Nov 2015 07:31:37 GMT
Hacking is always ... surprising ;) as you use APIs in way they weren't intended for.
But it makes fun :O

I am not sure if you can get these information during runtime.
But collecting during a build and analyzing afterwards could be possible using a custom BuildListener.
With that you get all meessages and could filter ...

How could a build be invoked? <ant>, <subant>, <exec>, <java>, <script>,
<macrodef> wrapping these, custom tasks ...
Many possibilities.


Jan


> -----Urspr√ľngliche Nachricht-----
> Von: nitin reddy [mailto:nitin.reddy88@gmail.com]
> Gesendet: Mittwoch, 18. November 2015 07:47
> An: user@ant.apache.org
> Betreff: How to get list of build files that will be executed for Ant
> build
> 
> Hi,
> 
> I am writing some plugin/hack which needs all the build files that will
> be used by Ant for the project [Multi-module project].
> 
> Something similar to this
> 
> My Project----- build.xml|----- Module 1
>       |
>       ----- build.xml|----- Module 2
>       |
>       ----- build.xml
> 
> and the build.xml is like this
> 
> <project name="test">
>  <property name="project.name" value="test"/>
> 
>  <ant antfile="module1/build.xml" />
>  <ant antfile="module2/build.xml" />
> </project>
> 
> There's echoproperties task which can list out some useful information.
> 
> But it doesn't list out anything regarding `antfile` which can call
> another build.xml
> 
> 
> 
> Any help is appreciated.


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


Mime
View raw message