attached please find a diff for command-line parameters. basically, anything following a solitary hyphen on the command-line is set as a property of the form 'commandArg1', 'commandArg2' etc. and can be accessed as a regular property within a build xml file.
i made the changes to Main.java (1.3 sources).
sample call:
ant.bat -buildfile aoeu.xml -debug -Dinstalldir=c:\tmp - arg1 arg2 arg3
so ${commandArg1} becomes 'arg1', ${commandArg2} becomes 'arg2'.
since a solitary hyphen was not in use in the past (and would generate an
error as an unrecognized option), i don't think this should break existing
calls to ant.
my apologies for not following the accepted methodology for patch
submission. am new here.
regards,
--
Salman Halim
Advisory Software Engineer, HP Bluestone
Quidquid latine dictum sit, altum viditur.
Main.diff
Description: Binary data
