logo       

com.lutris.ant.taskdefs.XMLc not found: msg#00012

java.enhydra.general

Subject: com.lutris.ant.taskdefs.XMLc not found

Hi!
 
Operating on Windows and I m using Enhydra 5.0. i m trying to run ant. In build.xml I have given
<taskdef name="xmlc" classname="com.lutris.ant.taskdefs.Xmlc" />
To run this successfully do we need to put anttask.jar(D:\Enhydra5.0\build\anttask.jar) in system classpath. If I dont put this jar in system classpath it gives the below error..

com.lutris.ant.taskdefs.XMLc not found

Build failed

I was thinking that since in build.xml we have specified the location where enhydra is installed by the following lines..

<property name="enhydra.root" value="D:/enhydra5.0" /> 

<property name="enhydra.dir" location="D:/enhydra5.0" />

...before running xmlc task it would take all the jars from enhydra root(in this it would also find anttask.jar - required) into classpath. But its not taking. ie the above error.

When I include anttask.jar in system classpath manually, then it gives another error...

   class org.enhydra.xml.xmlc.command.xmlc.XMLC not found
   Build failed
  
   To get rid of above error I have to put D:\Enhydra5.0\lib\xmlc.jar in system classpath. Likewise as and when I see the errors I have to include so many jars in System classpath. ie executing the build procedure onto another machine means settingup the system classpath first(according to where enhydra is installed). Is there a way by which our build procedure takes the jars in Enhydra directory into classpath before running any tasks in the build file?
 
   Thanks
   Prakash
 
 
 
 
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise