stevel 02/05/07 08:11:24
Modified: src/main/org/apache/tools/ant Tag: ANT_15_BRANCH Main.java
Log:
PR4942: no list of targets if none has a description...now we list subtargets
if there are no described targets, which gives better backwards compatibility
This commit comes from building 20, MS redmond campus :)
Revision Changes Path
No revision
No revision
1.65.2.1 +5 -1 jakarta-ant/src/main/org/apache/tools/ant/Main.java
Index: Main.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
retrieving revision 1.65
retrieving revision 1.65.2.1
diff -u -r1.65 -r1.65.2.1
--- Main.java 23 Apr 2002 08:15:51 -0000 1.65
+++ Main.java 7 May 2002 15:11:24 -0000 1.65.2.1
@@ -851,7 +851,11 @@
}
printTargets(topNames, topDescriptions, "Main targets:", maxLength);
-
+ //if there were no main targets, we list all subtargets
+ //as it means nothing has a description
+ if(topNames.size()==0) {
+ printSubTargets=true;
+ }
if (printSubTargets) {
printTargets(subNames, null, "Subtargets:", 0);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>