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}"/>
About | Sitemap | Contact