root / branches / v2_0_0_prep / build / product / build.xml @ 38564
History | View | Annotate | Download (3.97 KB)
1 | 28256 | jmvivo | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 28/04/2009 14:06:47
|
||
4 | |||
5 | gvSIG product
|
||
6 | Launch gvSIG
|
||
7 | |||
8 | jmvivo
|
||
9 | ====================================================================== -->
|
||
10 | <project name="gvSIG product" default="default"> |
||
11 | <description>
|
||
12 | Launch gvSIG |
||
13 | </description>
|
||
14 | <dirname file="${ant.file}" property="product_loc"/> |
||
15 | <dirname file="${product_loc}" property="build_loc"/> |
||
16 | <dirname file="${build_loc}" property="workspace_loc"/> |
||
17 | <property environment="environment"></property> |
||
18 | |||
19 | <!-- OS dectection-->
|
||
20 | <condition property="isLinux"> |
||
21 | <os family="unix"/> |
||
22 | </condition>
|
||
23 | |||
24 | <condition property="isWindows"> |
||
25 | <or>
|
||
26 | <os family="windows"/> |
||
27 | <os family="win9x"/> |
||
28 | <os name="Windows Vista"/> |
||
29 | </or>
|
||
30 | </condition>
|
||
31 | |||
32 | <condition property="isMac"> |
||
33 | <os family="mac"/> |
||
34 | </condition>
|
||
35 | |||
36 | <condition property="is_OS_dectected"> |
||
37 | <or>
|
||
38 | <istrue value="${isLinux}"/> |
||
39 | <istrue value="${isWindows}"/> |
||
40 | <istrue value="${isMac}"/> |
||
41 | </or>
|
||
42 | |||
43 | </condition>
|
||
44 | <!-- OS dectection end -->
|
||
45 | |||
46 | |||
47 | |||
48 | |||
49 | <!-- library path definition -->
|
||
50 | <target name="init-library-properties" depends="init-library-win,init-library-linux,init-library-mac"> |
||
51 | </target>
|
||
52 | |||
53 | <target name="init-library-win" if="isWindows"> |
||
54 | <property name="library-env-name" value="PATH"/> |
||
55 | 28776 | rgaitan | <property name="library-env-toadd" value="${environment.USERPROFILE}\.depman\bin;${workspace_loc}/binaries/w32"/> |
56 | 28256 | jmvivo | <property name="library-env-value" value="${environment.PATH};${library-env-toadd}"/> |
57 | </target>
|
||
58 | |||
59 | <target name="init-library-linux" if="isLinux"> |
||
60 | <property name="library-env-name" value="LD_LIBRARY_PATH"/> |
||
61 | <property name="library-env-toadd" value="${environment.HOME}/.depman/lib:${workspace_loc}/binaries/linux"/> |
||
62 | <property name="library-env-value" |
||
63 | value="${environment.LD_LIBRARY_PATH}:${library-env-toadd}"/> |
||
64 | </target>
|
||
65 | |||
66 | <target name="init-library-mac" if="isMac"> |
||
67 | <property name="library-env-name" value="DYLD_LIBRARY_PATH"/> |
||
68 | 28566 | rgaitan | <property name="library-env-toadd" value="${environment.HOME}/.depman/lib:${workspace_loc}/binaries/mac"/> |
69 | 28256 | jmvivo | <property name="library-env-value" value="${environment.DYLD_LIBRARY_PATH}:${library-env-toadd}"/> |
70 | </target>
|
||
71 | |||
72 | <!-- library path definition end -->
|
||
73 | |||
74 | <!-- =================================
|
||
75 | target: default
|
||
76 | ================================= -->
|
||
77 | <target name="default" description="Launch gvSIG" depends="init-library-properties"> |
||
78 | <!--
|
||
79 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$HOME/.depman/lib:../../binaries/linux/"
|
||
80 | export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Developer/DepMan/lib:../../binaries/mac/"
|
||
81 | export PROJ_LIB="$INSTALL_PATH/bin/gvSIG/extensiones/org.gvsig.crs/data"
|
||
82 | -->
|
||
83 | <!--$JAVA_HOME/bin/java
|
||
84 | -Djava.library.path=/usr/lib:"$INSTALL_PATH/libs"
|
||
85 | -cp $LIBRARIES -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
|
||
86 | -->
|
||
87 | |||
88 | |||
89 | <java
|
||
90 | dir="${product_loc}" |
||
91 | 29874 | rgaitan | classname="org.gvsig.andami.Launcher" |
92 | 28256 | jmvivo | fork="true" |
93 | failonerror="true" |
||
94 | maxmemory="512m" |
||
95 | >
|
||
96 | <env key="${library-env-name}" value="${library-env-value}"/> |
||
97 | 28566 | rgaitan | <env key="DYLD_FRAMEWORK_PATH" value="${environment.HOME}/.depman/Frameworks"/> |
98 | 28256 | jmvivo | <env key="PROJ_LIB" value="${product_loc}/gvSIG/extensiones/org.gvsig.crs/data"/> |
99 | <env key="GDAL_DATA" value="${workspace_loc}/binaries/linux/raster/gdal/data"/> <!--valid for al os --> |
||
100 | <jvmarg value="-Djava.library.path=${library-env-toadd}"/> |
||
101 | |||
102 | <arg value="gvSIG"/> |
||
103 | <arg value="gvSIG/extensiones"/> |
||
104 | |||
105 | <classpath>
|
||
106 | <fileset dir="${product_loc}/lib"> |
||
107 | <include name="*.jar"/> |
||
108 | <include name="*.zip"/> |
||
109 | </fileset>
|
||
110 | </classpath>
|
||
111 | </java>
|
||
112 | |||
113 | </target>
|
||
114 | |||
115 | |||
116 | </project> |