Reputation: 34554
I have this line of code in an ant bulider:
<taskdef id="acceleoCompiler" name="acceleoCompiler" classname="org.eclipse.acceleo.parser.compiler.AcceleoCompiler" classpathref="Framework.libraryclasspath" >
</taskdef>
It is complaining with the following:
taskdef class org.eclipse.acceleo.parser.compiler.AcceleoCompiler cannot be found using the classloader
It also says the same thing as an error when i attempt to run the ant build. What is the problem and how do i fix this?
I have the following in my ant builder:
<path id="Framework.classpath">
<path refid="Framework.libraryclasspath" />
</path>
<path id="Framework.libraryclasspath">
<pathelement location="${ECLIPSE_HOME}/plugins/org.eclipse.acceleo.parser_3.2.0.v20111027-0537.jar"/>
</path>
And it is still not working. With the same error as before.
Thanks!
Upvotes: 0
Views: 497
Reputation: 34554
My path variables were wrong. Correcting those fixed the problem. However, i am now experiencing a different problem. Will post new question and put link to it from here.
Upvotes: 0
Reputation: 1544
You need to have the jar org.eclipse.acceleo.parser in your classpath. Please note that this task is used to run an Acceleo generator out of Eclipse, if you want to use the Acceleo generator in Eclipse, you just have to right click on your main module and then select Run as an Acceleo Application. You can find more documentation in the Help -> Help Contents menu.
Regards,
Stephane Begaudeau
Upvotes: 1