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

Diff of /trunk/build.xml

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

revision 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC revision 705 by mojays, Sun Feb 14 22:03: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="." xmlns:ac="antlib:net.sf.antcontrib">  <project default="basic" basedir="." xmlns:ac="antlib:net.sf.antcontrib">
# Line 18  Line 24 
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-RC2"/>          <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 45  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" depends="nativeToAscii">  <!--    <target name="jar" depends="nativeToAscii"-->
101            <target name="jar">
102                  <!-- Create the JAR -->                  <!-- Create the JAR -->
103                  <delete failonerror="false" file="${FILE.JAR}"/>                  <delete failonerror="false" file="${FILE.JAR}"/>
104                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
# Line 120  Line 161 
161                  </zip>                  </zip>
162          </target>          </target>
163    
164            <!-- ##############  Create binaries with Martin's parameters  ############## -->
165            <target name="bin_ms">
166                    <property name="GT.ROOT"       value="${GT.ROOT.MS}"/>
167                    <property name="COLT.ROOT"     value="${COLT.ROOT.MS}"/>
168                    <property name="JFREE.ROOT"    value="${JFREE.ROOT.MS}"/>
169                    <property name="JINI.ROOT"     value="${JINI.ROOT.MS}"/>
170                    <property name="LOG4J.ROOT"    value="${LOG4J.ROOT.MS}"/>
171                    <property name="POI.ROOT"      value="${POI.ROOT.MS}"/>
172                    <property name="JAI.ROOT"      value="${JAI.ROOT.MS}"/>
173                    <antcall target="javac"/>
174            </target>
175                    
176            <!-- ##############  Create binaries with Stefan's parameters  ############## -->
177            <target name="bin_sk">
178                    <property name="GT.ROOT"       value="${GT.ROOT.SK}"/>
179                    <property name="COLT.ROOT"     value="${COLT.ROOT.SK}"/>
180                    <property name="JFREE.ROOT"    value="${JFREE.ROOT.SK}"/>
181                    <property name="JINI.ROOT"     value="${JINI.ROOT.SK}"/>
182                    <property name="LOG4J.ROOT"    value="${LOG4J.ROOT.SK}"/>
183                    <property name="POI.ROOT"      value="${POI.ROOT.SK}"/>
184                    <property name="JAI.ROOT"      value="${JAI.ROOT.SK}"/>
185                    <antcall target="javac"/>
186            </target>
187    
188            <!-- ##############  Create binaries   ############## -->
189            <target name="javac">
190                    <!--delete failonerror="false" dir="${DIR.BIN}"/-->
191                    <mkdir  dir="${DIR.CLASSES}"/>
192                    <!-- Compile source to binaries folder -->
193                    <javac   srcdir     ="${DIR.SRC}"
194                                 destdir    ="${DIR.CLASSES}"
195                    >
196                            <classpath>
197                                    <fileset dir="lib/gt-unsupported">
198                                            <include name="*.jar"/>
199                                    </fileset>
200                                    <fileset dir="${COLT.ROOT}">
201                                            <include name="*.jar"/>
202                                    </fileset>
203                                    <fileset dir="${JFREE.ROOT}">
204                                            <include name="*.jar"/>
205                                    </fileset>
206                                    <fileset dir="${JINI.ROOT}">
207                                            <include name="lib/*.jar"/>
208                                            <include name="lib-dl/*.jar"/>
209                                            <include name="lib-ext/*.jar"/>
210                                    </fileset>
211                                    <fileset dir="${LOG4J.ROOT}">
212                                            <include name="*.jar"/>
213                                    </fileset>
214                                    <fileset dir="${POI.ROOT}">
215                                            <include name="*.jar"/>
216                                    </fileset>
217                                    <fileset dir="${GT.ROOT}">
218                                            <include name="*.jar"/>
219                                    </fileset>
220                                    <fileset dir="${JAI.ROOT}">
221                                            <include name="*.jar"/>
222                                    </fileset>
223                            </classpath>
224                    </javac>
225                    <!-- copy other necessary files to destination folder -->
226                    <copy todir="${DIR.CLASSES}">
227                        <fileset dir="${DIR.SRC}">
228                              <include name="**/COPYING*"/>    <!-- Licence -->
229                          <include name="**/*.LIST"/>      <!-- META-INF -->
230                          <include name="**/resource/**"/> <!-- resource files -->
231                          <exclude name="**/Thumbs.db" />
232                          <exclude name="**/.svn/"/>
233                        </fileset>
234                    </copy>
235            </target>
236    
237          <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">          <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">
238                  <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">                  <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
239                          <path>                          <path>

Legend:
Removed from v.685  
changed lines
  Added in v.705

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26