Ant -- getting a value from a class

Discussion in 'Java' started by Chris, Jul 30, 2003.

  1. Chris

    Chris Guest

    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">
     
    Chris, Jul 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    6
    Views:
    2,265
  2. john martin
    Replies:
    2
    Views:
    2,233
    john martin
    Apr 7, 2005
  3. E11
    Replies:
    1
    Views:
    4,844
    Thomas Weidenfeller
    Oct 12, 2005
  4. Replies:
    1
    Views:
    527
    Larry
    Mar 7, 2006
  5. Replies:
    6
    Views:
    890
Loading...

Share This Page