Marcel, I have committed this patch with a few minor changes.
I changed the command line option from -targets to -projecthelp. I hope to add a <help> tag to the project as a nested element and include that in this output. I also removed the test for the null description. This means that currently all targets are displayed. It seemed more useful that way. That leaves the problem of hiding "internal" targets. Conor > -----Original Message----- > From: Marcel Schutte [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 15 August 2000 1:34 > To: [EMAIL PROTECTED] > Subject: [PATCH] Suggestion for new commandline switch -targets (II) > > > Here is a version that depends on the presence of description > attributes on > targets. On ant's build.xml with some descriptions added the output is: > > ================== > Buildfile: build.xml > Targets: > -dist Creates the distribution > -javadocs Creates the API documentation > -bootstrap Installs the ant.jar library and binary files into ant.home > -main Creates the binary structure > > > BUILD SUCCESSFUL > > Total time: 1 seconds > =================== > > The targets look like: > > <target name="main" depends="jar" description="Creates the binary > structure"> > > Regards, > Marcel Schutte >
