FYIFrom: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: [NAnt-users] NANT command
line argsDate: Sat, 11 Aug 2007 14:31:28 -0500
Hi Gert,Good question! The answer:First, I want to record the arguments being
passed by NANT for record the project's configuration. It is important part of
reproducing a configuration. Second, I want to call the NANT buildfile with
the same arguments passed using an asynchronous task. This asynchronous task is
a long processing task that has no dependencies and can thus be standalone. So,
the asynchronous process is being called with the exact same arguments being
passed in the CLI (command line interface). BTW, I've created a task that does
this and figured out a workaround to the argument passing (see the
following).In a batchfile:SET NANT_CLI_ARGS= /f:Mybuildfile.build -D:avar=1
-D:bvar=2call nant %NANT_CLI_ARGS%In the build file I use:<property
name="NANT.CLI.ARGS" value="${environment::get-variable(name)}"/> My simple
workaround :-)-AlanFrom: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL
PROTECTED]: RE: [NAnt-users] NANT command line argsDate: Sat, 11 Aug 2007
09:02:45 +0200
Alan,
No, why would you need
this ?
Gert
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan
GuedeneySent: zaterdag 11 augustus 2007 0:13To:
[EMAIL PROTECTED]: [NAnt-users] NANT command
line args
Is there a property in NANT that stores all
the command line arguments?-Alan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users