Warning: Can't use blame annotator:
svn blame failed on trunk/IDE_metadata/Eclipse/build.xml: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/IDE_metadata/Eclipse/build.xml @ 30

Revision 30, 4.3 KB checked in by bokumura, 10 years ago (diff)

Removed target to build everything into one jar in Eclipse ant build.

  • Property svn:mime-type set to text/plain
RevLine 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<project name="TMCSim" default="package-jars" basedir=".">
4    <description>Builds, tests, and runs the project TMCSim.</description>
5    <property name="workdir" value="../.."/>
6<!--        STORE SUBVERSION BUILD STRING      -->
7<!-- Store the Subversion version string every time you do clean/build. -->
8<target name="-pre-compile">
9  <exec executable="svnversion" osfamily="unix"
10    output="${workdir}/config/svn-version.txt"/>
11    <echo file="${workdir}/config/svn-version.txt" append="true">
12        # Do not edit. This file is autogenerated by the Ant build script #
13    </echo>
14</target>
15<!--
16                =================
17                LOC counter
18                =================
19-->
20<target description="Count Lines of Code in src directory." name="loc">
21        <java classname="textui.LOC"
22        classpath="${workdir}/lib/JavaLOC.jar">
23               <arg line="-r -d ${workdir}/src"/>
24  </java>   
25</target>   
26<!--
27                =================
28                CHECKSTYLE SECTION
29                =================
30     -->
31<target description="Run checkstyle on src directory." name="checkstyle">
32<taskdef resource="checkstyletask.properties"
33         classpath="${workdir}/lib/customcheckstylechecks.jar;${workdir}/lib/checkstyle-all-4.4.jar"/>
34<checkstyle config="${workdir}/lib/jdstyle.xml" failOnViolation="true">
35            <!-- Specify includes and excludes -->
36            <fileset dir="${workdir}/src/tmcsim" includes="**/*.java"
37            />
38</checkstyle>
39</target>     
40   
41<!--
42                =================
43                PACKAGE JARS SECTION
44                =================
45-->
46<target description="Build separate jar files for each component of the TMC system."
47        name="package-jars">
48
49    <!--         *** Build a jar with everything ***            -->
50    <property name="deploy.jar.name" value="TMCSimAll"/>
51    <property name="deploy.dir" value="deploy"/>
52    <property name="deploy.jar" value="${deploy.dir}/${deploy.jar.name}.jar"/>
53    <property name="build.dir" value="../../"/>
54
55
56
57    <delete dir="${deploy.dir}"/>
58    <mkdir dir="${deploy.dir}"/>
59
60   
61    <!--                   *** Build CAD Server Only Jar ***         -->
62      <jar destfile="${deploy.dir}/CADserver.jar"
63       basedir="${build.dir}/bin"
64       includes="tmcsim/cadsimulator/**, tmcsim/common/**, tmcsim/interfaces/**,
65                 tmcsim/client/cadclientgui/**, tmcsim/cadmodels/**"
66       excludes="**/Test.class">
67        <zipgroupfileset dir="${workdir}/lib" includes="xercesImpl.jar"/>
68        <manifest>
69            <attribute name="Main-Class" value="tmcsim.cadsimulator.CADSimulator"/>
70        </manifest>
71      </jar>
72
73      <!--                   *** Build Sim Manager Only Jar ***         -->
74      <jar destfile="${deploy.dir}/SimManager.jar"
75       basedir="${build.dir}/bin"
76       includes="tmcsim/simulationmanager/**, tmcsim/common/**, tmcsim/cadmodels/**,
77            tmcsim/client/cadclientgui/**, tmcsim/interfaces/**"
78       excludes="**/Test.class">
79        <zipgroupfileset dir="${workdir}/lib" includes="xercesImpl.jar"/>
80        <manifest>
81            <attribute name="Main-Class" value="tmcsim.simulationmanager.SimulationManager"/>
82        </manifest>
83      </jar>
84
85      <!--                   *** Build CAD Client Only Jar ***         -->
86      <jar destfile="${deploy.dir}/CADClient.jar"
87       basedir="${build.dir}/bin"
88       includes="tmcsim/client/**, tmcsim/common/**, tmcsim/interfaces/**,
89            tmcsim/cadmodels/**">
90        <zipgroupfileset dir="${workdir}/lib" includes="xercesImpl.jar"/>
91        <manifest>
92            <attribute name="Main-Class" value="tmcsim.client.CADClient"/>
93        </manifest>
94      </jar>
95      <!-- Remove the following line when we get CADClient to run
96      <delete file="${deploy.dir}/CADClient.jar"/>-->
97     
98      <!--                   *** Build Paramics Communicator Only Jar ***         -->
99      <jar destfile="${deploy.dir}/ParamicsCommunicator.jar"
100       basedir="${build.dir}/bin"
101       includes="tmcsim/paramicscommunicator/**, tmcsim/common/**,
102                 tmcsim/paramicslog/**"
103       excludes="**/Test.class">
104        <zipgroupfileset dir="${workdir}/lib" includes="xercesImpl.jar"/>
105        <manifest>
106            <attribute name="Main-Class" value="tmcsim.paramicscommunicator.ParamicsCommunicator"/>
107        </manifest>
108      </jar>
109</target>
110   
111</project>
Note: See TracBrowser for help on using the repository browser.