ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
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: <bugzilla@apache.org>

> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6591
>
> 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
must
> be defined into an Ant property.  Because this version number is generally
> written somewhere in a Java class this information is redundant.  It would
be
> 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">
    <filterreaderset>
        <filterreader classname="my.own.GetConstantsFromClassAsProperties"/>
    </filterreaderset>
</loadproperties>

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

Cheers,
Magesh

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



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message