/v3.2/nimbits-sdk/build.xml
http://nimbits-server.googlecode.com/ · XML · 106 lines · 81 code · 20 blank · 5 comment · 0 complexity · c60b98c283ecb9a81232910624654368 MD5 · raw file
- <project name="MyProject" default="dist" basedir=".">
- <description>
- simple example build file
- </description>
- <!-- set global properties for this build -->
- <property name="src" location="src"/>
- <property name="build" location="build"/>
- <property name="dist" location="dist"/>
- <property name="lib.dir" location="/mnt/raid/nimbits/lib"/>
- <property name="report.dir" value="/mnt/raid/deploy/com.nimbits/nimbits-sdk/junitreport"/>
- <property name="lib.dir" value="lib"/>
- <property name="junit.home" location="/mnt/raid/deploy/com.nimbits/nimbits-sdk/junit-4.9b2.jar"/>
- <property name="tst-dir" location="test"/>
- <property name="TALK" value="true"/>
- <path id="classpath">
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </path>
- <target name="copyjars"
- description="Copies the App Engine JARs to the WAR.">
- <copy
- todir="lib"
- flatten="true">
- <fileset dir="${lib.dir}">
- <include name="**/*.jar"/>
- </fileset>
- </copy>
- </target>
- <target name="init" depends="copyjars">
- <!-- Create the time stamp -->
- <tstamp/>
- <!-- Create the build directory structure used by compile -->
- <mkdir dir="${build}"/>
- </target>
- <target name="compile" depends="init"
- description="compile the source ">
- <!-- Compile the java code from ${src} into ${build} -->
- <javac srcdir="${src}" destdir="${build}" classpathref="classpath"/>
- <javac srcdir="${tst-dir}" destdir="${build}" classpathref="classpath.test"/>
- </target>
- <target name="dist" description="dist" depends="compile">
- <mkdir dir="${dist}/"/>
- <path id="application" location="${dist}/nimbits-sdk.jar"/>
- <jar jarfile="${dist}/nimbits-sdk.jar" basedir="${build}">
- <manifest>
- <attribute name="Main-Class" value="com.nimbits.MainClass"/>
- </manifest>
- <fileset dir="build"/>
- <zipfileset src="/mnt/raid/nimbits/lib/httpcomponents-client-4.1.1/lib/commons-logging-1.1.1.jar"/>
- <zipfileset src="/mnt/raid/nimbits/lib/google-gson-1.7.1"/>
- <zipfileset src="/mnt/raid/nimbits/lib/httpcomponents-client-4.1.1/lib/httpclient-4.1.1.jar"/>
- <zipfileset src="/mnt/raid/nimbits/lib/httpcomponents-client-4.1.1/lib/httpcore-4.1.1.jar"/>
- <zipfileset src="/mnt/raid/nimbits/lib/httpcomponents-client-4.1.1/lib/httpmime-4.1.1.jar"/>
- </jar>
- </target>
- <target name="clean"
- description="clean up">
- <delete dir="${build}"/>
- <delete dir="${dist}"/>
- </target>
- <path id="classpath.test">
- <path refid="classpath"/>
- <pathelement location="${build}"/>
- <pathelement location="${junit.home}"/>
- <pathelement location="${tst-dir}"/>
- <pathelement location="${dist}"/>
- </path>
- <target name="junit" depends="compile">
- <mkdir dir="${report.dir}"/>
- <junit printsummary="yes">
- <classpath>
- <path refid="classpath.test"/>
- <!-- <path location="${dist}/nimbits-sdk.jar"/>-->
- </classpath>
- <batchtest fork="no" todir="${report.dir}">
- <formatter type="xml"/>
- <fileset dir="${tst-dir}" includes="*Test.java"/>
- </batchtest>
- </junit>
- </target>
- <target name="junitreport">
- <junitreport todir="${report.dir}">
- <fileset dir="${report.dir}" includes="TEST-*.xml"/>
- <report todir="${report.dir}"/>
- </junitreport>
- </target>
- </project>