cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject FYI Class Constants as Ant properties
Date Sun, 16 Mar 2003 23:11:33 GMT

I was browsing the Ant docs, and found this... so we can also keep 
constants in java classes and use them in the Ant buildfile.


This filters basic constants defined in a Java Class, and outputs them 
in lines composed of the format name=value

This loads the basic constants defined in a Java class as Ant properties.

<loadproperties srcfile="foo.class">
     <filterreader classname=""/>

Convenience method:

<loadproperties srcfile="foo.class">

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message