Pierre De Rop | 2238368 | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 1 | <project name="TestDM" default="bnd"> |
Pierre De Rop | 3401ceb | 2010-02-03 23:04:12 +0000 | [diff] [blame^] | 2 | <property name="bndjar" value="${user.home}/.m2/repository/biz/aQute/bnd/0.0.394/bnd-0.0.394.jar"/> |
Pierre De Rop | 2238368 | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 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"/> |
Pierre De Rop | 9d1bd8b | 2010-01-15 22:40:57 +0000 | [diff] [blame] | 4 | <property name="corejar" value="${user.home}/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/> |
| 5 | <property name="compjar" value="${user.home}/.m2/repository/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar"/> |
| 6 | <property name="shelljar" value="${user.home}/.m2/repository/org/apache/felix/org.apache.felix.shell/1.4.1/org.apache.felix.shell-1.4.1.jar"/> |
Pierre De Rop | 2238368 | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 7 | |
| 8 | <target name="compile"> |
| 9 | <delete dir="target/classes" quiet="yes"/> |
| 10 | <mkdir dir="target/classes"/> |
Pierre De Rop | 9d1bd8b | 2010-01-15 22:40:57 +0000 | [diff] [blame] | 11 | <javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}:${corejar}:${compjar}:${shelljar}"/> |
Pierre De Rop | 2238368 | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 12 | </target> |
| 13 | |
| 14 | <target name="bnd" depends="compile"> |
| 15 | <mkdir dir="target"/> |
| 16 | <mkdir dir="target/classes"/> |
| 17 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${annotjar}:${bndjar}"/> |
| 18 | <bnd classpath="target/classes" files="directives.bnd" output="target/org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar"/> |
| 19 | </target> |
| 20 | </project> |