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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/2.0-RC1/build.xml revision 605 by alfonx, Wed Dec 9 14:22:41 2009 UTC branches/2.0-GP14/build.xml revision 759 by alfonx, Wed Mar 10 12:48:37 2010 UTC
# Line 10  Line 10 
10       Option "all"     -> all of the upper mentioned options       Option "all"     -> all of the upper mentioned options
11       Option "basic"   -> only "jar" and "src"       Option "basic"   -> only "jar" and "src"
12            
13         Option "bin_ms"  -> compile the "src" folder to "classes" with Martin's classpath
14         Option "all_ms"  -> "bin_ms", "jar", "src", "javadoc"
15        
16         Option "bin_sk"  -> compile the "src" folder to "classes" with Stefan's classpath
17         Option "all_sk"  -> "bin_sk", "jar", "src", "javadoc"
18    
19       The default option is "basic"       The default option is "basic"
20  -->  -->
21  <project default="basic" basedir=".">  <project default="basic" basedir="." xmlns:ac="antlib:net.sf.antcontrib">
22            <taskdef uri="antlib:net.sf.antcontrib" classpath="ant-contrib-1.0b2.jar" />
23    
24          <!-- Project name -->          <!-- Project name -->
25          <property name="PROJECT.NAME"    value="schmitzm"/>          <property name="PROJECT.NAME"    value="schmitzm"/>
26          <!-- Version number added as postfix to files -->          <!-- Version number added as postfix to files -->
27          <property name="VERSION"         value="-2.0-RC1"/>          <property name="VERSION"         value="-2.0.x"/>
28    
29          <!-- Destination folder for ZIPs and JARs -->          <!-- Destination folder for ZIPs and JARs -->
30          <property name="DEST.DIR"         value="dist"/>          <property name="DEST.DIR"         value="dist"/>
# Line 43  Line 51 
51          <property name="LINK.LOG4J"       value="http://logging.apache.org/log4j/docs/api/"/>          <property name="LINK.LOG4J"       value="http://logging.apache.org/log4j/docs/api/"/>
52          <property name="JAVADOC.TITLE"    value="Klassenbibliothek Martin Schmitz"/>          <property name="JAVADOC.TITLE"    value="Klassenbibliothek Martin Schmitz"/>
53    
54            <!-- Destination and classpath to create binaries with Martin's parameters (MS) -->
55            <property name="LIB.ROOT.MS"      value="C:/Programme/Java"/>
56            <property name="GT.ROOT.MS"       value="${LIB.ROOT.MS}/gt2-2.6.1"/>
57            <property name="COLT.ROOT.MS"     value="${LIB.ROOT.MS}/Colt"/>
58            <property name="JFREE.ROOT.MS"    value="${LIB.ROOT.MS}/jfreechart-1.0.13"/>
59            <property name="JINI.ROOT.MS"     value="${LIB.ROOT.MS}/jini"/>
60            <property name="LOG4J.ROOT.MS"    value="${LIB.ROOT.MS}/logging-log4j-1.2.14"/>
61            <property name="POI.ROOT.MS"      value="${LIB.ROOT.MS}/POI"/>
62            <property name="JAI.ROOT.MS"      value="${LIB.ROOT.MS}/jdk1.6.0_05/jre/lib/ext"/>
63            
64            <!-- Destination and classpath to create binaries with Martin's parameters (MS) -->
65            <property name="LIB.ROOT.SK"      value="..."/>
66            <property name="GT.ROOT.SK"       value="${LIB.ROOT.SK}/..."/>
67            <property name="COLT.ROOT.SK"     value="${LIB.ROOT.SK}/..."/>
68            <property name="JFREE.ROOT.SK"    value="${LIB.ROOT.SK}/..."/>
69            <property name="JINI.ROOT.SK"     value="${LIB.ROOT.SK}/..."/>
70            <property name="LOG4J.ROOT.SK"    value="${LIB.ROOT.SK}/..."/>
71            <property name="POI.ROOT.SK"      value="${LIB.ROOT.SK}/..."/>
72            <property name="JAI.ROOT.SK"      value="${LIB.ROOT.SK}/..."/>
73    
74          <target name="all">          <target name="all">
75                  <antcall target="jar"/>                  <antcall target="jar"/>
76                  <antcall target="src"/>                  <antcall target="src"/>
77                  <antcall target="javadoc"/>                  <antcall target="javadoc"/>
78          </target>          </target>
79    
80            <target name="all_ms">
81                    <antcall target="bin_ms"/>
82                    <antcall target="jar"/>
83                    <antcall target="src"/>
84                    <antcall target="javadoc"/>
85            </target>
86    
87            <target name="all_sk">
88                    <antcall target="bin_sk"/>
89                    <antcall target="jar"/>
90                    <antcall target="src"/>
91                    <antcall target="javadoc"/>
92            </target>
93            
94          <target name="basic">          <target name="basic">
95                  <antcall target="jar"/>                  <antcall target="jar"/>
96                  <antcall target="src"/>                  <antcall target="src"/>
97          </target>          </target>
98    
99          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->
100          <target name="jar">          <target name="jar" depends="nativeToAscii">
101                  <!-- Create the JAR -->  <!--    <target name="jar">  -->
102                  <delete failonerror="false" file="${FILE.JAR}"/>                  <delete failonerror="false" file="${FILE.JAR}"/>
103                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
104                          <fileset dir="${DIR.CLASSES}">                          <fileset dir="${DIR.CLASSES}">
# Line 117  Line 159 
159                          </zipfileset>                          </zipfileset>
160                  </zip>                  </zip>
161          </target>          </target>
162    
163            <!-- ##############  Create binaries with Martin's parameters  ############## -->
164            <target name="bin_ms">
165                    <property name="GT.ROOT"       value="${GT.ROOT.MS}"/>
166                    <property name="COLT.ROOT"     value="${COLT.ROOT.MS}"/>
167                    <property name="JFREE.ROOT"    value="${JFREE.ROOT.MS}"/>
168                    <property name="JINI.ROOT"     value="${JINI.ROOT.MS}"/>
169                    <property name="LOG4J.ROOT"    value="${LOG4J.ROOT.MS}"/>
170                    <property name="POI.ROOT"      value="${POI.ROOT.MS}"/>
171                    <property name="JAI.ROOT"      value="${JAI.ROOT.MS}"/>
172                    <antcall target="javac"/>
173            </target>
174                    
175            <!-- ##############  Create binaries with Stefan's parameters  ############## -->
176            <target name="bin_sk">
177                    <property name="GT.ROOT"       value="${GT.ROOT.SK}"/>
178                    <property name="COLT.ROOT"     value="${COLT.ROOT.SK}"/>
179                    <property name="JFREE.ROOT"    value="${JFREE.ROOT.SK}"/>
180                    <property name="JINI.ROOT"     value="${JINI.ROOT.SK}"/>
181                    <property name="LOG4J.ROOT"    value="${LOG4J.ROOT.SK}"/>
182                    <property name="POI.ROOT"      value="${POI.ROOT.SK}"/>
183                    <property name="JAI.ROOT"      value="${JAI.ROOT.SK}"/>
184                    <antcall target="javac"/>
185            </target>
186    
187            <!-- ##############  Create binaries   ############## -->
188            <target name="javac">
189                    <!--delete failonerror="false" dir="${DIR.BIN}"/-->
190                    <mkdir  dir="${DIR.CLASSES}"/>
191                    <!-- Compile source to binaries folder -->
192                    <javac   srcdir     ="${DIR.SRC}"
193                                 destdir    ="${DIR.CLASSES}"
194                    >
195                            <classpath>
196                                    <fileset dir="lib/gt-unsupported">
197                                            <include name="*.jar"/>
198                                    </fileset>
199                                    <fileset dir="${COLT.ROOT}">
200                                            <include name="*.jar"/>
201                                    </fileset>
202                                    <fileset dir="${JFREE.ROOT}">
203                                            <include name="*.jar"/>
204                                    </fileset>
205                                    <fileset dir="${JINI.ROOT}">
206                                            <include name="lib/*.jar"/>
207                                            <include name="lib-dl/*.jar"/>
208                                            <include name="lib-ext/*.jar"/>
209                                    </fileset>
210                                    <fileset dir="${LOG4J.ROOT}">
211                                            <include name="*.jar"/>
212                                    </fileset>
213                                    <fileset dir="${POI.ROOT}">
214                                            <include name="*.jar"/>
215                                    </fileset>
216                                    <fileset dir="${GT.ROOT}">
217                                            <include name="*.jar"/>
218                                    </fileset>
219                                    <fileset dir="${JAI.ROOT}">
220                                            <include name="*.jar"/>
221                                    </fileset>
222                            </classpath>
223                    </javac>
224                    <!-- copy other necessary files to destination folder -->
225                    <copy todir="${DIR.CLASSES}">
226                        <fileset dir="${DIR.SRC}">
227                              <include name="**/COPYING*"/>    <!-- Licence -->
228                          <include name="**/*.LIST"/>      <!-- META-INF -->
229                          <include name="**/resource/**"/> <!-- resource files -->
230                          <exclude name="**/Thumbs.db" />
231                          <exclude name="**/.svn/"/>
232                        </fileset>
233                    </copy>
234            </target>
235    
236            <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">
237                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
238                            <path>
239                                    <fileset dir="${DIR.SRC}" includes="**/*.properties" />
240                            </path>
241                            <sequential>
242                                    <move file="@{file}" overwrite="true" tofile="@{file}Native" verbose="false"/>
243                            </sequential>
244                    </ac:for>
245                    <native2ascii encoding="ISO8859_15" src="${DIR.SRC}" includes="**/*.propertiesNative" dest="${DIR.SRC}" ext=".properties" />
246                    
247                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
248                            <path>
249                                    <fileset dir="${DIR.SRC}" includes="**/*.propertiesNative" />
250                            </path>
251                            <sequential>
252                                    <delete file="@{file}" quiet="true"/>
253                            </sequential>
254                    </ac:for>
255            </target>
256    
257  </project>  </project>

Legend:
Removed from v.605  
changed lines
  Added in v.759

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26