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

Diff of /trunk/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 trunk/build.xml revision 689 by mojays, Wed Feb 10 15:35:01 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.x"/>
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    <!--    <target name="jar" depends="nativeToAscii"-->
61          <target name="jar">          <target name="jar">
62                  <!-- Create the JAR -->                  <!-- Create the JAR -->
63                  <delete failonerror="false" file="${FILE.JAR}"/>                  <delete failonerror="false" file="${FILE.JAR}"/>
# Line 117  Line 120 
120                          </zipfileset>                          </zipfileset>
121                  </zip>                  </zip>
122          </target>          </target>
123    
124            <target name="nativeToAscii" description="Wandelt alle .properties dateien in src/ in ascii UTF8 um.">
125                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
126                            <path>
127                                    <fileset dir="${DIR.SRC}" includes="**/*.properties" />
128                            </path>
129                            <sequential>
130                                    <move file="@{file}" overwrite="true" tofile="@{file}Native" verbose="false"/>
131                            </sequential>
132                    </ac:for>
133                    <native2ascii encoding="ISO8859_15" src="${DIR.SRC}" includes="**/*.propertiesNative" dest="${DIR.SRC}" ext=".properties" />
134                    
135                    <ac:for xmlns:ac="antlib:net.sf.antcontrib" param="file">
136                            <path>
137                                    <fileset dir="${DIR.SRC}" includes="**/*.propertiesNative" />
138                            </path>
139                            <sequential>
140                                    <delete file="@{file}" quiet="true"/>
141                            </sequential>
142                    </ac:for>
143            </target>
144    
145  </project>  </project>

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26