svn-gvsig-desktop / tags / v1_12_0_Build_1417 / extensions / extIconThemeBase / build.xml @ 44465
History | View | Annotate | Download (2.69 KB)
1 | 15902 | afraile | <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 | 15908 | afraile | <property name="plugin" value="org.gvsig.iconThemeBase" /> |
10 | 15902 | afraile | <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 | 15924 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
15 | 15902 | afraile | |
16 | 15924 | jmvivo | |
17 | 15902 | afraile | <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 | 15924 | jmvivo | <!--<buildnumber />-->
|
24 | <mkdir dir="${dist}" /> |
||
25 | <mkdir dir="${dist}/lib" /> |
||
26 | <mkdir dir="${dist}/images" /> |
||
27 | 15902 | afraile | |
28 | </target>
|
||
29 | |||
30 | 15924 | jmvivo | <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 | 15902 | afraile | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" /> |
55 | 15924 | jmvivo | |
56 | </target>
|
||
57 | |||
58 | 34510 | fdiaz | <target name="copy-data-files" depends="make-package-info"> |
59 | 15924 | jmvivo | <copy todir="${dist}/lib/"> |
60 | <fileset dir="lib/" includes="**/**" /> |
||
61 | 15902 | afraile | </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 | 15924 | jmvivo | <copy todir="${dist}/images"> |
71 | <fileset dir="images" includes="**/**" /> |
||
72 | </copy>
|
||
73 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
74 | 15924 | jmvivo | |
75 | </target>
|
||
76 | |||
77 | <target name="move-to-andami"> |
||
78 | 15902 | afraile | <move todir="${extension-dir}/${plugin}/"> |
79 | <fileset dir="${dist}" includes="**/**" /> |
||
80 | </move>
|
||
81 | </target>
|
||
82 | |||
83 | 16064 | jmvivo | <target name="clean"> |
84 | 15924 | jmvivo | <delete dir="${dist}" failonerror="no"/> |
85 | <delete dir="${build}" failonerror="no"/> |
||
86 | 15902 | afraile | </target>
|
87 | |||
88 | </project>
|