svn-gvsig-desktop / tags / v10_RC2c / libraries / libUI / build.xml @ 8745
History | View | Annotate | Download (5.17 KB)
1 | 4520 | jaume | <project name="libBeans" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Generates Beans |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="lib" location="lib"/> |
||
10 | <property name="beans.home" location="${build}/org/gvsig/gui/beans"/> |
||
11 | 6285 | cesar | <property name="jarName" value="beans"/> |
12 | 6292 | cesar | <property name="installBaseDir" location="../_fwAndami"/> |
13 | <property name="installDir" location="${installBaseDir}/lib"/> |
||
14 | <property name="andami" location="../_fwAndami"/> |
||
15 | <property name="andamiLibs" location="${andami}/lib"/> |
||
16 | 8071 | cesar | <property name="andamiJar" location="${andami}/andami.jar"/> |
17 | <property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar:${andamiJar}:${andamiLibs}/log4j-1.2.8.jar:${lib}/JWizardComponent.jar"/> |
||
18 | 4520 | jaume | |
19 | 8071 | cesar | |
20 | 4520 | jaume | <target name="init"> |
21 | <!-- Create the time stamp -->
|
||
22 | <tstamp/> |
||
23 | <!-- Create the build directory structure used by compile -->
|
||
24 | <mkdir dir="${build}"/> |
||
25 | </target>
|
||
26 | |||
27 | 6285 | cesar | <target name="dist" depends="init" |
28 | 4520 | jaume | description="generate the distribution" > |
29 | <!-- pathconvert property="beans.home" pathsep=" ">
|
||
30 | <mapper>
|
||
31 | <chainedmapper>
|
||
32 | 6325 | jaume | |
33 | 4520 | jaume | <flattenmapper />
|
34 | 6325 | jaume | |
35 | 4520 | jaume | <globmapper from="*" to="lib/*" />
|
36 | </chainedmapper>
|
||
37 | </mapper>
|
||
38 | 6325 | jaume | |
39 | 4520 | jaume | <path>
|
40 | 6325 | jaume | |
41 | 4520 | jaume | <fileset dir="${beans.home}">
|
42 | <include name="**/*.class" />
|
||
43 | </fileset>
|
||
44 | </path>
|
||
45 | </pathconvert -->
|
||
46 | <!-- fileset dir="${beans.home}" includes="*.class/*.class" /-->
|
||
47 | <!-- Create the distribution directory -->
|
||
48 | <mkdir dir="${dist}"/> |
||
49 | |||
50 | 6292 | cesar | <!-- Copy the translations -->
|
51 | 6308 | cesar | <mkdir dir="config"/> |
52 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
53 | 6292 | cesar | <fileset dir="config" includes="*" /> |
54 | </copy>
|
||
55 | 8070 | cesar | <!-- copy the images -->
|
56 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
57 | <fileset dir="images" includes="*" /> |
||
58 | </copy>
|
||
59 | 6325 | jaume | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
60 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
61 | 4520 | jaume | <manifest>
|
62 | <section name="common"> |
||
63 | <attribute name="Built-By" value="${user.name}"/> |
||
64 | <attribute name="Implementation-Title" value="$gvSIG Beans" /> |
||
65 | <attribute name="Implementation-Version" value="${TODAY}" /> |
||
66 | <attribute name="Implementation-Vendor" value="the gvSIG project" /> |
||
67 | </section>
|
||
68 | <!-- finally, use the magically generated libs path -->
|
||
69 | </manifest>
|
||
70 | </jar>
|
||
71 | 6285 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes = "images/*.gif" update="true" /> |
72 | 6325 | jaume | <copy todir="${dist}"> |
73 | <fileset dir="${lib}" includes="**/**"/> |
||
74 | </copy>
|
||
75 | 6285 | cesar | <move todir="${installDir}"> |
76 | <fileset dir="${dist}" includes="**/**"/> |
||
77 | 4520 | jaume | </move>
|
78 | 6290 | cesar | <!--<eclipse.refreshLocal resource="." depth="infinite"/>
|
79 | <eclipse.refreshLocal resource="${installDir}" depth="infinite"/>-->
|
||
80 | 4520 | jaume | </target>
|
81 | |||
82 | <target name="clean" |
||
83 | description="clean up" > |
||
84 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
85 | <delete dir="${build}"/> |
||
86 | <delete dir="${dist}"/> |
||
87 | </target>
|
||
88 | 6285 | cesar | |
89 | 6325 | jaume | |
90 | 6285 | cesar | <target name="batch-build" |
91 | description="compile the sources, create the jar file" |
||
92 | 6292 | cesar | depends="compile,copy-data-files,create-jar,move-to-installDir"> |
93 | 6285 | cesar | </target>
|
94 | 6325 | jaume | |
95 | 6285 | cesar | <target name="compile" description="compile the source"> |
96 | <!-- Create the time stamp -->
|
||
97 | <tstamp/> |
||
98 | <!-- Create the build directory structure used by compile -->
|
||
99 | <mkdir dir="${build}"/> |
||
100 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
101 | <javac srcdir="${src}" |
||
102 | destdir="${build}" |
||
103 | 7776 | cesar | source="1.4" |
104 | target="1.4" |
||
105 | 6285 | cesar | debug="${debug}" |
106 | debuglevel="${debuglevel}" |
||
107 | classpath="${compile-classpath}"/> |
||
108 | 8070 | cesar | <!-- copy any images or resources present in the src dir -->
|
109 | <copy todir="${build}"> |
||
110 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
111 | </copy>
|
||
112 | 6325 | jaume | </target>
|
113 | 6285 | cesar | |
114 | 6292 | cesar | <target name="copy-data-files"> |
115 | 6319 | cesar | <mkdir dir="config"/> |
116 | 7005 | cesar | <copy todir="${build}/org/gvsig/gui/beans/resources/translations"> |
117 | 6292 | cesar | <fileset dir="config" includes="*" /> |
118 | </copy>
|
||
119 | 8070 | cesar | <!-- copy the images -->
|
120 | <copy todir="${build}/org/gvsig/gui/beans/images"> |
||
121 | <fileset dir="images" includes="*" /> |
||
122 | </copy>
|
||
123 | 6292 | cesar | </target>
|
124 | 6325 | jaume | |
125 | 6285 | cesar | <target name="create-jar" description="Creates the jar file"> |
126 | <mkdir dir="${dist}"/> |
||
127 | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"> |
||
128 | <manifest>
|
||
129 | <section name="common"> |
||
130 | <attribute name="Built-By" value="${user.name}"/> |
||
131 | <attribute name="Implementation-Title" value="$gvSIG Beans" /> |
||
132 | <attribute name="Implementation-Version" value="${TODAY}" /> |
||
133 | <attribute name="Implementation-Vendor" value="the gvSIG project" /> |
||
134 | </section>
|
||
135 | <!-- finally, use the magically generated libs path -->
|
||
136 | </manifest>
|
||
137 | </jar>
|
||
138 | 6290 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
139 | 6285 | cesar | </target>
|
140 | 6325 | jaume | |
141 | 6285 | cesar | <target name="move-to-installDir" description="Moves the build directory to andami"> |
142 | 6325 | jaume | <copy todir="${dist}"> |
143 | <fileset dir="${lib}" includes="**/**"/> |
||
144 | </copy>
|
||
145 | 6285 | cesar | <move todir="${installDir}"> |
146 | <fileset dir="${dist}" includes="**/**"/> |
||
147 | </move>
|
||
148 | 6325 | jaume | |
149 | <!--move todir="${installDir}">
|
||
150 | <fileset dir="${dist}" includes="**/**"/>
|
||
151 | </move-->
|
||
152 | 6285 | cesar | </target>
|
153 | 6325 | jaume | |
154 | 4520 | jaume | </project>
|