root / trunk / extensions / org.gvsig.installer.app.extension / build.xml @ 38628
History | View | Annotate | Download (2.78 KB)
1 | 34504 | fdiaz | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de instalaciĆ³n de gvSIG en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="target/classes"/> |
||
8 | <property name="dist" location="dist-temp"/> |
||
9 | 34540 | fdiaz | <property name="plugin" value="org.gvsig.installer.app.extension"/> |
10 | 34504 | fdiaz | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
11 | <property name="andami-dir" location="../_fwAndami"/> |
||
12 | <property name="gvSIG_lib" value="${extension-dir}/com.iver.cit.gvsig/lib"/> |
||
13 | <property name="mydist" location="dist"/> |
||
14 | <import file="../binaries/ant/utilities.xml"/> |
||
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 | <mkdir dir="${dist}/lib"/> |
||
23 | |||
24 | </target>
|
||
25 | |||
26 | <target name="batch-build" |
||
27 | description="compile the sources, create the jar file" |
||
28 | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
||
29 | </target>
|
||
30 | |||
31 | <target name="compile" description="compile the source" > |
||
32 | <antcall target="gvSIG-import-build-number"/> |
||
33 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
34 | <mkdir dir="${build}" /> |
||
35 | <loadEclipseClasspath project="${basedir}"/> |
||
36 | <gvSIG-javac
|
||
37 | classpath="${eclipseClasspath}" |
||
38 | />
|
||
39 | </target>
|
||
40 | |||
41 | <target name="generate-without-source" |
||
42 | description="generate the distribution without the source file" |
||
43 | depends="init,create-jar,copy-data-files,move-to-andami"> |
||
44 | |||
45 | </target>
|
||
46 | |||
47 | <target name="create-jar" |
||
48 | description="Creates the plugin jar"> |
||
49 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
||
50 | </target>
|
||
51 | |||
52 | <target name="copy-data-files" |
||
53 | depends="make-package-info"> |
||
54 | <copy todir="${dist}"> |
||
55 | <fileset dir="./src/main/resources/config" includes="**/**"/> |
||
56 | <fileset dir="./src/main/resources/locale" includes="**/**"/> |
||
57 | </copy>
|
||
58 | 37510 | fpuga | <!--
|
59 | 34504 | fdiaz | <copy todir="${dist}/lib">
|
60 | <fileset dir="./lib" includes="**/**"/>
|
||
61 | </copy>
|
||
62 | 37510 | fpuga | -->
|
63 | 34504 | fdiaz | </target>
|
64 | |||
65 | |||
66 | <target name="move-to-andami"> |
||
67 | <move todir="${extension-dir}/${plugin}/"> |
||
68 | <fileset dir="${dist}" includes="**/**"/> |
||
69 | </move>
|
||
70 | </target>
|
||
71 | |||
72 | <target name="clean"> |
||
73 | <delete dir="${dist}" failonerror="no"/> |
||
74 | <delete dir="${build}" failonerror="no"/> |
||
75 | </target>
|
||
76 | |||
77 | <target name="make-package-info"> |
||
78 | <echo file="src/main/resources/config/package.info"> |
||
79 | 34995 | fdiaz | state=devel |
80 | name=Add-ons manager |
||
81 | 34504 | fdiaz | official=true |
82 | code=${plugin} |
||
83 | operating-system=all |
||
84 | architecture=all |
||
85 | java-version=j1_5 |
||
86 | gvSIG-version=1.11 |
||
87 | 34995 | fdiaz | version=1.0.1 |
88 | 34504 | fdiaz | type=plugin |
89 | build=1 |
||
90 | description= |
||
91 | model-version=1.0.0 |
||
92 | </echo>
|
||
93 | </target>
|
||
94 | </project> |