svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / lib3DMap / build.xml @ 47796
History | View | Annotate | Download (4.11 KB)
1 | 15372 | afraile | <project name="Generar extension en Andami ext3D" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 15099 | julio | <description>
|
3 | 14896 | rgaitan | Instala el plugin de ejemplo en Andami. |
4 | </description>
|
||
5 | 15099 | julio | <!-- set global properties for this build -->
|
6 | <property name="src" location="src" /> |
||
7 | <property name="build" location="bin" /> |
||
8 | 15427 | julio | <property name="dist" location="dist" /> |
9 | <property name="resources" location="resources" /> |
||
10 | 15099 | julio | <property name="plugin" value="com.iver.ai2.gvsig3d" /> |
11 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
||
12 | 15163 | julio | <property name="logos-dir" location="../_fwAndami/theme" /> |
13 | 15099 | julio | <property name="gvsig-lib" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
14 | 15405 | julio | <property name="binaries-dir" location="../binaries/" /> |
15 | 15372 | afraile | <property name="ext3D" value="../_fwAndami/gvSIG/extensiones/com.iver.ai2.gvsig3d" /> |
16 | <property name="ext3Dgui-lib" value="../ext3Dgui/lib" /> |
||
17 | <property name="ext3D-lib" value="../ext3D/lib" /> |
||
18 | 18219 | mten | <property name="buildman.executable" value="buildman/bin/bmn.py"/> |
19 | 16266 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
20 | 14896 | rgaitan | |
21 | 16266 | jmvivo | <target name="batch-build" description="Builds all. This is called by appgvSIG script" |
22 | depends="compile,create-jar,copy-files,clean-dist"> |
||
23 | 15099 | julio | </target>
|
24 | 14906 | salva | |
25 | 16266 | jmvivo | <target name="init"> |
26 | <mkdir dir="${build}" /> |
||
27 | 15248 | julio | |
28 | </target>
|
||
29 | |||
30 | 16266 | jmvivo | |
31 | <target name="compile" description="compile the source" > |
||
32 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
33 | 15099 | julio | <mkdir dir="${build}" /> |
34 | 16266 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
35 | <gvSIG-javac
|
||
36 | classpath="${eclipseClasspath}" /> |
||
37 | </target>
|
||
38 | 14896 | rgaitan | |
39 | 16266 | jmvivo | <target name="create-jar" |
40 | description="Creates the jar"> |
||
41 | 15099 | julio | |
42 | <mkdir dir="${dist}" /> |
||
43 | <mkdir dir="${dist}/lib" /> |
||
44 | 16266 | jmvivo | <!-- Put everything in ${build} into the jar file
|
45 | Except classes to be instantiated in core gvSIG -->
|
||
46 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" excludes="com/iver/ai2/gvsig3d/map3d/layers/Layer3DProps.*,com/iver/ai2/gvsig3d/gui/VectorLayerMenu.*,com/iver/ai2/gvsig3d/camera/ProjectCamera.*,com/iver/ai2/gvsig3d/resources/ResourcesFactory.*" /> |
||
47 | 14906 | salva | |
48 | 16269 | jcampos | <!-- Put in this .jar the classes to be instantiated in gvSIG -->
|
49 | <jar jarfile="${dist}/lib/${plugin}_share.jar" basedir="${build}" includes="com/iver/ai2/gvsig3d/map3d/layers/Layer3DProps.*,com/iver/ai2/gvsig3d/gui/VectorLayerMenu.*,com/iver/ai2/gvsig3d/camera/ProjectCamera.*,com/iver/ai2/gvsig3d/resources/ResourcesFactory.*" /> |
||
50 | 16266 | jmvivo | <jar jarfile="${gvsig-lib}/${plugin}_share.jar" basedir="${build}" includes="com/iver/ai2/gvsig3d/map3d/layers/Layer3DProps.*,com/iver/ai2/gvsig3d/gui/VectorLayerMenu.*,com/iver/ai2/gvsig3d/camera/ProjectCamera.*,com/iver/ai2/gvsig3d/resources/ResourcesFactory.*" /> |
51 | |||
52 | </target>
|
||
53 | |||
54 | <target name="copy-files"> |
||
55 | <copy todir="${dist}/lib/"> |
||
56 | <fileset dir="lib/" includes="*.jar" /> |
||
57 | </copy>
|
||
58 | |||
59 | <copy todir="${ext3Dgui-lib}/"> |
||
60 | <fileset dir="${dist}/lib/" includes="*.jar" /> |
||
61 | </copy>
|
||
62 | |||
63 | <mkdir dir="../ext3Dgui/resources" /> |
||
64 | <copy todir="../ext3Dgui/resources/"> |
||
65 | <fileset dir="resources" includes="*.**" /> |
||
66 | </copy>
|
||
67 | |||
68 | </target>
|
||
69 | |||
70 | |||
71 | <target name="generate-without-source" description="generate the distribution without the source file" |
||
72 | depends="create-jar,copy-files,clean-dist"> |
||
73 | 15372 | afraile | </target>
|
74 | 15405 | julio | |
75 | 16266 | jmvivo | <target name="clean" description="clean up" depends="clean-dist"> |
76 | 15372 | afraile | <echo message="dentro de clean" /> |
77 | 15405 | julio | <delete dir="${build}" /> |
78 | 15099 | julio | </target>
|
79 | |||
80 | 16266 | jmvivo | <target name="clean-dist" description="clean up dist"> |
81 | <delete dir="${dist}" /> |
||
82 | </target>
|
||
83 | |||
84 | 15479 | rgaitan | <!--target name="copy-binaries">
|
85 | 15099 | julio | <copy todir="${binaries-dir}">
|
86 | 15441 | julio | <fileset dir="binaries/" includes="**/**" />
|
87 | 15099 | julio | </copy>
|
88 | 15481 | rgaitan | </target-->
|
89 | 16266 | jmvivo | |
90 | 15615 | rgaitan | <target name="update-binaries-cache"> |
91 | 15481 | rgaitan | <exec executable="python"> |
92 | 18219 | mten | <arg value="${buildman.executable}"/> |
93 | 15481 | rgaitan | <arg value="update"/> |
94 | 15615 | rgaitan | <arg value="--cache"/> |
95 | 15481 | rgaitan | </exec>
|
96 | </target>
|
||
97 | 16266 | jmvivo | |
98 | 15615 | rgaitan | <target name="update-binaries-remote"> |
99 | 15481 | rgaitan | <exec executable="python"> |
100 | 18219 | mten | <arg value="${buildman.executable}"/> |
101 | 15481 | rgaitan | <arg value="update"/> |
102 | 15615 | rgaitan | <arg value="--remote"/> |
103 | </exec>
|
||
104 | </target>
|
||
105 | 16266 | jmvivo | |
106 | 15615 | rgaitan | <target name="update-binaries-atifglrx-remote"> |
107 | <exec executable="python"> |
||
108 | 18219 | mten | <arg value="${buildman.executable}"/> |
109 | 15615 | rgaitan | <arg value="update"/> |
110 | 18219 | mten | <arg value="--file"/> |
111 | 15481 | rgaitan | <arg value="depman-atifglrx.xml"/> |
112 | 15615 | rgaitan | <arg value="--remote"/> |
113 | 15481 | rgaitan | </exec>
|
114 | </target>
|
||
115 | 14896 | rgaitan | </project>
|