How to specify the classpath to the acceleoCompiler ant task to compile mtl files -


i'm trying compile acceleo mtl files using ant task:

<target name="compileemtsfiles">     <echo>...... running acceleo mtl=emtl file compilation</echo>     <acceleocompiler          sourcefolder="src/main/java"          outputfolder="build/classes/main"          binaryresource="false"          dependencies=""          packagestoregister="com.company.myacceleopackage">     </acceleocompiler>     <echo>...... finished acceleo mtl=emtl file compilation</echo> </target> 

but acceleocompiler seems have problem find "com.company.myacceleopackage". can found in src/main/java, dont know how specify kind of classpath acceleocompiler:

 [echo] ...... running acceleo mtl=emtl file compilation  [acceleocompiler] com.company.myacceleopackage   build failed  c:\path\build.acceleo.xml:24: com.company.myacceleopackage 

any ideas how can proceed?

regards, michael

i found solution. needed add bin folder classpath of taskdef:

<path id="acceleoclasspath">     <!-- org.eclipse.acceleo.parser_?.jar etc-->     <fileset dir="libs">         <include name="**/*.jar" />     </fileset>     <pathelement path="bin"/> </path>  <taskdef id="acceleocompiler" name="acceleocompiler"      classname="org.eclipse.acceleo.parser.compiler.acceleocompiler"      classpathref="acceleoclasspath" /> 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -