ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: putting cmd args in ant.bat
Date Thu, 09 Jun 2005 09:57:17 GMT
The call of the batch file antrc_pre.bat in your home directory is the first
thing the Ant startup script does. antrc_post.bat is the last. So you could do
some extra work there.

The environment variable ANT_OPTS is given as argument:
"%_JAVACMD%" 
    %ANT_OPTS% 
    -classpath "%ANT_HOME%\lib\ant-launcher.jar" 
    "-Dant.home=%ANT_HOME%" 
    org.apache.tools.ant.launch.Launcher 
    %ANT_ARGS% 
    %ANT_CMD_LINE_ARGS%
Oh - no "-lib" option possible. Only VM-Parameters.

But you can set the environment variable ANT_ARGS.


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Gesendet: Donnerstag, 9. Juni 2005 10:33
>An: Ant Users List
>Betreff: RE: putting cmd args in ant.bat
>
>
>Hi, Jan
>
>
>sorry i don't understand
>
>could you provide me with some more details ?
>
>Gilbert
> 
>
>-----Original Message-----
>From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
>Sent: Thursday, June 09, 2005 10:10 AM
>To: user@ant.apache.org
>Subject: AW: putting cmd args in ant.bat
>
>- %HOME%\antrc_pre.bat"
>- %ANT_OPTS%
>
>Jan 
>
>>-----Urspr√ľngliche Nachricht-----
>>Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>>Gesendet: Donnerstag, 9. Juni 2005 09:48
>>An: Ant Users List
>>Betreff: RE: putting cmd args in ant.bat
>>
>>
>>Sorry forgot :
>>
>>i'm speaking of antinstall_dir/bin/ant.bat
>>
>> 
>>
>>-----Original Message-----
>>From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>>Sent: Thursday, June 09, 2005 9:18 AM
>>To: user@ant.apache.org
>>Subject: putting cmd args in ant.bat
>>
>>
>>Hi,
>>
>>what's the right point to put the argument
>>
>>-lib path/to/my/extralibs
>>
>>in, if idon't want to put that path into %PATH% ?
>>
>>
>>[ ... ]
>>:end
>>set _JAVACMD=
>>set ANT_CMD_LINE_ARGS=-lib path/to/my/extralibs  <----- here ?
>>[ ... ]
>>
>>With space after '=' or right behind like above ?
>>
>>The manual only speeks of ANT_ARGS - Ant command-line arguments ...
>>
>>
>>
>>Gilbert
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message