root / tags / v1_9_Build_1244 / examples / exaExample1 / build.xml @ 37689
History | View | Annotate | Download (1.49 KB)
1 | 1645 | vcaballero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de ejemplo 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.ejemplo"/> |
||
10 | 7563 | fjp | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
11 | 1645 | 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/about.htm" 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 | <move todir="${extension-dir}/${plugin}/"> |
||
38 | <fileset dir="${dist}" includes="**/**"/> |
||
39 | </move>
|
||
40 | </target>
|
||
41 | </project>
|