Has anyone tried this (or is using it)?
I pinged the m2 mailing list, but there hasn't been any response yet
(more than 48 hours so far).
I made it a bit further:
<project name="capi" default="compile"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<target name="init">
<artifact:pom id="project" file="pom.xml"/>
<echo>The version is ${project.version}</echo>
<echo> ${project.build.directory}</echo>
<echo> ${project.name}</echo>
<echo> ${project.dependencies}</echo>
<!-- <echoproperties/> -->
</target>
<target name="compile" depends="init">
<mkdir dir="target/classes"/>
<javac srcdir="src/main/java"
destdir="target/classes"
includes="**/*.java"
classpathref="maven.project.classpath"
debug="on"
/>
</target>
Is the actual classpath used for compiling unavailable to ant as a
property?
|