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