Hi,
I hava a code that gets the InputStream for a file :
Object.class.getResourceAsStream("/config.xml");
This works fine when run on an app server with the server classpath set to the file's path.
When this code is executed outside the appserver from an
Ant task the InputStream returned is null. I tried placing the file at different locations and also specifying it in Ant's classpath, but no luck.
Is it even possible to execute this code from Ant or main class?
Thanks for your help,
Kamath
[ July 18, 2006: Message edited by: Dileep Kamath ]