/[schmitzm]/trunk/build.xml
ViewVC logotype

Contents of /trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Wed Feb 25 17:32:38 2009 UTC (16 years ago) by mojays
File MIME type: text/xml
File size: 4104 byte(s)
build.xml extended with "src", "jar", "javadoc"
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
37 <target name="all">
38 <antcall target="jar"/>
39 <antcall target="src"/>
40 <antcall target="javadoc"/>
41 </target>
42
43 <target name="basic">
44 <antcall target="jar"/>
45 <antcall target="src"/>
46 </target>
47
48 <!-- ############## Create a JAR from "classes" and ZIP it ############## -->
49 <target name="jar">
50 <!-- Create the JAR -->
51 <delete failonerror="false" file="${FILE.JAR}"/>
52 <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
53 <fileset dir="${DIR.CLASSES}">
54 <exclude name="schmitzm/test**" />
55 <exclude name="**/*.html" />
56 <exclude name="**/*.xcf" />
57 <exclude name="**/Thumbs.db" />
58 </fileset>
59 <manifest>
60 <attribute name="Created-By" value="Martin O.J. Schmitz, Stefan A. Krüger" />
61 </manifest>
62 </jar>
63 <!-- Create a ZIP of the JAR -->
64 <delete failonerror="false" file="${FILE.JAR.ZIP}"/>
65 <zip basedir="." destfile="${FILE.JAR.ZIP}">
66 <filename name="${FILE.JAR}"/>
67 </zip>
68 </target>
69
70 <!-- ############## Create a ZIP from "src" folder ############## -->
71 <target name="src">
72 <!-- Create a ZIP from "src" folder -->
73 <delete failonerror="false" file="${FILE.SRC.ZIP}"/>
74 <zip destfile="${FILE.SRC.ZIP}" update="false">
75 <zipfileset dir="${DIR.SRC}" prefix="${ZIP.ROOT.DIR}/${DIR.SRC}">
76 <exclude name="**/Thumbs.db" />
77 <exclude name="**/.svn" />
78 </zipfileset>
79 </zip>
80 <!-- Add build.xml to ZIP -->
81 <zip destfile="${FILE.SRC.ZIP}" update="true">
82 <zipfileset file="build.xml" prefix="${ZIP.ROOT.DIR}"/>
83 </zip>
84 </target>
85
86 <!-- ############## Create a JavaDoc to "javadoc" and ZIP it ############## -->
87 <target name="javadoc">
88 <!-- Create a JavaDoc to "javadoc" folder -->
89 <delete failonerror="false" dir="${DIR.JAVADOC}"/>
90 <javadoc sourcepath ="${DIR.SRC}"
91 destdir ="${DIR.JAVADOC}"
92 author ="true"
93 version ="true"
94 overview ="${DIR.SRC}/overview.html"
95 windowtitle="Klassenbibliothek Martin Schmitz"
96 >
97 <excludepackage name="schmitzm.test"/>
98 <link href="${LINK.JDK}"/>
99 <link href="${LINK.LOG4J}"/>
100 </javadoc>
101 <!-- Create a ZIP from "javadoc" folder -->
102 <delete failonerror="false" file="${FILE.JAVADOC.ZIP}"/>
103 <zip destfile="${FILE.JAVADOC.ZIP}" update="false">
104 <zipfileset dir="${DIR.JAVADOC}" prefix="${ZIP.ROOT.DIR}/${DIR.JAVADOC}">
105 <exclude name="**/Thumbs.db" />
106 <exclude name="**/.svn" />
107 </zipfileset>
108 </zip>
109 </target>
110 </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