You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ma...@att.net on 2001/01/26 20:23:10 UTC
Re: Adding output
Greetings!
I am trying to put together a helper utility that will
parse a build.xml file and display the following things
to the user:
1.) Complete classpath necessary for the build
2.) A list of all .java, .jar, .zip, etc. files that
are used in the build.
3.) A listing of all of the classes that will be built.
Can anyone give me a push in the right direction here? I
am really enthusiastic about this, but I am having a
tough time getting the source straight. Is there already
an API I can tap into to do this? I do not want to build
anything with this utility, just output the above
listing.
Any Ideas?
Thanks,
Anthony Levensalor
Re: Adding output
Posted by David Corbin <dc...@machturtle.com>.
I think that would be a great feature to integrate into ant, with a
command line switch...
madscie@att.net wrote:
>
> Greetings!
>
> I am trying to put together a helper utility that will
> parse a build.xml file and display the following things
> to the user:
>
> 1.) Complete classpath necessary for the build
> 2.) A list of all .java, .jar, .zip, etc. files that
> are used in the build.
> 3.) A listing of all of the classes that will be built.
>
> Can anyone give me a push in the right direction here? I
> am really enthusiastic about this, but I am having a
> tough time getting the source straight. Is there already
> an API I can tap into to do this? I do not want to build
> anything with this utility, just output the above
> listing.
>
> Any Ideas?
>
> Thanks,
> Anthony Levensalor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org
--
David Corbin
Mach Turtle Technologies, Inc.
http://www.machturtle.com
dcorbin@machturtle.com
Re: Adding output
Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: <ma...@att.net>
To: <an...@jakarta.apache.org>
Sent: Friday, January 26, 2001 8:23 PM
Subject: Re: Adding output
> I am trying to put together a helper utility that will
> parse a build.xml file and display the following things
> to the user:
>
> 1.) Complete classpath necessary for the build
Where would you like to take this information from? Ant doesn't know this,
it's not included in the buildfile, ..? Even if you know what classes are
required to build, you still don't know where on the system these classes
are if they are not included in the classpath. Maybe the required jarfile is
not even available on the system? Where will you start searching and where
do you stop?
> 2.) A list of all .java, .jar, .zip, etc. files that
> are used in the build.
"That are used"? Do you mean are needed to compile? Isn't this the same as
1)?
> 3.) A listing of all of the classes that will be built.
This information is not included in the buildfile and not available to ant.
Maybe you can use the depend-task to do something like this, but I can't
tell you how. I think the classes included with the depend-task could be
capable of detecting the required classes and the classes which would be
generated (inner classes and non-public classes in the files, etc.).
Conclusion: Don't know how you will get the required information form a
buildfile, so I can't really help you.
Nico