scripting - How to Pass parameters for a Ant script , which is invoked via shell script? -


i need invoke ant script via shell script. let consider parameters ant script a,b,c. how can pass parameter variables? must provide parameters ant vis invoke shell script. can me on this?

do mean assigning value property command line? if so, try

-dpropertyname=itsvalue 

for example,

<project>     <target name="hi">         <property name="person" value="world"/>         <echo message="hello ${person}"/>     </target> </project> 

and then

ant -dperson="merryprankster" hi 

yields

 [echo] hello merryprankster 

Comments

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -