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

Diff of /trunk/build.xml

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

revision 14 by mojays, Wed Feb 25 22:40:42 2009 UTC revision 19 by mojays, Mon Mar 2 14:56:39 2009 UTC
# Line 3  Line 3 
3    
4       Option "jar"     -> a JAR from the existing binaries expected in folder       Option "jar"     -> a JAR from the existing binaries expected in folder
5                           "classes" plus a ZIP of the JAR                           "classes" plus a ZIP of the JAR
6         Option "extJar"  -> Option "jar"
7                             + folder "resource/icons" in JAR
8                             + folder "resource/locales" in JAR
9       Option "src"     -> a ZIP of the source code in folder "src"       Option "src"     -> a ZIP of the source code in folder "src"
10       Option "javadoc" -> a JavaDoc in folder "javadoc" plus a ZIP of       Option "javadoc" -> a JavaDoc in folder "javadoc" plus a ZIP of
11                           this folder                           this folder
12       Option "all"     -> all of the upper mentioned options       Option "all"     -> all of the upper mentioned options
13       Option "basic"   -> only "jar" and "src"       Option "basic"   -> only "jar" and "src"
14                  
15       The default option is "basic"       The default option is "basic"
16  -->  -->
17  <project default="basic" basedir=".">  <project default="basic" basedir=".">
# Line 29  Line 32 
32          <property name="DIR.CLASSES"      value="classes"/>          <property name="DIR.CLASSES"      value="classes"/>
33      <property name="FILE.JAR"         value="${DEST.DIR}/${PROJECT.PREFIX}.jar"/>      <property name="FILE.JAR"         value="${DEST.DIR}/${PROJECT.PREFIX}.jar"/>
34          <property name="FILE.JAR.ZIP"     value="${FILE.JAR}.zip"/>          <property name="FILE.JAR.ZIP"     value="${FILE.JAR}.zip"/>
35            <!-- Informations for extended JAR -->
36        <property name="FILE.EXT.JAR"     value="${DEST.DIR}/${PROJECT.PREFIX}-ext.jar"/>
37            <property name="DIR.RESOURCE"     value="resource"/>
38    
39                    
40          <!-- Destination for JavaDoc and its ZIP -->          <!-- Destination for JavaDoc and its ZIP -->
41          <property name="DIR.JAVADOC"      value="javadoc"/>          <property name="DIR.JAVADOC"      value="javadoc"/>
# Line 70  Line 77 
77                  </zip>                  </zip>
78          </target>          </target>
79                    
80            <!-- ##############  Create an extended JAR from "classes" ############## -->
81            <!-- ## besides the classes, this JAR includes the XULU folders
82                 ##  - resource/icons
83                 ##  - resource/locales
84                 #################################################################### -->
85            <target name="extJar">
86                    <!-- Create JAR and source ZIP -->
87                    <antcall target="jar"/>
88                    <!-- Copy JAR to "..-ext.jar" -->
89                    <copy file="${FILE.JAR}" tofile="${FILE.EXT.JAR}" overwrite="true" />
90                    <!-- Update the JAR with the extended folders -->
91                    <jar destfile="${FILE.EXT.JAR}" update="true" index="false" level="8" duplicate="preserve">
92                            <fileset dir="${DIR.RESOURCE}">
93                                    <exclude name="unused**" />
94                                    <exclude name="**/.svn" />
95                                    <exclude name="**/*.xcf" />
96                                    <exclude name="**/Thumbs.db" />
97                            </fileset>
98                    </jar>
99            </target>
100    
101          <!-- ##############  Create a ZIP from "src" folder  ############## -->          <!-- ##############  Create a ZIP from "src" folder  ############## -->
102          <target name="src">          <target name="src">
103                  <!-- Create a ZIP from "src" folder -->                  <!-- Create a ZIP from "src" folder -->

Legend:
Removed from v.14  
changed lines
  Added in v.19

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26