blob: ef2ded1bb00ee809384a352430ef7811c6564ba2 [file] [log] [blame]
Pierre De Rop952a61c2010-01-14 21:58:44 +00001<project name="TestDM" default="bnd">
Pierre De Rop658857c2010-02-03 23:04:12 +00002 <property name="bndjar" value="${user.home}/.m2/repository/biz/aQute/bnd/0.0.394/bnd-0.0.394.jar"/>
Pierre De Rop39e3abf2010-05-25 19:12:52 +00003 <property name="jsonjar" value="${user.home}/.m2/repository/org/json/json/20070829/json-20070829.jar"/>
Pierre De Rop952a61c2010-01-14 21:58:44 +00004 <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 Ropdf56ba12010-01-15 22:40:57 +00005 <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 Rop952a61c2010-01-14 21:58:44 +00008
9 <target name="compile">
10 <delete dir="target/classes" quiet="yes"/>
11 <mkdir dir="target/classes"/>
Pierre De Ropdf56ba12010-01-15 22:40:57 +000012 <javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}:${corejar}:${compjar}:${shelljar}"/>
Pierre De Rop952a61c2010-01-14 21:58:44 +000013 </target>
14
15 <target name="bnd" depends="compile">
16 <mkdir dir="target"/>
17 <mkdir dir="target/classes"/>
Pierre De Rop39e3abf2010-05-25 19:12:52 +000018 <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${annotjar}:${bndjar}:${jsonjar}"/>
Pierre De Ropbdecf872010-02-08 18:32:38 +000019 <bnd classpath="target/classes" eclipse="false" files="directives.bnd" output="target/org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar"/>
Pierre De Rop952a61c2010-01-14 21:58:44 +000020 </target>
21</project>