prolink007
prolink007

Reputation: 34554

acceleoCompiler not showing output in console output with ant

I am using acceleoCompiler inside an ant script and when i run the ant script everything shows an output except acceleoCompiler.

For instance, [javac] and [mkdir] shows up. But nothing relating to acceleoCompiler shows up. Am i doing something wrong?

The ant script:

<eclipse.refreshLocal resource="${F_FOLDER}/bin/" depth="infinite"/>
<eclipse.refreshLocal resource="${FE_FOLDER}/bin/" depth="infinite"/>

<mkdir dir="${F_OUTPUT}"/>
<mkdir dir="${FE_OUTPUT}"/>

<javac 
    srcdir="${F_SRC}generator/" 
    destdir="${FR_OUTPUT}"
        executable="${JAVA_JDK}/javac"
        fork="true"
        includeantruntime="false"
        failonerror="false"
/>
    <javac 
        srcdir="${FE_SRC}generator/" 
        destdir="${FE_OUTPUT}"
        executable="${JAVA_JDK}/javac"
        fork="true"
        includeantruntime="false"
        failonerror="false"
    />

<acceleoCompiler sourceFolder="${F_SRC}"
        outputFolder="${F_OUTPUT}"
        dependencies=""
        binaryResource="true"
        packagesToRegister="org.eclipse.emf.ecore.EcorePackage">
</acceleoCompiler>


<acceleoCompiler sourceFolder="${F_SRC}" 
    outputFolder="${FE_OUTPUT}" 
    dependencies="" 
    binaryResource="true" 
    packagesToRegister="org.eclipse.emf.ecore.EcorePackage">
</acceleoCompiler>

Upvotes: 0

Views: 335

Answers (1)

martin clayton
martin clayton

Reputation: 78135

The absence of logging messages doesn't mean you're doing anything wrong. If you look at the source for mkdir or javac you'll see that they call the Ant Task method log() in most cases. The Acceleo Ant task however only calls log() if it finds a problem - if all is well it is silent and enigmatic.

References:

Upvotes: 1

Related Questions