How I can pass a string from my ant task to a build.xml?

Erik Hatcher

Using Ant properties:

   ant -Dsome.prop=value
And in your build.xml, use ${some.prop} to get the value, for example:
  <echo message="some.prop = ${some.prop}"/>
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact