Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
ANT task to process properties-files into static class

ANT task to process properties-files into static class

2007-01-02       - By Scot P. Floess
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Sorry, I'm not sure I follow your problem...  Do you mean Ant should
somehow generate a properties file based upon your build.xml
properties?  Who sets the properties and how is this null pointer being
raised?  I am a "wee" bit confused ;)

Rapthor wrote:
> Scot P. Floess wrote:
>  
>> If a property does not exist, why is a null pointer thrown?  I assume
>> you mean java.util.Properties?  If so, that does not raise a null
>> pointer exception.
>>
>>    
>
> You are right ... the NullPointerException would be thrown if I relied on a
> value read from the Properties instance. (If no matching key was present in
> the file.)
>  

--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.