node-alljoyn
Version:
Access Alljoyn service functions
50 lines (42 loc) • 2.58 kB
text/xml
<project name="NotificationService" basedir="." default="jar">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes" />
<property name="deploy.dir" value="${build.dir}/deploy" />
<property name="lib.dir" value="${build.dir}/libs" />
<target name="clean">
<echo message="${ant.project.name} Cleaning ${build.dir} directory..."/>
<delete dir="${build.dir}" includeemptydirs="true" quiet="true"/>
</target>
<target name="init" depends="clean">
<echo message="${ant.project.name} Starting init..."/>
<echo message="${ant.project.name} Create build directory"/>
<mkdir dir="${build.dir}"/>
<echo message="${ant.project.name} Create ${classes.dir} directory"/>
<mkdir dir="${classes.dir}"/>
<echo message="${ant.project.name} Create ${deploy.dir} directory"/>
<mkdir dir="${deploy.dir}"/>
<echo message="${ant.project.name} Create ${lib.dir} directory"/>
<mkdir dir="${lib.dir}"/>
</target>
<target name="compile" description="${ant.project.name} Compiles the code">
<echo message="${ant.project.name} Starting compilation..."/>
<path id="classpath">
<fileset dir="${deploy.dir}" includes="**/*.jar"/>
<!--
In the lib folder we put jars that are necessary for the NotificationService for the compilation
The jars will be put by the NSNativePlatform build.xaml when it will be called
-->
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<echo message="${ant.project.name} Compile project"/>
<javac source="1.6" target="1.6" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" debug="true" includeantruntime="false"/>
</target>
<target name="jar" depends="compile" description="${ant.project.name} Creates JAR file">
<echo message="${ant.project.name} Creates compiled JAR file"/>
<jar destfile="${deploy.dir}/${ant.project.name}.jar" basedir="${classes.dir}" />
<echo message="${ant.project.name} Creates source JAR file. *** FOR PRODUCTION ? *** "/>
<jar destfile="${deploy.dir}/${ant.project.name}_src.jar" basedir="${src.dir}" />
</target>
</project>