/[schmitzm]/branches/2.3.KECK/build.xml
ViewVC logotype

Contents of /branches/2.3.KECK/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621 - (show annotations)
Thu Jan 28 10:06:05 2010 UTC (15 years, 1 month ago) by alfonx
Original Path: branches/2.0-RC2/build.xml
File MIME type: text/xml
File size: 5473 byte(s)
2.0-RC2 ist für die weiterentwicklung und soll bald in den trunk mergen
1 <!-- 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 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="." xmlns:ac="antlib:net.sf.antcontrib">
16 <taskdef uri="antlib:net.sf.antcontrib" classpath="ant-contrib-1.0b2.jar" />
17
18 <!-- Project name -->
19 <property name="PROJECT.NAME" value="schmitzm"/>
20 <!-- Version number added as postfix to files -->
21 <property name="VERSION" value="-2.0-RC1"/>
22
23 <!-- Destination folder for ZIPs and JARs -->
24 <property name="DEST.DIR" value="dist"/>
25 <!-- Prefix for the destination file names
26 e.g. "schmitzm" >> "schmitzm.jar", "schmitzm-src.jar" -->
27 <property name="PROJECT.PREFIX" value="${PROJECT.NAME}${VERSION}"/>
28
29 <!-- Global prefix directory for ZIP files (except ZIP of JAR!) -->
30 <property name="ZIP.ROOT.DIR" value="${PROJECT.PREFIX}"/>
31
32 <!-- Source and Destination for source code ZIP -->
33 <property name="DIR.SRC" value="src"/>
34 <property name="FILE.SRC.ZIP" value="${DEST.DIR}/${PROJECT.PREFIX}-src.zip"/>
35
36 <!-- Source and Destination for JAR file -->
37 <property name="DIR.CLASSES" value="classes"/>
38 <property name="FILE.JAR" value="${DEST.DIR}/${PROJECT.PREFIX}.jar"/>
39 <property name="FILE.JAR.ZIP" value="${FILE.JAR}.zip"/>
40
41 <!-- Destination for JavaDoc and its ZIP -->
42 <property name="DIR.JAVADOC" value="javadoc"/>
43 <property name="FILE.JAVADOC.ZIP" value="${DEST.DIR}/${PROJECT.PREFIX}-doc.zip"/>
44 <property name="LINK.JDK" value="http://java.sun.com/javase/6/docs/api/"/>
45 <property name="LINK.LOG4J" value="http://logging.apache.org/log4j/docs/api/"/>
46 <property name="JAVADOC.TITLE" value="Klassenbibliothek Martin Schmitz"/>
47
48 <target name="all">
49 <antcall target="jar"/>
50 <antcall target="src"/>
51 <antcall target="javadoc"/>
52 </target>
53
54 <target name="basic">
55 <antcall target="jar"/>
56 <antcall target="src"/>
57 </target>
58
59 <!-- ############## Create a JAR from "classes" and ZIP it ############## -->
60 <target name="jar" depends="nativeToAscii">
61 <!-- Create the JAR -->
62 <delete failonerror="false" file="${FILE.JAR}"/>
63 <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
64 <fileset dir="${DIR.CLASSES}">
65 <exclude name="schmitzm/test**" />
66 <exclude name="**/*.html" />
67 <exclude name="**/*.xcf" />
68 <exclude name="**/Thumbs.db" />
69 </fileset>
70 <manifest>
71 <attribute name="Created-By" value="Martin O.J. Schmitz, Stefan A. Krüger" />
72 </manifest>
73 </jar>
74 <!-- Create a ZIP of the JAR -->
75 <delete failonerror="false" file="${FILE.JAR.ZIP}"/>
76 <zip basedir="." destfile="${FILE.JAR.ZIP}">
77 <filename name="${FILE.JAR}"/>
78 </zip>
79 </target>
80
81 <!-- ############## Create a ZIP from "src" folder ############## -->
82 <target name="src">
83 <!-- Create a ZIP from "src" folder -->
84 <delete failonerror="false" file="${FILE.SRC.ZIP}"/>
85 <zip destfile="${FILE.SRC.ZIP}" update="false">
86 <zipfileset dir="${DIR.SRC}" prefix="${ZIP.ROOT.DIR}/${DIR.SRC}">
87 <exclude name="schmitzm/test**" />
88 <exclude name="**/Thumbs.db" />
89 <exclude name="**/.svn" />
90 </zipfileset>
91 </zip>
92 <!-- Add build.xml to ZIP -->
93 <zip destfile="${FILE.SRC.ZIP}" update="true">
94 <zipfileset file="build.xml" prefix="${ZIP.ROOT.DIR}"/>
95 </zip>
96 </target>
97
98 <!-- ############## Create a JavaDoc to "javadoc" and ZIP it ############## -->
99 <target name="javadoc">
100 <!-- Create a JavaDoc to "javadoc" folder -->
101 <delete failonerror="false" dir="${DIR.JAVADOC}"/>
102 <javadoc sourcepath ="${DIR.SRC}"
103 destdir ="${DIR.JAVADOC}"
104 author ="true"
105 version ="true"
106 overview ="${DIR.SRC}/overview.html"
107 windowtitle="${JAVADOC.TITLE}"
108 >
109 <excludepackage name="schmitzm.test"/>
110 <link href="${LINK.JDK}"/>
111 <link href="${LINK.LOG4J}"/>
112 </javadoc>
113 <!-- Create a ZIP from "javadoc" folder -->
114 <delete failonerror="false" file="${FILE.JAVADOC.ZIP}"/>
115 <zip destfile="${FILE.JAVADOC.ZIP}" update="false">
116 <zipfileset dir="${DIR.JAVADOC}" prefix="${ZIP.ROOT.DIR}/${DIR.JAVADOC}">
117 <exclude name="**/Thumbs.db" />
118 <exclude name="**/.svn" />
119 </zipfileset>
120 </zip>
121 </target>
122
123 <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">
124 <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
125 <path>
126 <fileset dir="${DIR.SRC}" includes="**/*.properties" />
127 </path>
128 <sequential>
129 <move file="@{file}" overwrite="true" tofile="@{file}Native" verbose="false"/>
130 </sequential>
131 </ac:for>
132 <native2ascii encoding="ISO8859_15" src="${DIR.SRC}" includes="**/*.propertiesNative" dest="${DIR.SRC}" ext=".properties" />
133
134 <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
135 <path>
136 <fileset dir="${DIR.SRC}" includes="**/*.propertiesNative" />
137 </path>
138 <sequential>
139 <delete file="@{file}" quiet="true"/>
140 </sequential>
141 </ac:for>
142 </target>
143
144 </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