I added some features tonight to the windows batch file in CVS. 1) Echo ON/OFF as an optional environment variable.
You can now set the environment variable 'ECHO' to a value and that will be used in the batch file. If it's not set, ECHO will remain OFF Sample: Set ECHO=ON Will cause all batch commands to be displayed. 2) Pause at the end of the batch file is enabled via an Environment variable Set the environment variable 'PAUSE' to a value and the batch file will pause before finishing. This is handy when launching from explorer or a shortcut. Sample: Set PAUSE=X Will cause the batch file to pause at the end waiting for a key stroke. 3) User provided options to Maven's JVM Set the environment variable 'MAVEN_OPTS' to a value, and it will be passed to the JVM on the command line *after* the standard maven options, hence overriding the defaults. This is handy when you want to pass some extra parameters to the JVM/Maven and don't want to hack your own batch file. Sample: Set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE Set MAVEN_OPTS=%MAVEN_OPTS% -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 Sets up Maven in debug mode, waiting for you to attach to it from your debug session. Docs later :) -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
