ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: What is the best way to pass parameters to <script> task?
Date Tue, 03 Sep 2002 19:44:18 GMT
How can I access properties from the script?

- Alexey.

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
Sent: Tuesday, September 03, 2002 12:42 PM
To: Ant Users List
Subject: Re: What is the best way to pass parameters to <script> task?

No, Ant does not expand ${} inside script files or in-line script.

But as for redefining properties, have a look at <antcall> where 
properties can be "overridden" - just move your <script> inside a target 
that is <antcall>'d.

	Erik


Alexey Solofnenko wrote:
> But properties cannot be redefined. So, if I want to use the same script
for
> different directories, I cannot use the same property. Does ANT expand
"${}"
> strings inside script files?
> 
> - Alexey.
> 
> --
> { http://trelony.cjb.net/   } Alexey N. Solofnenko
> { http://www.inventigo.com/ } Inventigo LLC
> Pleasant Hill, CA (GMT-8 usually)
> 
> -----Original Message-----
> From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
> Sent: Tuesday, September 03, 2002 12:27 PM
> To: Ant Users List
> Subject: Re: What is the best way to pass parameters to <script> task?
> 
> Ant properties seems to be the most appropriate way to communicate back 
> and forth with <script> stuff.  If you must use <script>, that is!  :)
> 
> Alexey Solofnenko wrote:
> 
>>Hello,
>>
>>  since scripts are not always small, it is often better to store the
>>scripts in separate files. What is the best way to pass parameters to the
>>scripts (like directory path or classpath or anything else)?
>>
>>- Alexey.
>>
>>--
>>{ http://trelony.cjb.net/   } Alexey N. Solofnenko
>>{ http://www.inventigo.com/ } Inventigo LLC
>>Pleasant Hill, CA (GMT-8 usually)
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>>
>>
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 



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

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


Mime
View raw message