/[debian]/libjpf-java/trunk/build.xml
ViewVC logotype

Contents of /libjpf-java/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1601 - (show annotations)
Sat Feb 28 23:28:19 2009 UTC (12 years, 3 months ago) by gregoa
File MIME type: text/xml
File size: 9552 byte(s)
[svn-inject] Forking libjpf-java source to Trunk
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="JPF 1.5.x build file" default="help" basedir=".">
3 <property name="app.name" value="jpf"/>
4 <property name="app.version" value="1.5.1"/>
5
6 <property file="build.properties"/>
7
8 <property name="build.home" value="${basedir}/build"/>
9 <property name="build.docs" value="${build.home}/docs"/>
10 <property name="build.javadoc" value="${build.docs}/api"/>
11 <property name="build.classes" value="${build.home}/classes"/>
12 <property name="build.classes-tools" value="${build.home}/classes-tools"/>
13 <property name="build.classes-boot" value="${build.home}/classes-boot"/>
14 <property name="build.lib" value="${build.home}/lib"/>
15
16 <property name="src.home" value="${basedir}/source"/>
17 <property name="src-tools.home" value="${basedir}/source-tools"/>
18 <property name="src-boot.home" value="${basedir}/source-boot"/>
19
20 <property name="standard.excludes" value="**/build/,**/*.log*,**/classes/,**/CVS/,**/.*,**/.*/"/>
21
22 <property name="compile.debug" value="true"/>
23 <property name="compile.optimize" value="false"/>
24 <property name="compile.target-vm" value="1.5"/>
25 <property name="javadoc.access" value="protected"/>
26 <property name="javadoc.use" value="true"/>
27 <property name="javadoc.notree" value="false"/>
28 <property name="javadoc.nonavbar" value="false"/>
29 <property name="javadoc.noindex" value="false"/>
30 <property name="javadoc.splitindex" value="false"/>
31 <property name="javadoc.author" value="true"/>
32 <property name="javadoc.version" value="true"/>
33 <property name="javadoc.nodeprecatedlist" value="false"/>
34 <property name="javadoc.nodeprecated" value="false"/>
35
36 <path id="classpath">
37 <fileset dir="${basedir}/lib">
38 <include name="*.jar"/>
39 </fileset>
40 <pathelement path="${build.classes}"/>
41 </path>
42
43 <target name="help">
44 <echo><![CDATA[
45 ${app.name} build file:
46 dist - creates binary and source distribution packages
47 jar - creates JAR files
48 docs - generates documentation
49 build - compiles entire project
50 ]]></echo>
51 </target>
52
53 <target name="clean">
54 <tstamp>
55 <format property="dt-stamp" pattern="yyyy-MM-dd-HH-mm"/>
56 <format property="d-stamp" pattern="yyyy-MM-dd"/>
57 </tstamp>
58 <delete dir="${build.home}" quiet="true"/>
59 </target>
60
61 <target name="-init">
62 <mkdir dir="${build.home}"/>
63 <mkdir dir="${build.classes}"/>
64 <mkdir dir="${build.classes-tools}"/>
65 <mkdir dir="${build.classes-boot}"/>
66 <mkdir dir="${build.lib}"/>
67 <available property="lib.ant.present" file="${lib.ant}"/>
68 </target>
69
70 <target name="build" depends="-init" description="Compiles entire project">
71 <!-- compile core classes -->
72 <javac
73 destdir="${build.classes}"
74 srcdir="${src.home}"
75 classpathref="classpath"
76 excludes=""
77 target="${compile.target-vm}"
78 debug="${compile.debug}"
79 optimize="${compile.optimize}"
80 deprecation="true"/>
81 <!-- compile tools classes -->
82 <javac
83 destdir="${build.classes-tools}"
84 srcdir="${src-tools.home}"
85 classpathref="classpath"
86 excludes=""
87 target="${compile.target-vm}"
88 debug="${compile.debug}"
89 optimize="${compile.optimize}"
90 deprecation="true"/>
91 <!-- compile boot classes -->
92 <javac
93 destdir="${build.classes-boot}"
94 srcdir="${src-boot.home}"
95 classpathref="classpath"
96 excludes=""
97 target="${compile.target-vm}"
98 debug="${compile.debug}"
99 optimize="${compile.optimize}"
100 deprecation="true"/>
101 </target>
102
103 <target name="jar" depends="build" description="Creates JAR files">
104 <jar destfile="${build.lib}/${app.name}.jar">
105 <manifest>
106 <attribute name="Class-Path" value="commons-logging.jar"/>
107 <!--attribute name="Name" value="org/java/plugin"/-->
108 <attribute name="Specification-Title" value="Java Plug-in Framework (JPF) - core library"/>
109 <attribute name="Specification-Version" value="${app.version}"/>
110 <attribute name="Specification-Vendor" value="http://jpf.sourceforge.net"/>
111 <attribute name="Implementation-Title" value="org.java.plugin"/>
112 <attribute name="Implementation-Version" value="${app.version}"/>
113 <attribute name="Implementation-Vendor" value="http://jpf.sourceforge.net"/>
114 </manifest>
115 <fileset dir="${build.classes}"/>
116 <fileset dir="${src.home}" excludes="**/*.java,**/*.jpage,**/.*"/>
117 </jar>
118 <jar destfile="${build.lib}/${app.name}-tools.jar">
119 <manifest>
120 <attribute name="Class-Path" value="${app.name}.jar jxp.jar"/>
121 <!--attribute name="Name" value="org/java/plugin/tools"/-->
122 <attribute name="Specification-Title" value="Java Plug-in Framework (JPF) - tools library"/>
123 <attribute name="Specification-Version" value="${app.version}"/>
124 <attribute name="Specification-Vendor" value="http://jpf.sourceforge.net"/>
125 <attribute name="Implementation-Title" value="org.java.plugin.tools"/>
126 <attribute name="Implementation-Version" value="${app.version}"/>
127 <attribute name="Implementation-Vendor" value="http://jpf.sourceforge.net"/>
128 </manifest>
129 <fileset dir="${build.classes-tools}"/>
130 <fileset dir="${src-tools.home}" excludes="**/*.java,**/*.jpage,**/.*"/>
131 </jar>
132 <jar destfile="${build.lib}/${app.name}-boot.jar">
133 <manifest>
134 <attribute name="Main-Class" value="org.java.plugin.boot.Boot"/>
135 <attribute name="Class-Path" value="${app.name}.jar ${app.name}-tools.jar log4j.jar"/>
136 <!--attribute name="Name" value="org/java/plugin/boot"/-->
137 <attribute name="Specification-Title" value="Java Plug-in Framework (JPF) - application boot library"/>
138 <attribute name="Specification-Version" value="${app.version}"/>
139 <attribute name="Specification-Vendor" value="http://jpf.sourceforge.net"/>
140 <attribute name="Implementation-Title" value="org.java.plugin.boot"/>
141 <attribute name="Implementation-Version" value="${app.version}"/>
142 <attribute name="Implementation-Vendor" value="http://jpf.sourceforge.net"/>
143 </manifest>
144 <fileset dir="${build.classes-boot}"/>
145 <fileset dir="${src-boot.home}" excludes="**/*.java,**/*.jpage,**/.*"/>
146 </jar>
147 </target>
148
149 <target name="-javadoc">
150 <delete dir="${build.javadoc}" quiet="true"/>
151 <mkdir dir="${build.javadoc}"/>
152 <javadoc
153 destdir="${build.javadoc}"
154 access="${javadoc.access}"
155 use="${javadoc.use}"
156 notree="${javadoc.notree}"
157 nonavbar="${javadoc.nonavbar}"
158 noindex="${javadoc.noindex}"
159 splitindex="${javadoc.splitindex}"
160 author="${javadoc.author}"
161 version="${javadoc.version}"
162 nodeprecatedlist="${javadoc.nodeprecatedlist}"
163 nodeprecated="${javadoc.nodeprecated}"
164 classpathref="classpath"
165 header="JPF ${app.version}">
166 <doctitle><![CDATA[Java Plug-in Framework (JPF) API (ver. ${app.version})]]></doctitle>
167 <bottom><![CDATA[<i>Copyright &#169; 2004-2007 Dmitry Olshansky. All Rights Reserved.</i>]]></bottom>
168 <packageset dir="${src.home}">
169 <exclude name="org/java/plugin/standard/**,org/java/plugin/registry/xml/**" />
170 </packageset>
171 <packageset dir="${src-tools.home}"/>
172 <packageset dir="${src-boot.home}"/>
173 <classpath path="${java.class.path}"/><!-- to make ant.jar available for javadoc -->
174 <group title="JPF Core API" packages="org.java.plugin,org.java.plugin.registry,org.java.plugin.util" />
175 <group title="JPF Tools API" packages="org.java.plugin.tools.*" />
176 <group title="JPF Boot API" packages="org.java.plugin.boot" />
177 </javadoc>
178 </target>
179
180 <target name="docs" description="Generates documentation">
181 <delete dir="${build.docs}" quiet="true"/>
182 <mkdir dir="${build.docs}"/>
183 <copy file="${src.home}/org/java/plugin/registry/xml/plugin_1_0.dtd" todir="${build.docs}" preservelastmodified="true"/>
184 <copy todir="${build.docs}" preservelastmodified="true">
185 <fileset dir="${basedir}/jdocs" includes="**/*" excludes="**/*.jxp,**/*.ijxp,,.*"/>
186 <fileset dir="${basedir}" includes="license.txt"/>
187 </copy>
188 <copy tofile="${build.docs}/favicon.ico" file="${basedir}/jdocs/resources/images/favicon.ico" preservelastmodified="true"/>
189 <java classname="org.onemind.jxp.JxpProcessor" classpathref="classpath" fork="true">
190 <!-- Uncomment this when generating content for JPF web site. -->
191 <!--jvmarg value="-Djdocs.mode=web"/-->
192 <jvmarg value="-Djdocs.outputFolder=${build.docs}"/>
193 <arg value="${basedir}/jdocs"/>
194 <arg value="build.jxp"/>
195 </java>
196 <antcall target="-javadoc"/>
197 </target>
198
199 <target name="dist" depends="clean,jar,docs" description="Creates distribution packages">
200 <zip destfile="${build.home}/${app.name}-bin-${app.version}.zip" duplicate="fail" update="false">
201 <fileset dir="${build.lib}" includes="*.jar"/>
202 <zipfileset prefix="docs" dir="${build.docs}"/>
203 <fileset dir="${basedir}" excludes="${standard.excludes},source*/,jdocs/,build*,todo.txt,BUILD.txt"/>
204 </zip>
205 <zip destfile="${build.home}/${app.name}-src-${app.version}.zip" duplicate="fail" update="false">
206 <fileset dir="${basedir}" excludes="${standard.excludes},todo.txt"/>
207 </zip>
208 <delete includeemptydirs="true" quiet="true">
209 <fileset dir="${build.home}">
210 <include name="**/*" />
211 <exclude name="${app.name}-???-${app.version}.zip" />
212 </fileset>
213 </delete>
214 </target>
215 </project>

  ViewVC Help
Powered by ViewVC 1.1.26