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

Annotation of /branches/2.0-GP14/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations)
Wed Feb 25 17:32:38 2009 UTC (16 years ago) by mojays
Original Path: trunk/build.xml
File MIME type: text/xml
File size: 4104 byte(s)
build.xml extended with "src", "jar", "javadoc"
1 mojays 11 <!-- Build file for SCHMITZM.
2 mojays 12 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 mojays 11 -->
15 mojays 12 <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 alfonx 9
37 mojays 12 <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 alfonx 9 <target name="jar">
50 mojays 12 <!-- 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 alfonx 9 <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 mojays 12 <!-- 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 alfonx 10
86 mojays 12 <!-- ############## 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 alfonx 10 </zip>
109 alfonx 9 </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