/[schmitzm]/branches/2.1/build.xml
ViewVC logotype

Annotation of /branches/2.1/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 380 - (hide annotations)
Fri Sep 4 14:01:50 2009 UTC (15 years, 5 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/build.xml
File MIME type: text/xml
File size: 4586 byte(s)
version postfix changed to gt2-2.6 (instead of gt2.2.6)
1 mojays 16 <!-- Build file for SCHMITZM. Target ZIPs/JARs are placed in "dist" folder.
2     NOTE: This script does not compile the java source (because of library
3 mojays 12 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 mojays 11 -->
15 mojays 12 <project default="basic" basedir=".">
16 mojays 376 <!-- Project name -->
17     <property name="PROJECT.NAME" value="schmitzm"/>
18     <!-- Version number added as postfix to files -->
19 mojays 380 <property name="VERSION" value="-1.0-gt2-2.6"/>
20 mojays 16
21     <!-- Destination folder for ZIPs and JARs -->
22     <property name="DEST.DIR" value="dist"/>
23 mojays 12 <!-- Prefix for the destination file names
24     e.g. "schmitzm" >> "schmitzm.jar", "schmitzm-src.jar" -->
25 mojays 376 <property name="PROJECT.PREFIX" value="${PROJECT.NAME}${VERSION}"/>
26    
27 mojays 12 <!-- Global prefix directory for ZIP files (except ZIP of JAR!) -->
28     <property name="ZIP.ROOT.DIR" value="${PROJECT.PREFIX}"/>
29    
30     <!-- Source and Destination for source code ZIP -->
31     <property name="DIR.SRC" value="src"/>
32 mojays 16 <property name="FILE.SRC.ZIP" value="${DEST.DIR}/${PROJECT.PREFIX}-src.zip"/>
33 mojays 12
34     <!-- Source and Destination for JAR file -->
35     <property name="DIR.CLASSES" value="classes"/>
36 mojays 16 <property name="FILE.JAR" value="${DEST.DIR}/${PROJECT.PREFIX}.jar"/>
37 mojays 12 <property name="FILE.JAR.ZIP" value="${FILE.JAR}.zip"/>
38    
39     <!-- Destination for JavaDoc and its ZIP -->
40     <property name="DIR.JAVADOC" value="javadoc"/>
41 mojays 16 <property name="FILE.JAVADOC.ZIP" value="${DEST.DIR}/${PROJECT.PREFIX}-doc.zip"/>
42 mojays 12 <property name="LINK.JDK" value="http://java.sun.com/javase/6/docs/api/"/>
43     <property name="LINK.LOG4J" value="http://logging.apache.org/log4j/docs/api/"/>
44 mojays 14 <property name="JAVADOC.TITLE" value="Klassenbibliothek Martin Schmitz"/>
45 alfonx 9
46 mojays 12 <target name="all">
47     <antcall target="jar"/>
48     <antcall target="src"/>
49     <antcall target="javadoc"/>
50     </target>
51    
52     <target name="basic">
53     <antcall target="jar"/>
54     <antcall target="src"/>
55     </target>
56    
57     <!-- ############## Create a JAR from "classes" and ZIP it ############## -->
58 alfonx 9 <target name="jar">
59 mojays 12 <!-- Create the JAR -->
60     <delete failonerror="false" file="${FILE.JAR}"/>
61     <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
62     <fileset dir="${DIR.CLASSES}">
63 alfonx 9 <exclude name="schmitzm/test**" />
64     <exclude name="**/*.html" />
65     <exclude name="**/*.xcf" />
66     <exclude name="**/Thumbs.db" />
67     </fileset>
68     <manifest>
69     <attribute name="Created-By" value="Martin O.J. Schmitz, Stefan A. Krüger" />
70     </manifest>
71     </jar>
72 mojays 12 <!-- Create a ZIP of the JAR -->
73     <delete failonerror="false" file="${FILE.JAR.ZIP}"/>
74     <zip basedir="." destfile="${FILE.JAR.ZIP}">
75     <filename name="${FILE.JAR}"/>
76     </zip>
77     </target>
78    
79     <!-- ############## Create a ZIP from "src" folder ############## -->
80     <target name="src">
81     <!-- Create a ZIP from "src" folder -->
82     <delete failonerror="false" file="${FILE.SRC.ZIP}"/>
83     <zip destfile="${FILE.SRC.ZIP}" update="false">
84     <zipfileset dir="${DIR.SRC}" prefix="${ZIP.ROOT.DIR}/${DIR.SRC}">
85 mojays 14 <exclude name="schmitzm/test**" />
86 mojays 12 <exclude name="**/Thumbs.db" />
87     <exclude name="**/.svn" />
88     </zipfileset>
89     </zip>
90     <!-- Add build.xml to ZIP -->
91     <zip destfile="${FILE.SRC.ZIP}" update="true">
92     <zipfileset file="build.xml" prefix="${ZIP.ROOT.DIR}"/>
93     </zip>
94     </target>
95 alfonx 10
96 mojays 12 <!-- ############## Create a JavaDoc to "javadoc" and ZIP it ############## -->
97     <target name="javadoc">
98     <!-- Create a JavaDoc to "javadoc" folder -->
99     <delete failonerror="false" dir="${DIR.JAVADOC}"/>
100     <javadoc sourcepath ="${DIR.SRC}"
101     destdir ="${DIR.JAVADOC}"
102     author ="true"
103     version ="true"
104     overview ="${DIR.SRC}/overview.html"
105 mojays 14 windowtitle="${JAVADOC.TITLE}"
106 mojays 12 >
107     <excludepackage name="schmitzm.test"/>
108     <link href="${LINK.JDK}"/>
109     <link href="${LINK.LOG4J}"/>
110     </javadoc>
111     <!-- Create a ZIP from "javadoc" folder -->
112     <delete failonerror="false" file="${FILE.JAVADOC.ZIP}"/>
113     <zip destfile="${FILE.JAVADOC.ZIP}" update="false">
114     <zipfileset dir="${DIR.JAVADOC}" prefix="${ZIP.ROOT.DIR}/${DIR.JAVADOC}">
115     <exclude name="**/Thumbs.db" />
116     <exclude name="**/.svn" />
117     </zipfileset>
118 alfonx 10 </zip>
119 alfonx 9 </target>
120     </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