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

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

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

branches/1.0-gt2-2.6/build.xml revision 380 by mojays, Fri Sep 4 14:01:50 2009 UTC branches/2.0-RC2/build.xml revision 696 by mojays, Sat Feb 13 11:54:14 2010 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 -->          <!-- Project name -->
19          <property name="PROJECT.NAME"    value="schmitzm"/>          <property name="PROJECT.NAME"    value="schmitzm"/>
20          <!-- Version number added as postfix to files -->          <!-- Version number added as postfix to files -->
21          <property name="VERSION"         value="-1.0-gt2-2.6"/>          <property name="VERSION"         value="-2.0-RC2"/>
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"/>
# Line 55  Line 57 
57          </target>          </target>
58    
59          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->          <!-- ##############  Create a JAR from "classes" and ZIP it ############## -->
60    <!--
61          <target name="jar">          <target name="jar">
62    -->
63            <target name="jar" depends="nativeToAscii">
64                  <!-- Create the JAR -->                  <!-- Create the JAR -->
65                  <delete failonerror="false" file="${FILE.JAR}"/>                  <delete failonerror="false" file="${FILE.JAR}"/>
66                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">                  <jar destfile="${FILE.JAR}" index="false" level="8" duplicate="preserve">
# Line 117  Line 122 
122                          </zipfileset>                          </zipfileset>
123                  </zip>                  </zip>
124          </target>          </target>
125    
126            <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">
127                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
128                            <path>
129                                    <fileset dir="${DIR.SRC}" includes="**/*.properties" />
130                            </path>
131                            <sequential>
132                                    <move file="@{file}" overwrite="true" tofile="@{file}Native" verbose="false"/>
133                            </sequential>
134                    </ac:for>
135                    <native2ascii encoding="ISO8859_15" src="${DIR.SRC}" includes="**/*.propertiesNative" dest="${DIR.SRC}" ext=".properties" />
136                    
137                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
138                            <path>
139                                    <fileset dir="${DIR.SRC}" includes="**/*.propertiesNative" />
140                            </path>
141                            <sequential>
142                                    <delete file="@{file}" quiet="true"/>
143                            </sequential>
144                    </ac:for>
145            </target>
146    
147  </project>  </project>

Legend:
Removed from v.380  
changed lines
  Added in v.696

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26