Ant -- getting a value from a class


C

Chris

Got an Ant question. My Ant script needs a version number as a property. The
version number is defined as a static public constant in one of my classes.
How do I get that value into my script?

class MyClass {
public static final String VERSION = "1.0";
}

build.xml:
<property name="version" value="somehow get this value from MyClass">
 
Ad

Advertisements


Top