svn-gvsig-desktop / tags / gvsig_redes-0_1_0_Build_1231 / extensions / extIconThemeBase / build.xml @ 42704
History | View | Annotate | Download (2.61 KB)
1 |
<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="org.gvsig.iconThemeBase" /> |
10 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
11 |
<property name="logos-dir" location="../_fwAndami/theme" /> |
12 |
<property name="gvsig-lib" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig" /> |
13 |
<!--property name="binaries-dir" location="../binaries" /-->
|
14 |
<import file="../binaries/ant/utilities.xml"/> |
15 |
|
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp /> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<mkdir dir="${build}" /> |
22 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
23 |
<!--<buildnumber />-->
|
24 |
<mkdir dir="${dist}" /> |
25 |
<mkdir dir="${dist}/lib" /> |
26 |
<mkdir dir="${dist}/images" /> |
27 |
|
28 |
</target>
|
29 |
|
30 |
<target name="batch-build" |
31 |
description="compile the sources, create the jar file" |
32 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
33 |
</target>
|
34 |
|
35 |
<target name="compile" description="compile the source" > |
36 |
<antcall target="gvSIG-import-build-number"/> |
37 |
<!-- Compile the Java code from ${src} to ${build} -->
|
38 |
<mkdir dir="${build}" /> |
39 |
<loadEclipseClasspath project="${basedir}"/> |
40 |
<gvSIG-javac
|
41 |
classpath="${eclipseClasspath}" |
42 |
/>
|
43 |
</target>
|
44 |
|
45 |
<target name="generate-without-source" |
46 |
description="generate the distribution without the source file" |
47 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
48 |
|
49 |
</target>
|
50 |
|
51 |
<target name="create-jar" |
52 |
description="Creates the plugin jar"> |
53 |
|
54 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" /> |
55 |
|
56 |
</target>
|
57 |
|
58 |
<target name="copy-data-files"> |
59 |
<copy todir="${dist}/lib/"> |
60 |
<fileset dir="lib/" includes="**/**" /> |
61 |
</copy>
|
62 |
<!-- Put in this .jar the classes to be instantiated in gvSIG -->
|
63 |
<copy file="config/config.xml" todir="${dist}" /> |
64 |
<copy file="config/about.htm" todir="${dist}" /> |
65 |
|
66 |
<copy todir="${dist}"> |
67 |
<fileset dir="config" includes="text*.properties" /> |
68 |
</copy>
|
69 |
|
70 |
<copy todir="${dist}/images"> |
71 |
<fileset dir="images" includes="**/**" /> |
72 |
</copy>
|
73 |
|
74 |
</target>
|
75 |
|
76 |
<target name="move-to-andami"> |
77 |
<move todir="${extension-dir}/${plugin}/"> |
78 |
<fileset dir="${dist}" includes="**/**" /> |
79 |
</move>
|
80 |
</target>
|
81 |
|
82 |
<target name="clean"> |
83 |
<delete dir="${dist}" failonerror="no"/> |
84 |
<delete dir="${build}" failonerror="no"/> |
85 |
</target>
|
86 |
|
87 |
</project>
|
88 |
|