ASF Bugzilla – Attachment 7823 Details for
Bug 22428
PATCH - option to run tasks inside a loop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Path for main branch on CVS (not tested, as build is broken)
patch_loop_main (text/plain), 2.06 KB, created by
Felipe Leme
on 2003-08-14 15:53:18 UTC
(
hide
)
Description:
Path for main branch on CVS (not tested, as build is broken)
Filename:
MIME Type:
Creator:
Felipe Leme
Created:
2003-08-14 15:53:18 UTC
Size:
2.06 KB
patch
obsolete
>Index: src/main/org/apache/tools/ant/Main.java >=================================================================== >RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/Main.java,v >retrieving revision 1.91 >diff -u -r1.91 Main.java >--- src/main/org/apache/tools/ant/Main.java 5 Aug 2003 15:40:56 -0000 1.91 >+++ src/main/org/apache/tools/ant/Main.java 14 Aug 2003 04:51:50 -0000 >@@ -116,6 +116,9 @@ > /** keep going mode */ > private boolean keepGoingMode = false; > >+ /** loop mode */ >+ private boolean loopMode = false; >+ > /** > * The Ant logger class. There may be only one logger. It will have > * the right to use the 'out' PrintStream. The class must implements the >@@ -198,7 +201,15 @@ > > try { > Diagnostics.validateVersion(); >- processArgs(args); >+ boolean continueLoop = false; >+ do { >+ processArgs(args); >+ if ( loopMode ) { >+ System.out.println( "\nPress Enter to continue or q + Enter to quit" ); >+ char key = (char) System.in.read(); >+ continueLoop = key != 'q' && key != 'Q'; >+ } >+ } while ( continueLoop ); > } catch (Throwable exc) { > handleLogfile(); > printMessage(exc); >@@ -430,6 +441,8 @@ > } > } else if (arg.equals("-k") || arg.equals("-keep-going")) { > keepGoingMode = true; >+ } else if (arg.equals("-loop")) { >+ loopMode = true; > } else if (arg.startsWith("-")) { > // we don't have any more args to recognize! > String msg = "Unknown argument: " + arg; >@@ -821,6 +834,7 @@ > msg.append(" -inputhandler <class> the class which will handle input requests" + lSep); > msg.append(" -find <file> search for buildfile towards the root of the" + lSep); > msg.append(" filesystem and use it" + lSep); >+ msg.append(" -loop loop mode" + lSep); > System.out.println(msg.toString()); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22428
:
7822
| 7823 |
7842