blob: 09dfc4f8ef33884fa36e89873b4110e4fcc4ae47 [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 Rop952a61c2010-01-14 21:58:44 +00003 <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 +00004 <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 Rop952a61c2010-01-14 21:58:44 +00007
8 <target name="compile">
9 <delete dir="target/classes" quiet="yes"/>
10 <mkdir dir="target/classes"/>
Pierre De Ropdf56ba12010-01-15 22:40:57 +000011 <javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}:${corejar}:${compjar}:${shelljar}"/>
Pierre De Rop952a61c2010-01-14 21:58:44 +000012 </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>