ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject Re: DO NOT REPLY [Bug 6591] New: - Access to public static fields of an external class
Date Wed, 20 Feb 2002 20:33:15 GMT
From: <>

> Access to public static fields of an external class
> In order to generate the right myapp-X.Y.Z.tar.gz file, the X.Y.Z version
> be defined into an Ant property.  Because this version number is generally
> written somewhere in a Java class this information is redundant.  It would
> nice if Ant could access a public static field from any Java class and
handle it
> as a property.

With the FilterReader hat on, I look at this as
another use-case for a task like <loadproperties>
(with filterreaders, of course :-) )

<loadproperties file="foo.class">
        <filterreader classname="my.own.GetConstantsFromClassAsProperties"/>

Anyway, till such a task sees the light of day...


*  Conference Room: A place where everybody talks,   *
*  nobody listens and everybody disagrees later on.  *

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message