svn-gvsig-desktop / tags / v1_2_Build_1209 / examples / exaTemplateLayout / build.xml @ 31236
History | View | Annotate | Download (2.61 KB)
1 | 728 | vcaballero | <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="plugin" value="com.iver.templateLayout"/> |
||
10 | 6405 | fjp | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
11 | 728 | vcaballero | |
12 | <target name="init"> |
||
13 | <!-- Create the time stamp -->
|
||
14 | <tstamp/> |
||
15 | <!-- Create the build directory structure used by compile -->
|
||
16 | <mkdir dir="${build}"/> |
||
17 | <mkdir dir="${dist}"/> |
||
18 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
19 | <buildnumber/> |
||
20 | |||
21 | </target>
|
||
22 | |||
23 | <target name="generate-without-source" description="generate the distribution without the source file" > |
||
24 | <!-- Create the distribution directory -->
|
||
25 | <mkdir dir="${dist}"/> |
||
26 | |||
27 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
28 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
29 | <copy file="config/config.xml" todir="${dist}"/> |
||
30 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
31 | <copy todir="${dist}"> |
||
32 | <fileset dir="." includes="text*.properties"/> |
||
33 | </copy>
|
||
34 | <copy todir="${dist}/images"> |
||
35 | <fileset dir="images/" includes="*"/> |
||
36 | </copy>
|
||
37 | 6405 | fjp | <!-- <copy todir="${dist}">
|
38 | 728 | vcaballero | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
39 | 6405 | fjp | </copy> -->
|
40 | 728 | vcaballero | <move todir="${extension-dir}/${plugin}/"> |
41 | <fileset dir="${dist}" includes="**/**"/> |
||
42 | </move>
|
||
43 | </target>
|
||
44 | |||
45 | <target name="generate-with-source" description="generate the distribution with the source file" > |
||
46 | <!-- Create the distribution directory -->
|
||
47 | <mkdir dir="${dist}"/> |
||
48 | |||
49 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
50 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
51 | <copy file="config/config.xml" todir="${dist}"/> |
||
52 | <copy file="config/plugin.dtd" todir="${dist}"/> |
||
53 | <copy todir="${dist}"> |
||
54 | <fileset dir="." includes="text*.properties"/> |
||
55 | </copy>
|
||
56 | <copy todir="${dist}"> |
||
57 | <fileset dir="." includes="${src}"/> |
||
58 | </copy>
|
||
59 | <copy todir="${dist}/images"> |
||
60 | <fileset dir="images/" includes="*"/> |
||
61 | </copy>
|
||
62 | <!--copy todir="${dist}">
|
||
63 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
||
64 | </copy-->
|
||
65 | <move todir="${extension-dir}/${plugin}/"> |
||
66 | <fileset dir="${dist}" includes="**/**"/> |
||
67 | </move>
|
||
68 | </target>
|
||
69 | |||
70 | <target name="clean" |
||
71 | description="clean up" > |
||
72 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
73 | <delete dir="${dist}"/> |
||
74 | </target>
|
||
75 | </project>
|