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

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

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

branches/1.0-gt2-2.6/build.xml revision 315 by mojays, Wed Aug 26 11:03:27 2009 UTC branches/2.0-RC1/build.xml revision 608 by alfonx, Wed Dec 9 17:04:19 2009 UTC
# Line 12  Line 12 
12            
13       The default option is "basic"       The default option is "basic"
14  -->  -->
15  <project default="basic" basedir=".">  <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 -->          <!-- Destination folder for ZIPs and JARs -->
24          <property name="DEST.DIR"         value="dist"/>          <property name="DEST.DIR"         value="dist"/>
25          <!-- Prefix for the destination file names          <!-- Prefix for the destination file names
26               e.g. "schmitzm" >> "schmitzm.jar", "schmitzm-src.jar" -->               e.g. "schmitzm" >> "schmitzm.jar", "schmitzm-src.jar" -->
27          <property name="PROJECT.PREFIX"   value="schmitzm"/>          <property name="PROJECT.PREFIX"   value="${PROJECT.NAME}${VERSION}"/>
28    
29          <!-- Global prefix directory for ZIP files (except ZIP of JAR!) -->          <!-- Global prefix directory for ZIP files (except ZIP of JAR!) -->
30          <property name="ZIP.ROOT.DIR"     value="${PROJECT.PREFIX}"/>          <property name="ZIP.ROOT.DIR"     value="${PROJECT.PREFIX}"/>
31                    
# Line 50  Line 57 
57          </target>          </target>
58    
59          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->
60          <target name="jar">          <target name="jar" depends="nativeToAscii">
61                  <!-- Create the JAR -->                  <!-- Create the JAR -->
62                  <delete failonerror="false" file="${FILE.JAR}"/>                  <delete failonerror="false" file="${FILE.JAR}"/>
63                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
# Line 112  Line 119 
119                          </zipfileset>                          </zipfileset>
120                  </zip>                  </zip>
121          </target>          </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>  </project>

Legend:
Removed from v.315  
changed lines
  Added in v.608

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26