blob: 418dc527f2bd7f4069e862fc9efeac84e5c6b0b4 [file] [log] [blame]
<project name="TestDM" default="bnd">
<property name="bndjar" value="${user.home}/.m2/repository/biz/aQute/bnd/0.0.389/bnd-0.0.389.jar"/>
<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"/>
<property name="corejar" value="${user.home}/.m2/repository/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/>
<property name="compjar" value="${user.home}/.m2/repository/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar"/>
<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"/>
<target name="compile">
<delete dir="target/classes" quiet="yes"/>
<mkdir dir="target/classes"/>
<javac srcdir="src/main/java" destdir="target/classes" classpath="${annotjar}:${corejar}:${compjar}:${shelljar}"/>
</target>
<target name="bnd" depends="compile">
<mkdir dir="target"/>
<mkdir dir="target/classes"/>
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${annotjar}:${bndjar}"/>
<bnd classpath="target/classes" files="directives.bnd" output="target/org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar"/>
</target>
</project>