/[schmitzm]/branches/2.0-RC2/build.xml
ViewVC logotype

Contents of /branches/2.0-RC2/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (show annotations)
Wed Feb 25 21:29:06 2009 UTC (16 years ago) by alfonx
Original Path: trunk/build.xml
File MIME type: text/xml
File size: 4207 byte(s)


1 <!-- Build file for SCHMITZM.
2 Note: This script does not compile the java source (because of library
3 dependencies)!!
4
5 Option "jar" -> a JAR from the existing binaries expected in folder
6 "classes" plus a ZIP of the JAR
7 Option "src" -> a ZIP of the source code in folder "src"
8 Option "javadoc" -> a JavaDoc in folder "javadoc" plus a ZIP of
9 this folder
10 Option "all" -> all of the upper mentioned options
11 Option "basic" -> only "jar" and "src"
12
13 The default option is "basic"
14 -->
15 <project default="basic" basedir=".">
16 <!-- Prefix for the destination file names
17 e.g. "schmitzm" >> "schmitzm.jar", "schmitzm-src.jar" -->
18 <property name="PROJECT.PREFIX" value="schmitzm"/>
19 <!-- Global prefix directory for ZIP files (except ZIP of JAR!) -->
20 <property name="ZIP.ROOT.DIR" value="${PROJECT.PREFIX}"/>
21
22 <!-- Source and Destination for source code ZIP -->
23 <property name="DIR.SRC" value="src"/>
24 <property name="FILE.SRC.ZIP" value="${PROJECT.PREFIX}-src.zip"/>
25
26 <!-- Source and Destination for JAR file -->
27 <property name="DIR.CLASSES" value="classes"/>
28 <property name="FILE.JAR" value="${PROJECT.PREFIX}.jar"/>
29 <property name="FILE.JAR.ZIP" value="${FILE.JAR}.zip"/>
30
31 <!-- Destination for JavaDoc and its ZIP -->
32 <property name="DIR.JAVADOC" value="javadoc"/>
33 <property name="FILE.JAVADOC.ZIP" value="${PROJECT.PREFIX}-doc.zip"/>
34 <property name="LINK.JDK" value="http://java.sun.com/javase/6/docs/api/"/>
35 <property name="LINK.LOG4J" value="http://logging.apache.org/log4j/docs/api/"/>
36 <property name="JAVADOC.TITLE" value="Klassenbibliothek Martin Schmitz"/>
37
38 <target name="all">
39 <antcall target="jar"/>
40 <antcall target="src"/>
41 <antcall target="javadoc"/>
42 </target>
43
44 <target name="basic">
45 <antcall target="jar"/>
46 <antcall target="src"/>
47 </target>
48
49 <!-- ############## Create a JAR from "classes" and ZIP it ############## -->
50 <target name="jar">
51 <!-- Create the JAR -->
52 <delete failonerror="false" file="${FILE.JAR}"/>
53 <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
54 <fileset dir="${DIR.CLASSES}">
55 <exclude name="schmitzm/test**" />
56 <exclude name="**/*.html" />
57 <exclude name="**/*.xcf" />
58 <exclude name="**/Thumbs.db" />
59 </fileset>
60 <manifest>
61 <attribute name="Created-By" value="Martin O.J. Schmitz, Stefan A. Krüger" />
62 </manifest>
63 </jar>
64 <!-- Create a ZIP of the JAR -->
65 <delete failonerror="false" file="${FILE.JAR.ZIP}"/>
66 <zip basedir="." destfile="${FILE.JAR.ZIP}">
67 <filename name="${FILE.JAR}"/>
68 </zip>
69 </target>
70
71 <!-- ############## Create a ZIP from "src" folder ############## -->
72 <target name="src">
73 <!-- Create a ZIP from "src" folder -->
74 <delete failonerror="false" file="${FILE.SRC.ZIP}"/>
75 <zip destfile="${FILE.SRC.ZIP}" update="false">
76 <zipfileset dir="${DIR.SRC}" prefix="${ZIP.ROOT.DIR}/${DIR.SRC}">
77 <exclude name="schmitzm/test**" />
78 <exclude name="**/Thumbs.db" />
79 <exclude name="**/.svn" />
80 </zipfileset>
81 </zip>
82 <!-- Add build.xml to ZIP -->
83 <zip destfile="${FILE.SRC.ZIP}" update="true">
84 <zipfileset file="build.xml" prefix="${ZIP.ROOT.DIR}"/>
85 </zip>
86 </target>
87
88 <!-- ############## Create a JavaDoc to "javadoc" and ZIP it ############## -->
89 <target name="javadoc">
90 <!-- Create a JavaDoc to "javadoc" folder -->
91 <delete failonerror="false" dir="${DIR.JAVADOC}"/>
92 <javadoc sourcepath ="${DIR.SRC}"
93 destdir ="${DIR.JAVADOC}"
94 author ="true"
95 version ="true"
96 overview ="${DIR.SRC}/overview.html"
97 windowtitle="${JAVADOC.TITLE}"
98 >
99 <excludepackage name="schmitzm.test"/>
100 <link href="${LINK.JDK}"/>
101 <link href="${LINK.LOG4J}"/>
102 </javadoc>
103 <!-- Create a ZIP from "javadoc" folder -->
104 <delete failonerror="false" file="${FILE.JAVADOC.ZIP}"/>
105 <zip destfile="${FILE.JAVADOC.ZIP}" update="false">
106 <zipfileset dir="${DIR.JAVADOC}" prefix="${ZIP.ROOT.DIR}/${DIR.JAVADOC}">
107 <exclude name="**/Thumbs.db" />
108 <exclude name="**/.svn" />
109 </zipfileset>
110 </zip>
111 </target>
112 </project>

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/xml

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26