svn-gvsig-desktop / tags / v10_RC1 / extensions / extCenterViewToPoint / build.xml @ 44691
History | View | Annotate | Download (5.03 KB)
1 | 3525 | caballero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <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 | <property name="compile-classpath" value="${andamiLibs}/beans.jar:${fmapLibs}/cms.jar"/> |
||
19 | 6359 | cesar | <property name="installBaseDir" location="${andami}"/> |
20 | <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/> |
||
21 | 3525 | caballero | |
22 | <target name="init"> |
||
23 | <!-- Create the time stamp -->
|
||
24 | <tstamp/> |
||
25 | </target>
|
||
26 | |||
27 | <target name="dist" depends="init" |
||
28 | description="generate the distribution" > |
||
29 | <!-- Remove previous distribution directory -->
|
||
30 | <delete dir="${dist}"/> |
||
31 | <!-- Create the distribution directory structure -->
|
||
32 | <mkdir dir="${dist}"/> |
||
33 | <mkdir dir="${dist}/src"/> |
||
34 | <mkdir dir="${dist}/doc"/> |
||
35 | <mkdir dir="${dist}/bin"/> |
||
36 | <mkdir dir="${dist}/bin/com"/> |
||
37 | <mkdir dir="${dist}/bin/com/iver"/> |
||
38 | <mkdir dir="${dist}/bin/com/iver/gvsig"/> |
||
39 | <mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint"/> |
||
40 | <mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"/> |
||
41 | <mkdir dir="${dist}/images"/> |
||
42 | <mkdir dir="${dist}/config"/> |
||
43 | <!-- Copy necessary distribution files to dist dir -->
|
||
44 | <copy todir="${dist}/src"> |
||
45 | <fileset dir="${src}"/> |
||
46 | </copy>
|
||
47 | <copy todir="${dist}/doc"> |
||
48 | <fileset dir="${doc}"/> |
||
49 | </copy>
|
||
50 | <copy todir="${dist}/images"> |
||
51 | <fileset dir="images"/> |
||
52 | </copy>
|
||
53 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
54 | <copy file="build.xml" todir="${dist}"/> |
||
55 | <copy todir="${dist}"> |
||
56 | <fileset dir="." includes="text*.properties"/> |
||
57 | </copy>
|
||
58 | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint"> |
||
59 | <fileset dir="." includes="text*.properties"/> |
||
60 | </copy>
|
||
61 | 6355 | cesar | <jar jarfile="${dist}/bin/com/iver/gvsig/centerviewpoint/${plugin}.jar" basedir="${build}"/> |
62 | 3525 | caballero | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/centerviewtopoint"/> |
63 | <copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"> |
||
64 | <fileset dir="images"/> |
||
65 | </copy>
|
||
66 | <!-- Zip distribution -->
|
||
67 | <zip destfile="${dist}/gvSIGCenterViewToPointPlugin.zip" |
||
68 | basedir="${dist}" |
||
69 | update="true" |
||
70 | />
|
||
71 | </target>
|
||
72 | |||
73 | 6355 | cesar | <target name="clean" |
74 | 3525 | caballero | description="clean dist directory" > |
75 | <!-- Clean the distribution directory -->
|
||
76 | <delete dir="${dist}/src"/> |
||
77 | <delete dir="${dist}/doc"/> |
||
78 | <delete dir="${dist}/bin"/> |
||
79 | <delete dir="${dist}/images"/> |
||
80 | <delete dir="${dist}/config"/> |
||
81 | <delete file="${dist}/build.xml"/> |
||
82 | <delete>
|
||
83 | <fileset dir="${dist}" includes="**/*.properties"/> |
||
84 | </delete>
|
||
85 | </target>
|
||
86 | |||
87 | <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
||
88 | <!-- Create the distribution directory -->
|
||
89 | <mkdir dir="${without_src}"/> |
||
90 | |||
91 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
92 | 6355 | cesar | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
93 | 3525 | caballero | <copy file="config/config.xml" todir="${without_src}"/> |
94 | <copy todir="${without_src}"> |
||
95 | <fileset dir="." includes="text*.properties"/> |
||
96 | </copy>
|
||
97 | <copy todir="${without_src}/images"> |
||
98 | <fileset dir="images/" includes="*"/> |
||
99 | </copy>
|
||
100 | <move todir="${extensions-dir}/${plugin}/"> |
||
101 | <fileset dir="${without_src}" includes="**/**"/> |
||
102 | </move>
|
||
103 | </target>
|
||
104 | 6355 | cesar | |
105 | 3525 | caballero | |
106 | 6355 | cesar | <target name="batch-build" |
107 | description="compile the sources, create the jar file" |
||
108 | 6359 | cesar | depends="compile,create-jar,copy-data-files,move-to-installDir"> |
109 | 6355 | cesar | </target>
|
110 | |||
111 | <target name="compile" description="compile the source" > |
||
112 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
113 | <mkdir dir="${build}" /> |
||
114 | <javac srcdir="${src}" |
||
115 | destdir="${build}" |
||
116 | debug="${debug}" |
||
117 | debuglevel="${debuglevel}" |
||
118 | classpath="${compile-classpath}"/> |
||
119 | </target>
|
||
120 | |||
121 | <target name="create-jar" |
||
122 | description="Creates the plugin jar"> |
||
123 | <mkdir dir="${dist}"/> |
||
124 | <jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
||
125 | </target>
|
||
126 | |||
127 | <target name="copy-data-files"> |
||
128 | <copy file="config/config.xml" todir="${dist}"/> |
||
129 | <copy todir="${dist}"> |
||
130 | <fileset dir="config" includes="text*.properties"/> |
||
131 | </copy>
|
||
132 | <copy todir="${dist}/images"> |
||
133 | <fileset dir="images/" includes="*"/> |
||
134 | </copy>
|
||
135 | </target>
|
||
136 | |||
137 | 6359 | cesar | <target name="move-to-installDir"> |
138 | <move todir="${installDir}"> |
||
139 | <fileset dir="${dist}" includes="**/**"/> |
||
140 | </move>
|
||
141 | 6355 | cesar | </target>
|
142 | |||
143 | 3525 | caballero | </project>
|