maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukewpatterson <lukewpatter...@gmail.com>
Subject Re: Inline Ant tasks not working - Namespace problem?
Date Mon, 27 Dec 2010 18:35:43 GMT

I was fighting the same issue trying to get eclemma reports integrated via
antrun.  Here's a snippet dump that "works":


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
  <execution>
    <phase>test</phase>
    <configuration>
      <target xmlns:jacoco="antlib:org.jacoco.ant">
        <taskdef uri="antlib:org.jacoco.ant"
resource="org/jacoco/ant/antlib.xml">
          <classpath
            path="/home/lukewpatterson/Desktop/jacocoant.jar" />
        </taskdef>
        <jacoco:report>
          <executiondata>
            <file file="jacoco.exec" />
          </executiondata>
          <structure name="Example Project">
            <classfiles>
              <fileset dir="target/classes" />
              <fileset dir="target/test-classes" />
            </classfiles>
            <sourcefiles encoding="UTF-8">
              <fileset dir="src/main/groovy" />
              <fileset dir="src/test/groovy" />
            </sourcefiles>
          </structure>
          <html destdir="target/report" />
        </jacoco:report>
      </target>
    </configuration>
    <goals>
      <goal>run</goal>
    </goals>
  </execution>
</executions>
</plugin>

obviously I don't have my jacocoant.jar properly GAV'd yet, and have too may
hardcoded references, but the important part there is:

"<target xmlns:jacoco="antlib:org.jacoco.ant">"
-- 
View this message in context: http://maven.40175.n5.nabble.com/Inline-Ant-tasks-not-working-Namespace-problem-tp3246437p3319602.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message