我正在尝试使用 Ant 任务编译 Acceleo mtl 文件:
<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>
但是 acceleoCompiler 似乎很难找到“com.company.MyAcceleoPackage”。它可以在 src/main/java 中找到,但我不知道如何为 acceleoCompiler 指定一种类路径:
[echo] ...... Running Acceleo mtl=emtl file compilation
[acceleoCompiler] com.company.MyAcceleoPackage
BUILD FAILED
C:\path\build.acceleo.xml:24: com.company.MyAcceleoPackage
有什么想法可以继续吗?
问候,迈克尔