svn-gvsig-desktop / tags / v1_12_0_Build_1416 / examples / extNewDocumentExample / build.xml @ 45500
History | View | Annotate | Download (2.63 KB)
1 | 7301 | caballero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin en Andami |
||
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="mainplugin" value="com.iver.cit.gvsig"/> |
||
10 | <property name="plugin" value="com.iver.cit.gvsig.project.documents.thedocument"/> |
||
11 | <property name="gvsiglibjar" value="thedocument"/> |
||
12 | <property name="andami" location="../_fwAndami" /> |
||
13 | <property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
14 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
15 | |||
16 | <target name="init"> |
||
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp/> |
||
19 | <!-- Create the build directory structure used by compile -->
|
||
20 | <mkdir dir="${build}"/> |
||
21 | <mkdir dir="${dist}"/> |
||
22 | |||
23 | </target>
|
||
24 | |||
25 | <target name="generate-without-source" |
||
26 | description="generate the distribution without the source file"> |
||
27 | <!-- Create the distribution directory -->
|
||
28 | <mkdir dir="${dist}"/> |
||
29 | |||
30 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
31 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
32 | excludes="com/iver/cit/gvsig/fmap/**" |
||
33 | />
|
||
34 | <copy todir="${dist}/images"> |
||
35 | <fileset dir="images" includes="*"/> |
||
36 | </copy>
|
||
37 | <copy file="config/config.xml" todir="${dist}"/> |
||
38 | <copy todir="${dist}"> |
||
39 | <fileset dir="config" includes="text*.properties"/> |
||
40 | </copy>
|
||
41 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
42 | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
||
43 | </move>
|
||
44 | <move todir="${extensionsDir}/${plugin}/"> |
||
45 | <fileset dir="${dist}" includes="**/**"/> |
||
46 | </move>
|
||
47 | </target>
|
||
48 | |||
49 | |||
50 | <target name="compile" description="compile the source" > |
||
51 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
52 | <mkdir dir="${build}" /> |
||
53 | <echo>${compile-classpath}</echo> |
||
54 | <javac srcdir="${src}" |
||
55 | destdir="${build}" |
||
56 | debug="${debug}" |
||
57 | debuglevel="${debuglevel}" |
||
58 | classpath="${compile-classpath}"/> |
||
59 | </target>
|
||
60 | |||
61 | <target name="copy-data-files"> |
||
62 | <copy file="config/config.xml" todir="${dist}"/> |
||
63 | <copy todir="${dist}"> |
||
64 | <fileset dir="config" includes="text*.properties"/> |
||
65 | </copy>
|
||
66 | </target>
|
||
67 | |||
68 | <target name="move-to-andami"> |
||
69 | <move todir="${extensionsDir}/${plugin}/"> |
||
70 | <fileset dir="${dist}" includes="**/**"/> |
||
71 | </move>
|
||
72 | </target>
|
||
73 | |||
74 | |||
75 | <target name="clean" |
||
76 | description="clean up" > |
||
77 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
78 | <delete dir="${dist}"/> |
||
79 | <delete dir="${build}"/> |
||
80 | </target>
|
||
81 | </project>
|