ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael sorens" <msor...@myrealbox.com>
Subject ant access of java constants
Date Fri, 21 Jan 2005 01:24:17 GMT
Is it possible to set an ant property to a value that is a static constant from a Java class
file?
Example:

public class Stuff {
	. . .
	static final int FOOBAR=42;
	. . .
}

Access with something like this...?

<property name="foobar" value=???? Stuff.FOOBAR />

Or more generally, could one set a property to the value of a static method?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message