root / trunk / extensions / extIconThemeBase / build.xml @ 34510
History | View | Annotate | Download (2.69 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" depends="make-package-info"> |
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 |
<copy file="package.info" todir="${dist}"/> |
74 |
|
75 |
</target>
|
76 |
|
77 |
<target name="move-to-andami"> |
78 |
<move todir="${extension-dir}/${plugin}/"> |
79 |
<fileset dir="${dist}" includes="**/**" /> |
80 |
</move>
|
81 |
</target>
|
82 |
|
83 |
<target name="clean"> |
84 |
<delete dir="${dist}" failonerror="no"/> |
85 |
<delete dir="${build}" failonerror="no"/> |
86 |
</target>
|
87 |
|
88 |
</project>
|
89 |
|