Skip to content
Snippets Groups Projects
Commit 239ab66c authored by Rich Lane's avatar Rich Lane
Browse files

simplify build by removing packetstreamer jar

parent cbe5e10b
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,10 @@ ...@@ -39,12 +39,10 @@
<property name="python-src" location="src/main/python"/> <property name="python-src" location="src/main/python"/>
<property name="docs" location="${target}/docs"/> <property name="docs" location="${target}/docs"/>
<property name="main-class" value="net.floodlightcontroller.core.Main"/> <property name="main-class" value="net.floodlightcontroller.core.Main"/>
<property name="packetstreamer-thrift-jar" value="packetstreamer-thrift.jar"/>
<property name="floodlight-jar" location="${target}/floodlight.jar"/> <property name="floodlight-jar" location="${target}/floodlight.jar"/>
<property name="floodlight-test-jar" location="${target}/floodlight-test.jar"/> <property name="floodlight-test-jar" location="${target}/floodlight-test.jar"/>
<property name="thrift.dir" value="${basedir}/src/main/thrift"/> <property name="thrift.dir" value="${basedir}/src/main/thrift"/>
<property name="thrift.out.dir" value="lib/gen-java"/> <property name="thrift.out.dir" value="lib/gen-java"/>
<property name="thrift.bin.dir" value="${target}/gen-java-bin"/>
<property name="thrift.package" value="net/floodlightcontroller/packetstreamer/thrift"/> <property name="thrift.package" value="net/floodlightcontroller/packetstreamer/thrift"/>
<property name="ant.build.javac.source" value="1.6"/> <property name="ant.build.javac.source" value="1.6"/>
<property name="ant.build.javac.target" value="1.6"/> <property name="ant.build.javac.target" value="1.6"/>
...@@ -68,17 +66,11 @@ ...@@ -68,17 +66,11 @@
<include name="jython-2.5.2.jar"/> <include name="jython-2.5.2.jar"/>
<include name="libthrift-0.7.0.jar"/> <include name="libthrift-0.7.0.jar"/>
</patternset> </patternset>
<patternset id="genlib">
<include name="${packetstreamer-thrift-jar}"/>
</patternset>
<path id="classpath"> <path id="classpath">
<fileset dir="${lib}"> <fileset dir="${lib}">
<patternset refid="lib"/> <patternset refid="lib"/>
</fileset> </fileset>
<fileset dir="${target}/lib">
<patternset refid="genlib"/>
</fileset>
</path> </path>
<patternset id="lib-cobertura"> <patternset id="lib-cobertura">
...@@ -104,9 +96,6 @@ ...@@ -104,9 +96,6 @@
<patternset refid="lib-cobertura"/> <patternset refid="lib-cobertura"/>
<patternset refid="lib"/> <patternset refid="lib"/>
</fileset> </fileset>
<fileset dir="${target}/lib">
<patternset refid="genlib"/>
</fileset>
</path> </path>
<target name="init"> <target name="init">
...@@ -114,15 +103,14 @@ ...@@ -114,15 +103,14 @@
<mkdir dir="${build-test}"/> <mkdir dir="${build-test}"/>
<mkdir dir="${target}/lib"/> <mkdir dir="${target}/lib"/>
<mkdir dir="${thrift.out.dir}"/> <mkdir dir="${thrift.out.dir}"/>
<mkdir dir="${thrift.bin.dir}"/>
<mkdir dir="${test-output}"/> <mkdir dir="${test-output}"/>
</target> </target>
<target name="compile" depends="init,packetstreamer-thrift"> <target name="compile" depends="init,gen-thrift">
<javac includeAntRuntime="false" <javac includeAntRuntime="false"
classpathref="classpath" classpathref="classpath"
debug="true" debug="true"
srcdir="${source}:${thrift.bin.dir}" srcdir="${source}:${thrift.out.dir}"
destdir="${build}"> destdir="${build}">
</javac> </javac>
</target> </target>
...@@ -165,18 +153,6 @@ ...@@ -165,18 +153,6 @@
</exec> </exec>
</target> </target>
<target name="compile-thrift" depends="init,gen-thrift">
<javac srcdir="${thrift.out.dir}"
includeantruntime="false"
destdir="${thrift.bin.dir}"
debug="true" debuglevel="lines,vars,source"
classpathref="classpath" />
</target>
<target name="packetstreamer-thrift" depends="compile-thrift">
<jar jarfile="${target}/lib/${packetstreamer-thrift-jar}"
basedir="${thrift.bin.dir}"/>
</target>
<target name="clean"> <target name="clean">
<delete dir="${target}"/> <delete dir="${target}"/>
</target> </target>
...@@ -253,9 +229,6 @@ ...@@ -253,9 +229,6 @@
<zipgroupfileset dir="${lib}"> <zipgroupfileset dir="${lib}">
<patternset refid="lib"/> <patternset refid="lib"/>
</zipgroupfileset> </zipgroupfileset>
<zipgroupfileset dir="${target}/lib">
<patternset refid="genlib"/>
</zipgroupfileset>
</jar> </jar>
<jar destfile="${floodlight-test-jar}" filesetmanifest="mergewithoutmain"> <jar destfile="${floodlight-test-jar}" filesetmanifest="mergewithoutmain">
<manifest> <manifest>
...@@ -267,9 +240,6 @@ ...@@ -267,9 +240,6 @@
<patternset refid="lib-test"/> <patternset refid="lib-test"/>
<patternset refid="lib-cobertura"/> <patternset refid="lib-cobertura"/>
</zipgroupfileset> </zipgroupfileset>
<zipgroupfileset dir="${target}/lib">
<patternset refid="genlib"/>
</zipgroupfileset>
</jar> </jar>
</target> </target>
...@@ -291,16 +261,13 @@ ...@@ -291,16 +261,13 @@
version="true"/> version="true"/>
</target> </target>
<target name="eclipse" depends="init,packetstreamer-thrift"> <target name="eclipse" depends="init,gen-thrift">
<pathconvert property="eclipse-lib"> <pathconvert property="eclipse-lib">
<map from="${basedir}/" to=""/> <map from="${basedir}/" to=""/>
<fileset dir="${lib}"> <fileset dir="${lib}">
<patternset refid="lib"/> <patternset refid="lib"/>
<patternset refid="lib-test"/> <patternset refid="lib-test"/>
</fileset> </fileset>
<fileset dir="${target}/lib">
<patternset refid="genlib"/>
</fileset>
</pathconvert> </pathconvert>
<exec executable="${basedir}/setup-eclipse.sh"> <exec executable="${basedir}/setup-eclipse.sh">
<arg value="${main-class}"/> <arg value="${main-class}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment