svn-gvsig-desktop / tags / v1_1_Build_1015 / extensions / extCenterViewToPoint / build.xml @ 43562
History | View | Annotate | Download (5.54 KB)
1 | 7216 | cesar | <project name="extCenterViewToPoint" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 3525 | caballero | <description>
|
3 | Instala el plugin de Centrar la Vista sobre un punto en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4139 | jjdelcerro | <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
7 | 3525 | caballero | <property name="src" location="src"/> |
8 | 6355 | cesar | <property name="build" location="bin"/> |
9 | 3525 | caballero | <property name="doc" location="doc"/> |
10 | <property name="dist" location="dist"/> |
||
11 | <property name="without_src" location="without_src"/> |
||
12 | <property name="plugin" value="com.iver.gvsig.centerviewpoint"/> |
||
13 | 6355 | cesar | <property name="jarName" value="com.iver.gvsig.centerviewpoint.jar"/> |
14 | <property name="andami" location="../_fwAndami"/> |
||
15 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
16 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
17 | <property name="andamiLibs" location="${andami}/lib" /> |
||
18 | 7216 | cesar | <property name="mainPlugin" location="${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
19 | <property name="compile-classpath" value="${andami}/andami.jar:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/fmap.jar:${mainPlugin}"/> |
||
20 | 6359 | cesar | <property name="installBaseDir" location="${andami}"/> |
21 | <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/> |
||
22 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
23 | <property name="JavaTargetVersion" value="1.4"/> |
||
24 | 3525 | caballero | |
25 | <target name="init"> |
||
26 | <!-- Create the time stamp -->
|
||
27 | <tstamp/> |
||
28 | 7216 | cesar | <echo>
|
29 | Compiling ${ant.project.name}...</echo>
|
||
30 | 3525 | caballero | </target>
|
31 | |||
32 | <target name="dist" depends="init" |
||
33 | description="generate the distribution" > |
||
34 | <!-- Remove previous distribution directory -->
|
||
35 | <delete dir="${dist}"/> |
||
36 | <!-- Create the distribution directory structure -->
|
||
37 | <mkdir dir="${dist}"/> |
||
38 | <mkdir dir="${dist}/src"/> |
||
39 | <mkdir dir="${dist}/doc"/> |
||
40 | <mkdir dir="${dist}/bin"/> |
||
41 | <mkdir dir="${dist}/bin/com"/> |
||
42 | <mkdir dir="${dist}/bin/com/iver"/> |
||
43 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
44 | <mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint"/> |
||
45 | <mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"/> |
||
46 | <mkdir dir="${dist}/images"/> |
||
47 | <mkdir dir="${dist}/config"/> |
||
48 | <!-- Copy necessary distribution files to dist dir -->
|
||
49 | <copy todir="${dist}/src"> |
||
50 | <fileset dir="${src}"/> |
||
51 | </copy>
|
||
52 | <copy todir="${dist}/doc"> |
||
53 | <fileset dir="${doc}"/> |
||
54 | </copy>
|
||
55 | <copy todir="${dist}/images"> |
||
56 | <fileset dir="images"/> |
||
57 | </copy>
|
||
58 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
59 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
60 | 3525 | caballero | <copy file="build.xml" todir="${dist}"/> |
61 | <copy todir="${dist}"> |
||
62 | 8765 | jjdelcerro | <fileset dir="config" includes="text*.properties"/> |
63 | 3525 | caballero | </copy>
|
64 | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint"> |
||
65 | 8765 | jjdelcerro | <fileset dir="config" includes="text*.properties"/> |
66 | 3525 | caballero | </copy>
|
67 | 6355 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/centerviewpoint/${plugin}.jar" basedir="${build}"/> |
68 | 3525 | caballero | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/centerviewtopoint"/> |
69 | 10185 | jmvivo | <copy file="build.number" todir="${dist}/bin/com/iver/gvsig/centerviewtopoint"/> |
70 | 3525 | caballero | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"> |
71 | <fileset dir="images"/> |
||
72 | </copy>
|
||
73 | <!-- Zip distribution -->
|
||
74 | <zip destfile="${dist}/gvSIGCenterViewToPointPlugin.zip" |
||
75 | basedir="${dist}" |
||
76 | update="true" |
||
77 | />
|
||
78 | </target>
|
||
79 | |||
80 | 10185 | jmvivo | <target name="import-build-number"> |
81 | <copy todir="."> |
||
82 | <fileset file="${buildNumberFile}"/> |
||
83 | </copy>
|
||
84 | </target>
|
||
85 | |||
86 | 12711 | jmvivo | |
87 | 6355 | cesar | <target name="clean" |
88 | 3525 | caballero | description="clean dist directory" > |
89 | <!-- Clean the distribution directory -->
|
||
90 | 12711 | jmvivo | <delete dir="${dist}" failonerror="false"/> |
91 | 3525 | caballero | </target>
|
92 | 8765 | jjdelcerro | |
93 | 3525 | caballero | <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
94 | <!-- Create the distribution directory -->
|
||
95 | <mkdir dir="${without_src}"/> |
||
96 | |||
97 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
98 | 6355 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
99 | 3525 | caballero | <copy file="config/config.xml" todir="${without_src}"/> |
100 | 10185 | jmvivo | <copy file="build.number" todir="${without_src}"/> |
101 | 3525 | caballero | <copy todir="${without_src}"> |
102 | 8765 | jjdelcerro | <fileset dir="config" includes="text*.properties"/> |
103 | 3525 | caballero | </copy>
|
104 | <copy todir="${without_src}/images"> |
||
105 | <fileset dir="images/" includes="*"/> |
||
106 | </copy>
|
||
107 | <move todir="${extensions-dir}/${plugin}/"> |
||
108 | <fileset dir="${without_src}" includes="**/**"/> |
||
109 | </move>
|
||
110 | </target>
|
||
111 | |||
112 | 8765 | jjdelcerro | |
113 | 6355 | cesar | <target name="batch-build" |
114 | description="compile the sources, create the jar file" |
||
115 | 7216 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-installDir"> |
116 | 6355 | cesar | </target>
|
117 | |||
118 | <target name="compile" description="compile the source" > |
||
119 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
120 | <mkdir dir="${build}" /> |
||
121 | <javac srcdir="${src}" |
||
122 | destdir="${build}" |
||
123 | 10565 | jmvivo | source="${JavaSourceVersion}" |
124 | target="${JavaTargetVersion}" |
||
125 | 6355 | cesar | debug="${debug}" |
126 | debuglevel="${debuglevel}" |
||
127 | classpath="${compile-classpath}"/> |
||
128 | </target>
|
||
129 | 8765 | jjdelcerro | |
130 | 6355 | cesar | <target name="create-jar" |
131 | description="Creates the plugin jar"> |
||
132 | <mkdir dir="${dist}"/> |
||
133 | <jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
||
134 | </target>
|
||
135 | |||
136 | <target name="copy-data-files"> |
||
137 | <copy file="config/config.xml" todir="${dist}"/> |
||
138 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
139 | 6355 | cesar | <copy todir="${dist}"> |
140 | <fileset dir="config" includes="text*.properties"/> |
||
141 | </copy>
|
||
142 | <copy todir="${dist}/images"> |
||
143 | <fileset dir="images/" includes="*"/> |
||
144 | </copy>
|
||
145 | </target>
|
||
146 | 8765 | jjdelcerro | |
147 | 6359 | cesar | <target name="move-to-installDir"> |
148 | <move todir="${installDir}"> |
||
149 | <fileset dir="${dist}" includes="**/**"/> |
||
150 | </move>
|
||
151 | 6355 | cesar | </target>
|
152 | |||
153 | 3525 | caballero | </project>
|