svn-gvsig-desktop / trunk / extensions / extAddIDEELayers / build.xml @ 28648
History | View | Annotate | Download (5.23 KB)
1 | 6847 | ppiqueras | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de AƱadir las capas del IDEE a la vista. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
||
7 | <property name="src" location="src"/> |
||
8 | <property name="build" location="bin"/> |
||
9 | <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.addIDEElayers"/> |
||
13 | <property name="jarName" value="com.iver.gvsig.addIDEElayers.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 | <property name="installBaseDir" location="${andami}"/> |
||
20 | <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/> |
||
21 | |||
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/addIDEElayers"/> |
||
40 | <mkdir dir="${dist}/bin/com/iver/gvsig/addIDEElayers/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 todir="${dist}"> |
||
55 | <fileset dir="config" includes="text*.properties"/> |
||
56 | </copy>
|
||
57 | <copy file="build.xml" todir="${dist}"/> |
||
58 | |||
59 | <!-- <copy todir="${dist}">
|
||
60 | <fileset dir="." includes="text*.properties"/>
|
||
61 | </copy>
|
||
62 | <copy todir="${dist}/bin/com/iver/gvsig/addIDEElayers">
|
||
63 | <fileset dir="." includes="text*.properties"/>
|
||
64 | </copy> -->
|
||
65 | <jar jarfile="${dist}/bin/com/iver/gvsig/addIDEElayers/${plugin}.jar" basedir="${build}"/> |
||
66 | <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/addIDEElayers"/> |
||
67 | <copy todir="${dist}/bin/com/iver/gvsig/addIDEElayers/images"> |
||
68 | <fileset dir="images"/> |
||
69 | </copy>
|
||
70 | <!-- Zip distribution -->
|
||
71 | <zip destfile="${dist}/gvSIGAddIDEELayersPlugin.zip" |
||
72 | basedir="${dist}" |
||
73 | update="true" |
||
74 | />
|
||
75 | </target>
|
||
76 | |||
77 | <target name="clean" |
||
78 | description="clean dist directory" > |
||
79 | <!-- Clean the distribution directory -->
|
||
80 | <delete dir="${dist}/src"/> |
||
81 | <delete dir="${dist}/doc"/> |
||
82 | <delete dir="${dist}/bin"/> |
||
83 | <delete dir="${dist}/images"/> |
||
84 | <delete dir="${dist}/config"/> |
||
85 | <delete file="${dist}/build.xml"/> |
||
86 | <delete>
|
||
87 | <fileset dir="${dist}" includes="**/*.properties"/> |
||
88 | </delete>
|
||
89 | </target>
|
||
90 | |||
91 | <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
||
92 | <!-- Create the distribution directory -->
|
||
93 | <mkdir dir="${without_src}"/> |
||
94 | |||
95 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
96 | <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
||
97 | <copy file="config/config.xml" todir="${without_src}"/> |
||
98 | <copy todir="${without_src}"> |
||
99 | <fileset dir="config" includes="text*.properties"/> |
||
100 | </copy>
|
||
101 | <!-- <copy todir="${without_src}">
|
||
102 | <fileset dir="." includes="text*.properties"/>
|
||
103 | </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 | |||
113 | <target name="batch-build" |
||
114 | description="compile the sources, create the jar file" |
||
115 | depends="compile,create-jar,copy-data-files,move-to-installDir"> |
||
116 | </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 | debug="${debug}" |
||
124 | debuglevel="${debuglevel}" |
||
125 | classpath="${compile-classpath}"/> |
||
126 | </target>
|
||
127 | |||
128 | <target name="create-jar" |
||
129 | description="Creates the plugin jar"> |
||
130 | <mkdir dir="${dist}"/> |
||
131 | <jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
||
132 | </target>
|
||
133 | |||
134 | <target name="copy-data-files"> |
||
135 | <copy file="config/config.xml" todir="${dist}"/> |
||
136 | <copy todir="${dist}"> |
||
137 | <fileset dir="config" includes="text*.properties"/> |
||
138 | </copy>
|
||
139 | <copy todir="${dist}/images"> |
||
140 | <fileset dir="images/" includes="*"/> |
||
141 | </copy>
|
||
142 | </target>
|
||
143 | |||
144 | <target name="move-to-installDir"> |
||
145 | <move todir="${installDir}"> |
||
146 | <fileset dir="${dist}" includes="**/**"/> |
||
147 | </move>
|
||
148 | </target>
|
||
149 | |||
150 | </project>
|