Pierre De Rop | 4f606af | 2010-01-11 21:45:35 +0000 | [diff] [blame] | 1 | <project name="TestDM" default="bnd"> |
| 2 | <property name="bndjar" value="${user.home}/.m2/repository/biz/aQute/bnd/0.0.389/bnd-0.0.389.jar"/> |
| 3 | <property name="annotjar" value="${user.home}/.m2/repository/org/apache/felix/org.apache.felix.dependencymanager.annotation/3.0.0-SNAPSHOT/org.apache.felix.dependencymanager.annotation-3.0.0-SNAPSHOT.jar"/> |
| 4 | |
| 5 | <target name="compile"> |
| 6 | <delete dir="target/classes" quiet="yes"/> |
| 7 | <mkdir dir="target/classes"/> |
| 8 | <javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}"/> |
| 9 | </target> |
| 10 | |
| 11 | <target name="bnd" depends="compile"> |
| 12 | <mkdir dir="target"/> |
| 13 | <mkdir dir="target/classes"/> |
| 14 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${annotjar}:${bndjar}"/> |
| 15 | <bnd classpath="target/classes" files="directives.bnd" output="target/org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar"/> |
| 16 | </target> |
| 17 | </project> |