At 06:13 29/1/01 +0100, Jesse Glick wrote:
>Stefan Bodewig wrote:
>> [snip]
>> I've tried to ensure a Constants.class has been built before, I've
>> specified the order in which the source directories should be searched
>> via <src path=...> - I've run out of ideas.
>> [snip]
>
>Maybe I missed something, but what is wrong with:
>
>--------%<------- ..../tools/ant/versioning.properties
>version=1.3alpha
>....
>--------%<------- ..../tools/ant/Main.java
>// ...
>Properties p = new Properties();
>p.load(getClass().getResourceAsStream("versioning.properties"));
>String version = p.getProperty("version");
>// ...
>--------%<-------
>
>?
Cause it is WRONG. Because it won't work in some embedded environments and
because it is WRONG ;) Getting the version of something should not be
subject to failure at any time.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
|