Pierre De Rop | 952a61c | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 1 | <project name="TestDM" default="bnd"> |
Pierre De Rop | 658857c | 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 | 39e3abf | 2010-05-25 19:12:52 +0000 | [diff] [blame^] | 3 | <property name="jsonjar" value="${user.home}/.m2/repository/org/json/json/20070829/json-20070829.jar"/> |
Pierre De Rop | 952a61c | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 4 | <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 | df56ba1 | 2010-01-15 22:40:57 +0000 | [diff] [blame] | 5 | <property name="corejar" value="${user.home}/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/> |
| 6 | <property name="compjar" value="${user.home}/.m2/repository/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar"/> |
| 7 | <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 | 952a61c | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 8 | |
| 9 | <target name="compile"> |
| 10 | <delete dir="target/classes" quiet="yes"/> |
| 11 | <mkdir dir="target/classes"/> |
Pierre De Rop | df56ba1 | 2010-01-15 22:40:57 +0000 | [diff] [blame] | 12 | <javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}:${corejar}:${compjar}:${shelljar}"/> |
Pierre De Rop | 952a61c | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 13 | </target> |
| 14 | |
| 15 | <target name="bnd" depends="compile"> |
| 16 | <mkdir dir="target"/> |
| 17 | <mkdir dir="target/classes"/> |
Pierre De Rop | 39e3abf | 2010-05-25 19:12:52 +0000 | [diff] [blame^] | 18 | <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${annotjar}:${bndjar}:${jsonjar}"/> |
Pierre De Rop | bdecf87 | 2010-02-08 18:32:38 +0000 | [diff] [blame] | 19 | <bnd classpath="target/classes" eclipse="false" files="directives.bnd" output="target/org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar"/> |
Pierre De Rop | 952a61c | 2010-01-14 21:58:44 +0000 | [diff] [blame] | 20 | </target> |
| 21 | </project> |