Found the answer to my question with this post:

http://www.ant-tasks.com/msg/9124.html


I ended up swapping out the AntClassLoader as directed in this post.


Phillip Rhodes wrote:

The problem is my ant task cannot seem to locate an xml file that is to be located in the classpath. I have supplied the directory the xml file is in to the taskdef (the same classpath definition works on the java and junit tasks). When I invoke the task, my task is found, but the spring config file (configured to read via the classpath) is not found.

I would really appreciate some scolding.  Thanks.

My taskdef is as follows:
       <taskdef name="authsum"
classname="org.authsum.configuration.ant.taskdefs.AuthSumProperty">
           <classpath>
               <path refid="springframework.classpath"/>
               <fileset file="../dbom/build/dbom.jar"/>
               <fileset file="../services/build/services.jar"/>
<!-- the configContext.xml file is in ../services/src/conf -->
               <dirset dir="../services/src/conf"/>
               <!-- the following is to pick the log4j props -->
               <dirset dir="../src/conf"/>
               <fileset file="../anttask/build/anttask.jar"/>
           </classpath>
</taskdef> BUILD FAILED /home/rhodepc/configuration/tests/build.xml:97: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [configContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [configContext.xml] cannot be opened because it does not exist

If you made it this far, thanks. The project is a web-based java properties manager in which property values are "tagged" in order to use in grid like environments. More info at
http://test.rhoderunner.com:8080/config/




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to