root/branches/dictionary_changes/rpmbuild.xml

Revision 1795, 3.4 kB (checked in by dsugar, 1 year ago)

More work to update rpm building

Line 
1 <?xml version="1.0"?>
2 <!DOCTYPE project [<!ENTITY buildfile SYSTEM "file:./build-user.xml">]>
3 <!-- WARNING: Eclipse auto-generated file.
4               Any modifications will be overwritten.
5               To include a user specific buildfile here, simply create one in the same
6               directory with the processing instruction <?eclipse.ant.import?>
7               as the first entry and export the buildfile again. -->
8 <project name="CDSFramework" default="build" basedir=".">
9         &buildfile;
10         <property environment="env"/>
11         <property name="JUNIT_HOME" value="/usr/share/eclipse/plugins/org.junit_3.8.1"/>
12         <property name="ECLIPSE_HOME" value="/usr/share/eclipse" />
13         <property name="ECLIPSE_LIB" value="/usr/lib/eclipse" />
14         <property name="debuglevel" value="source,lines,vars"/>
15         <property name="target" value="1.2"/>
16         <property name="source" value="1.3"/>
17         <path id="Plug-in Dependencies.libraryclasspath">
18 <!--
19                 <fileset dir="${ECLIPSE_HOME}">
20                         <include name="**/*.jar" />
21                 </fileset>
22                 <fileset dir="${ECLIPSE_LIB}" >
23                         <include name="**/*.jar" />
24                 </fileset>
25 -->
26
27                 <fileset dir="/usr">
28                         <include name="lib/eclipse/**/*.jar" />
29                         <include name="lib64/eclipse/**/*.jar" />
30                         <include name="share/eclipse/**/*.jar" />
31                 </fileset>
32 <!--
33                 <fileset dir="/usr/src/redhat/BUILD">
34                         <include name="libselinuxjava-plugin/library.jar" />
35                         <include name="libselinux.linux.x86/libselinuxjava.jar" />
36                 </fileset>
37 -->
38                 <pathelement location="${libselinux_fragment_jar}" />
39                 <pathelement location="${libselinux_plugin_jar}" />
40
41         </path>
42         <path id="CDSFramework.classpath">
43                 <pathelement location="bin"/>
44                 <path refid="Plug-in Dependencies.libraryclasspath"/>
45                 <pathelement location="${JUNIT_HOME}/junit.jar"/>
46         </path>
47
48         <target name="init">
49                 <mkdir dir="bin"/>
50 <!--
51                 <copy todir="bin" includeemptydirs="false">
52                         <fileset dir="src" excludes="**/*.launch, **/*.java"/>
53                 </copy>
54                 <copy todir="bin" includeemptydirs="false">
55                         <fileset dir="Junit" excludes="**/*.launch, **/*.java"/>
56                 </copy>
57 -->
58         </target>
59
60         <target name="clean">
61                 <delete dir="bin"/>
62         </target>
63
64         <target name="cleanall" depends="clean"/>
65         <target name="build" depends="build-subprojects,build-project"/>
66         <target name="build-subprojects"/>
67         <target name="build-project" depends="init">
68         <echo message="${ant.project.name}: ${ant.file}"/>
69                 <javac destdir="bin" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
70                         <src path="src"/>
71                         <classpath refid="CDSFramework.classpath"/>
72                 </javac>
73 <!--
74                 <javac destdir="bin" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
75                         <src path="Junit"/>
76                         <classpath refid="CDSFramework.classpath"/>
77                 </javac>
78 -->
79         </target>
80         <target name="build-refprojects" description="Build all projects which reference this project. Useful to propagate changes."/>
81         <target name="init-eclipse-compiler" description="copy Eclipse compiler jars to ant lib directory">
82                 <copy todir="${ant.library.dir}">
83                         <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
84                 </copy>
85                 <unzip dest="${ant.library.dir}">
86                         <patternset includes="jdtCompilerAdapter.jar"/>
87                         <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
88                 </unzip>
89         </target>
90         <target name="build-eclipse-compiler" description="compile project with Eclipse compiler">
91                 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
92                 <antcall target="build"/>
93         </target>
94 </project>
Note: See TracBrowser for help on using the browser.