knielsen ac583b511b compiling samples
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113243 13f79535-47bb-0310-9956-ffa450edef68
2003-04-01 12:11:54 +00:00

22 lines
679 B
XML

<project default="java:jar"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven"
xmlns:m="maven">
<goal name="runsample" description="run sample" prereqs="native:compile">
<mkdir dir="${maven.build.dir}/samples"/>
<javac srcdir="${basedir}/src/sample/java"
destdir="${maven.build.dir}/samples"
fork="true"
/>
<java classname="org.apache.maven.natives.sample.helloworld.HelloWorld" fork="yes">
<sysproperty key="java.library.path" value="${maven.build.dir}/native"/>
<classpath>
<pathelement path="${maven.build.dest}"/>
</classpath>
</java>
</goal>
</project>