Revision 13296

View differences:

trunk/binaries/ant/utilities.xml
1 1
<project name="ant_libs">
2 2
	<dirname file="${ant.file.ant_libs}" property="ant.file.ant_libs.dir"/>
3

  
4
	<!--
5
		====================================
6
		Compilation base properties
7
		====================================
8
	-->
3 9
	<property name="JUNIT_HOME" location="${ant.file.ant_libs.dir}" />
4 10
	<property name="JavaSourceVersion" value="1.5"/>
5 11
	<property name="JavaTargetVersion" value="1.5"/>
......
7 13
	<property name="debuglevel" value="lines, vars"/>
8 14
	<property name="encoding" value="ISO_8859_1"/>
9 15

  
16

  
17

  
18

  
19
	<!--
20
		====================================
21
		ant4eclipse library load
22
		====================================
23
	-->
10 24
	<taskdef resource="net/sf/ant4eclipse/antlib.xml" >
11 25
			<classpath>
12 26
				<pathelement location="${ant.file.ant_libs.dir}/ant4eclipse-0.5.0.rc1.jar"/>
13 27
			</classpath>
14 28
	</taskdef>
15 29

  
30

  
31

  
32

  
33
	<!--
34
		====================================
35
		ant-contrib library load
36
		====================================
37
	-->
16 38
	<taskdef resource="net/sf/antcontrib/antlib.xml">
17 39
			<classpath>
18 40
				<pathelement location="${ant.file.ant_libs.dir}/ant-contrib-1.0b3.jar"/>
41
				<pathelement location="${ant.file.ant_libs.dir}/bcel-5.1.jar"/>
42
				<pathelement location="${ant.file.ant_libs.dir}/commons-httpclient-3.0.1.jar"/>
43
				<pathelement location="${ant.file.ant_libs.dir}/commons-logging-1.0.4.jar"/>
44
				<pathelement location="${ant.file.ant_libs.dir}/ivy-1.3.1.jar"/>
19 45
			</classpath>
20 46
	</taskdef>
47

  
48

  
49

  
50

  
51

  
21 52
	<!--
53
		====================================
54
		utilities tasks alias
55
		====================================
56
	-->
22 57

  
58
	<!--
59
	** loadEclipseClasspath Task  **
60

  
23 61
	Load the classpath from eclipse into the property 'eclipseClasspath'
24 62
	of the project recived in 'project' attribute. 'project' must
25 63
	be a directory of the workspace.
26 64

  
27 65
	- Use 'property="otherProperty"' : for change the return property
28 66

  
29
	Example of use of load classpath:
67
	Example:
30 68

  
31 69

  
32 70
	<target name="compile" description="compile the source" >
......
51 89
	</presetdef>
52 90

  
53 91
	<!--
54
	Javac whit default values for compile gvSIG proyects
92
	** gvSIG-javac Task **
55 93

  
94
	Javac whit default values to compile gvSIG proyects
95

  
96
	Example (minimal syntax):
97

  
98
	<gvSIG-javac
99
		classpath="${eclipseClasspath}"
100
		/>
101

  
102
	Example with exclude:
103

  
104
	<gvSIG-javac
105
		classpath="${eclipseClasspath}"
106
		exclude="org/gvsig/test/**"
107
		/>
108

  
56 109
	-->
57
	<presetdef name="defaultJavac">
110
	<presetdef name="gvSIG-javac">
58 111
			<javac  srcdir="${src}"
59 112
				destdir="${build}"
60 113
				source="${JavaSourceVersion}"
......
66 119
			</javac>
67 120
	</presetdef>
68 121

  
122
	<!--
123
	** gvSIG-javac Target **
69 124

  
125
	Automate import of build.number gvSIG file
70 126

  
127
	Example (minimal syntax):
128

  
129
	<antcall target="gvSIG-import-build-number"/>
130

  
131
	-->
132

  
133
	<target name="gvSIG-import-build-number">
134
		<!-- check buildNumberFile property -->
135
		<if>
136
			<not>
137
				<and>
138
					<isset property="buildNumberFile"/>
139
					<available file="${buildNumberFile}" type="file"/>
140
				</and>
141
			</not>
142
			<then>
143
				<fail message="Error: property buildNumberFile not set or file not aviable: ${buildNumberFile}"/>
144
			</then>
145
		</if>
146
		<property name="localBuildNumberFile" value="${basedir}/build.number"/>
147
		<!-- copy the file if is needed-->
148
		<if>
149
			<not>
150
			<and>
151
				<available file="${localBuildNumberFile}" type="file"/>
152
				<filesmatch file1="${buildNumberFile}" file2="${localBuildNumberFile}"/>
153
			</and>
154
			</not>
155
			<then>
156
				<copy file="${buildNumberFile}" tofile="${localBuildNumberFile}" overwrite="true"/>
157
			</then>
158
		</if>
159
	</target>
160

  
161

  
162

  
71 163
</project>
trunk/libraries/libDXF/build.xml
10 10
	<property name="jarName" value="libdxf.jar"/>
11 11
	<property name="targetDir" location="../libFMap/lib"/>
12 12
	<property name="cresques.home" value="${build}/org/cresques" />
13
	<property name="JavaSourceVersion" value="1.5"/>
14
	<property name="JavaTargetVersion" value="1.5"/>
15
	<property name="encoding" value="ISO_8859_1"/>
16
	<property name="debug" value="on"/>
17
	<property name="debuglevel" value="lines, vars"/>
18 13
	<import file="../binaries/ant/utilities.xml"/>
19 14

  
20 15
  <target name="init">
......
37 32
		<!-- Compile the Java code from ${src} to ${build} -->
38 33
		<mkdir dir="${build}" />
39 34
		<loadEclipseClasspath project="${basedir}"/>
40
		<defaultJavac
35
		<gvSIG-javac
41 36
			classpath="${eclipseClasspath}"
42 37
		/>
43 38
		<!--<javac 	srcdir="${src}"
trunk/libraries/libIverUtiles/build.xml
7 7
	<property name="jarName" value="iver-utiles"/>
8 8
	<property name="andamiLibs" location="../_fwAndami/lib" />
9 9
	<property name="fmapLibs" location="../libFMap" />
10
	<property name="JavaSourceVersion" value="1.5"/>
11
	<property name="JavaTargetVersion" value="1.5"/>
12
	<property name="encoding" value="ISO_8859_1"/>
13
	<property name="debug" value="on"/>
14
	<property name="debuglevel" value="lines, vars"/>
15 10
	<import file="../binaries/ant/utilities.xml"/>
16 11
	<!--<property name="compile-classpath" value="${andamiLibs}/castor-0.9.5.3-xml.jar:${andamiLibs}/commons-collections-3.1.zip:${andamiLibs}/commons-dbcp-1.0-dev-20020806.zip:${andamiLibs}/commons-pool-1.2.zip:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" />-->
17 12

  
......
31 26
		<!-- Compile the Java code from ${src} to ${build} -->
32 27
		<mkdir dir="${build}" />
33 28
		<loadEclipseClasspath project="${basedir}"/>
34
		<defaultJavac
29
		<gvSIG-javac
35 30
			classpath="${eclipseClasspath}"
36 31
		/>
37 32
		<!--<javac	srcdir="${src}"
trunk/libraries/libRemoteServices/build.xml
13 13
	<property name="jarName" value="remote-clients" />
14 14
	<property name="targetDir" location="../libFMap/lib" />
15 15
	<!--<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />-->
16
	<property name="JavaSourceVersion" value="1.5"/>
17
	<property name="JavaTargetVersion" value="1.5"/>
18
	<property name="encoding" value="ISO_8859_1"/>
19
	<property name="debug" value="on"/>
20
	<property name="debuglevel" value="lines, vars"/>
21 16
	<import file="../binaries/ant/utilities.xml"/>
22 17

  
23 18
	<target name="init">
......
54 49
		<!-- Compile the Java code from ${src} to ${build} -->
55 50
		<mkdir dir="${build}" />
56 51
		<loadEclipseClasspath project="${basedir}"/>
57
		<defaultJavac
52
		<gvSIG-javac
58 53
			classpath="${eclipseClasspath}"
59 54
			excludes="**/Tests/*.java"/>
60 55
		<!--<javac	srcdir="${src}"
trunk/libraries/libRaster/build.xml
18 18
	<property name="fmapLibs" location="../libFMap/lib" />
19 19
	<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
20 20
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/kxml2.jar:${fmapLibs}/libproj.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${andamiLibs}/tempFileManager.jar" />-->
21
	<property name="JavaSourceVersion" value="1.5"/>
22
	<property name="JavaTargetVersion" value="1.5"/>
23
	<property name="encoding" value="ISO_8859_1"/>
24
	<property name="debug" value="on"/>
25
	<property name="debuglevel" value="lines, vars"/>
26 21
	<import file="../binaries/ant/utilities.xml"/>
27 22

  
28 23
  <target name="init">
......
77 72
		<!-- Compile the Java code from ${src} to ${build} -->
78 73
		<mkdir dir="${build}" />
79 74
		<loadEclipseClasspath project="${basedir}"/>
80
		<defaultJavac
75
		<gvSIG-javac
81 76
			classpath="${eclipseClasspath}"
82 77
			excludes="test/**"/>
83 78
		<!--<javac  srcdir="${src}"
trunk/libraries/libJCRS/build.xml
12 12
  <property name="andamiLibs" location="${andami}/lib"/>
13 13
  <property name="extension-dir" location="${andami}/gvSIG/extensiones"/>
14 14
  <property name="targetDir" location="../extJCRS/lib" />
15
	<property name="JavaSourceVersion" value="1.5"/>
16
	<property name="JavaTargetVersion" value="1.5"/>
17
	<property name="encoding" value="ISO_8859_1"/>
18
	<property name="debug" value="on"/>
19
	<property name="debuglevel" value="lines, vars"/>
20 15
	<import file="../binaries/ant/utilities.xml"/>
21 16

  
22 17

  
......
35 30
          description="compile the source" >
36 31
      <!-- Compile the Java code from ${src} to ${bin} -->
37 32
  		<loadEclipseClasspath project="${basedir}"/>
38
		<defaultJavac
33
		<gvSIG-javac
39 34
			classpath="${eclipseClasspath}"
40 35
		/>
41 36

  
trunk/libraries/libProjection/build.xml
13 13
	<property name="i18n" location="../libInternationalization"/>
14 14
	<property name="i18nLibs" location="${i18n}/lib"/>
15 15
	<!--<property name="compile-classpath" value="${lib}/geoapi-2.0.jar:${lib}/geojava.jar:${lib}/gt2-legacy.jar:${lib}/gt2-main.jar:${i18nLibs}/gvsig-i18n.jar" />-->
16
	<property name="JavaSourceVersion" value="1.5"/>
17
	<property name="JavaTargetVersion" value="1.5"/>
18
	<property name="encoding" value="ISO_8859_1"/>
19
	<property name="debug" value="on"/>
20
	<property name="debuglevel" value="lines, vars"/>
21 16
	<import file="../binaries/ant/utilities.xml"/>
22 17

  
23 18
  <target name="init">
......
40 35
		<!-- Compile the Java code from ${src} to ${build} -->
41 36
		<mkdir dir="${build}" />
42 37
		<loadEclipseClasspath project="${basedir}"/>
43
		<defaultJavac
38
		<gvSIG-javac
44 39
			classpath="${eclipseClasspath}"
45 40
		/>
46 41
		<!--<javac 	srcdir="${src}"
trunk/libraries/libDwg/build.xml
15 15
	<property name="libDir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" />
16 16
	<property name="andamiLibs" location="../_fwAndami/lib" />
17 17
	<!--<property name="compile-classpath" value="${libDir}/fmap.jar:${andamiLibs}/log4j-1.2.8.jar"/>-->
18
	<property name="JavaSourceVersion" value="1.5"/>
19
	<property name="JavaTargetVersion" value="1.5"/>
20
	<property name="encoding" value="ISO_8859_1"/>
21
	<property name="debug" value="on"/>
22
	<property name="debuglevel" value="lines, vars"/>
23 18
	<import file="../binaries/ant/utilities.xml"/>
24 19

  
25 20
  <target name="init">
......
98 93
		<!-- Compile the Java code from ${src} to ${build} -->
99 94
		<mkdir dir="${build}" />
100 95
		<loadEclipseClasspath project="${basedir}"/>
101
		<defaultJavac
96
		<gvSIG-javac
102 97
			classpath="${eclipseClasspath}"/>
103 98
			<!--excludes="com/iver/cit/gvsig/fmap/**"/>-->
104 99
		<!--<javac  srcdir="${src}"
trunk/libraries/libExceptions/build.xml
8 8
	<property name="remoteServicesLibs" location="../libRemoteServices/lib" />
9 9
	<property name="jarName" value="org.gvsig.exceptions"/>
10 10
	<!--<property name="compile-classpath" value="" />-->
11
	<property name="JavaSourceVersion" value="1.5"/>
12
	<property name="JavaTargetVersion" value="1.5"/>
13
	<property name="encoding" value="ISO_8859_1"/>
14
	<property name="debug" value="on"/>
15
	<property name="debuglevel" value="lines, vars"/>
16 11
	<import file="../binaries/ant/utilities.xml"/>
17 12

  
18 13
  <target name="init">
......
31 26
		<!-- Compile the Java code from ${src} to ${build} -->
32 27
		<mkdir dir="${build}" />
33 28
		<loadEclipseClasspath project="${basedir}"/>
34
		<defaultJavac
29
		<gvSIG-javac
35 30
			classpath="${eclipseClasspath}"
36 31
		/>
37 32

  
trunk/libraries/libFMap/build.xml
16 16
    <property name="build-doc" value="build-doc"/>
17 17
	<property name="jarName" value="fmap.jar"/>
18 18
	<!--<import file="compile-classpath.xml"/>-->
19
	<property name="JavaSourceVersion" value="1.5"/>
20
	<property name="JavaTargetVersion" value="1.5"/>
21
	<property name="encoding" value="ISO_8859_1"/>
22
	<property name="debug" value="on"/>
23
	<property name="debuglevel" value="lines, vars"/>
24 19
	<import file="../binaries/ant/utilities.xml"/>
25 20

  
26 21

  
......
127 122
		<!-- Compile the Java code from ${src} to ${build} -->
128 123
		<mkdir dir="${build}" />
129 124
		<loadEclipseClasspath project="${basedir}"/>
130
		<defaultJavac
125
		<gvSIG-javac
131 126
			classpath="${eclipseClasspath}"
132 127
		/>
133 128

  
trunk/libraries/libDriverManager/build.xml
9 9
	<property name="dist" location="dist"/>
10 10
	<property name="jarName" value="driver-manager-1.1"/>
11 11
	<property name="targetDir" value="../libFMap/lib"/>
12
	<property name="JavaSourceVersion" value="1.5"/>
13
	<property name="JavaTargetVersion" value="1.5"/>
14
	<property name="encoding" value="ISO_8859_1"/>
15
	<property name="debug" value="on"/>
16
	<property name="debuglevel" value="lines, vars"/>
17 12
	<import file="../binaries/ant/utilities.xml"/>
18 13

  
19 14
	<target name="init">
......
36 31
        <!-- Compile the Java code from ${src} to ${build} -->
37 32
    	<mkdir dir="${build}" />
38 33
		<loadEclipseClasspath project="${basedir}"/>
39
		<defaultJavac
34
		<gvSIG-javac
40 35
			classpath="${eclipseClasspath}"
41 36
		/>
42 37
        <!-- <javac	srcdir="${src}"
trunk/libraries/libGDBMS/build.xml
11 11
	<!--<import file="compile-classpath.xml"/>-->
12 12
	<!--<import file="../libFMap/compile-classpath.xml"/>-->
13 13
	<property name="compile-sourcepath" value="../libFMap/src"/>
14
	<property name="JavaSourceVersion" value="1.5"/>
15
	<property name="JavaTargetVersion" value="1.5"/>
16
	<property name="encoding" value="ISO_8859_1"/>
17
	<property name="debug" value="on"/>
18
	<property name="debuglevel" value="lines, vars"/>
19 14
	<import file="../binaries/ant/utilities.xml"/>
20 15

  
21 16
	<target name="init">
......
152 147
		<!-- Compile the Java code from ${src} to ${build} -->
153 148
		<mkdir dir="${build}" />
154 149
		<loadEclipseClasspath project="${basedir}"/>
155
		<defaultJavac
150
		<gvSIG-javac
156 151
			excludes="test/**"
157 152
			classpath="${eclipseClasspath}"
158 153
			sourcepath="${compile-sourcepath}"/>
trunk/libraries/libUIComponent/build.xml
16 16
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
17 17
  <property name="gvsigLibDir" location="${extensionsDir}/com.iver.cit.gvsig/lib/"/>
18 18
  <property name="targetDir" location="${andamiLibs}"/>
19
	<property name="JavaSourceVersion" value="1.5"/>
20
	<property name="JavaTargetVersion" value="1.5"/>
21
	<property name="encoding" value="ISO_8859_1"/>
22
	<property name="debug" value="on"/>
23
	<property name="debuglevel" value="lines, vars"/>
19

  
24 20
	<import file="../binaries/ant/utilities.xml"/>
25 21

  
26 22
	<!--<property name="compile-classpath" value="${andamiLibs}/gvsig-i18n.jar"/>-->
......
53 49
		<mkdir dir="${build}"/>
54 50
		<!-- Compile the Java code from ${src} to ${build} -->
55 51
		<loadEclipseClasspath project="${basedir}"/>
56
		<defaultJavac
52
		<gvSIG-javac
57 53
			classpath="${eclipseClasspath}"
58 54
		/>
59 55
		<!--<javac  srcdir="${src}"
trunk/libraries/libInternationalization/build.xml
13 13
	<property name="targetDir" location="../_fwAndami/lib"/>
14 14
	<property name="build-doc" value="doc"/>
15 15
	<!--<property name="compile-classpath" value="${andamiLibs}/log4j-1.2.8.jar"/>-->
16
	<property name="JavaSourceVersion" value="1.5"/>
17
	<property name="JavaTargetVersion" value="1.5"/>
18
	<property name="encoding" value="ISO_8859_1"/>
19
	<property name="debug" value="on"/>
20
	<property name="debuglevel" value="lines, vars"/>
21 16
	<import file="../binaries/ant/utilities.xml"/>
22 17

  
23 18
	<target name="init">
......
50 45
		<!-- Compile the Java code from ${src} to ${build} -->
51 46
		<mkdir dir="${build}" />
52 47
		<loadEclipseClasspath project="${basedir}"/>
53
		<defaultJavac
48
		<gvSIG-javac
54 49
			classpath="${eclipseClasspath}"
55 50
		/>
56 51

  
trunk/libraries/libCorePlugin/build.xml
11 11
	<property name="plugin" value="com.iver.core"/>
12 12
	<property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/>
13 13
	<!--<property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:${andamiJar}:${lib}/beans.jar" />-->
14
	<property name="JavaSourceVersion" value="1.5"/>
15
	<property name="JavaTargetVersion" value="1.5"/>
16
	<property name="encoding" value="ISO_8859_1"/>
17
	<property name="debug" value="on"/>
18
	<property name="debuglevel" value="lines, vars"/>
19 14
	<import file="../binaries/ant/utilities.xml"/>
20 15

  
21 16
  <target name="init">
......
27 22
    <mkdir dir="${build}"/>
28 23
  </target>
29 24

  
30

  
31
  <target name="import-build-number">
32
  	<copy todir=".">
33
  		<fileset file="${buildNumberFile}"/>
34
  	</copy>
35
  </target>
36

  
37 25
  <target name="dist" description="generate the distribution" >
38 26
    <!-- Create the distribution directory -->
39 27
    <mkdir dir="${dist}"/>
......
66 54
    </target>
67 55

  
68 56
    <target name="compile" description="compile the source" >
57
		<antcall target="gvSIG-import-build-number"/>
69 58
        <!-- Compile the Java code from ${src} to ${build} -->
70 59
    	<mkdir dir="${build}" />
71 60
		<loadEclipseClasspath project="${basedir}"/>
72
		<defaultJavac
61
		<gvSIG-javac
73 62
			classpath="${eclipseClasspath}"
74 63
		/>
75 64
        <!--<javac	srcdir="${src}"
trunk/extensions/extScripting/build.xml
23 23
  <property name="installDir" location="${installBaseDir}/gvSIG/extensiones/${plugin}"/>
24 24
  <property name="installLibDir" location="${installBaseDir}/gvSIG/extensiones/${mainplugin}/lib"/>
25 25
  <!--<property name="compile-classpath" value="${andami}/andami.jar:${lib}/bsf-2.3.0rc1.jar:${lib}/bsh-2.0b1.jar:${installLibDir}/fmap.jar:${lib}/groovy-all-1.0-beta-7.jar:${installLibDir}/com.iver.cit.gvsig.jar:${andamiLibs}/iver-utiles.jar:${lib}/jython-2.1.jar:${lib}/scriptablethinlet-0.9.jar:${lib}/thinlet.jar"/>-->
26
  <property name="JavaSourceVersion" value="1.5"/>
27
  <property name="JavaTargetVersion" value="1.5"/>
28
  <property name="encoding" value="ISO_8859_1"/>
29
  <property name="debug" value="on"/>
30
  <property name="debuglevel" value="lines, vars"/>
31 26
  <import file="../binaries/ant/utilities.xml"/>
32 27

  
33 28
  <target name="init">
......
37 32
		Compiling ${ant.project.name}...</echo>
38 33
  </target>
39 34

  
40
	  <target name="import-build-number">
41
	  	<copy todir=".">
42
	  		<fileset file="${buildNumberFile}"/>
43
	  	</copy>
44
	  </target>
45

  
46 35
  <target name="dist" depends="init"
47 36
	description="generate the distribution" >
48 37
    <!-- Remove previous distribution directory -->
......
181 170

  
182 171
	<target name="compile" description="compile the source" >
183 172
		<!-- Compile the Java code from ${src} to ${build} -->
173
		<antcall target="gvSIG-import-build-number"/>
184 174
		<mkdir dir="${build}" />
185 175
		<loadEclipseClasspath project="${basedir}"/>
186
		<defaultJavac
176
		<gvSIG-javac
187 177
			classpath="${eclipseClasspath}"
188 178
		/>
189 179
		<!--<javac  srcdir="${src}"
trunk/extensions/extJDBC/build.xml
17 17
	<!--<import file="compile-classpath.xml"/>
18 18
	<import file="../libFMap/compile-classpath.xml"/>-->
19 19
	<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/>
20
	<property name="JavaSourceVersion" value="1.5"/>
21
	<property name="JavaTargetVersion" value="1.5"/>
22
	<property name="encoding" value="ISO_8859_1"/>
23
	<property name="debug" value="on"/>
24
	<property name="debuglevel" value="lines, vars"/>
25 20
	<import file="../binaries/ant/utilities.xml"/>
26 21

  
27 22
  <target name="init">
......
35 30
	<mkdir dir="${drivers-dir}" />
36 31

  
37 32
  </target>
38
	  <target name="import-build-number">
39
	  	<copy todir=".">
40
	  		<fileset file="${buildNumberFile}"/>
41
	  	</copy>
42
	  </target>
43 33

  
44 34
  <target name="generate-without-source"
45 35
  		description="generate the distribution without the source file"
......
53 43
	</target>
54 44

  
55 45
	<target name="compile" description="compile the source" >
46
		<antcall target="gvSIG-import-build-number"/>
56 47
		<!-- Compile the Java code from ${src} to ${build} -->
57 48
		<mkdir dir="${build}" />
58 49
		<loadEclipseClasspath project="${basedir}"/>
59
		<defaultJavac
50
		<gvSIG-javac
60 51
			classpath="${eclipseClasspath}"
61 52
		/>
62 53
		<!--<javac  srcdir="${src}"
trunk/extensions/extCatalogYNomenclator/build.xml
29 29
	<property name="andamiLibs" location="${andami}/lib"/>
30 30
	<property name="fmapLibs" location="../libFMap/lib" />
31 31
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${dist}/lib/catCliProto.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${appCatalogDir}/lib/commons-httpclient-2.0.2.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/gvsig-i18n.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${appCatalogDir}/lib/ostermillerutils_1_04_03_for_java_1_4.jar:${dist}/lib/${postgisPlugin}.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" />-->
32
	<property name="JavaSourceVersion" value="1.5"/>
33
	<property name="JavaTargetVersion" value="1.5"/>
34
	<property name="encoding" value="ISO_8859_1"/>
35
	<property name="debug" value="on"/>
36
	<property name="debuglevel" value="lines, vars"/>
37 32

  
38 33

  
39 34
  <target name="init">
......
47 42

  
48 43
  </target>
49 44

  
50
	<target name="import-build-number">
51
	  	<copy todir=".">
52
	  		<fileset file="${buildNumberFile}"/>
53
	  	</copy>
54
	</target>
55

  
56 45
  <target name="generate-without-source"
57 46
  		description="generate the distribution without the source file">
58 47
  		<!-- depends="wcs-driver" -->
......
139 128
		<mkdir dir="${build}" />
140 129
		<mkdir dir="${dist}/lib" />
141 130
  		<jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/>
131
		<antcall target="gvSIG-import-build-number"/>
142 132
		<loadEclipseClasspath project="${basedir}"/>
143
		<defaultJavac
133
		<gvSIG-javac
144 134
			classpath="${eclipseClasspath}"
145 135
		/>
146 136
	    <!--<javac  srcdir="${src}"
......
161 151
	</target>
162 152

  
163 153
	<target name="copy-data-files">
154
		<antcall target="gvSIG-import-build-number"/>
164 155
	  	<copy file="config/config.xml" todir="${dist}"/>
165 156
		<copy file="build.number" todir="${dist}"/>
166 157
	    <copy file="config/plugin.dtd" todir="${dist}"/>
trunk/extensions/extGeoProcessing/build.xml
23 23
	<property name="fmapLibs" location="../libFMap/lib" />
24 24
	<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/>
25 25
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar"/>-->
26
	<property name="JavaSourceVersion" value="1.5"/>
27
	<property name="JavaTargetVersion" value="1.5"/>
28
	<property name="encoding" value="ISO_8859_1"/>
29
	<property name="debug" value="on"/>
30
	<property name="debuglevel" value="lines, vars"/>
31 26
	<import file="../binaries/ant/utilities.xml"/>
32 27

  
33 28

  
......
38 33
		Compiling ${ant.project.name}...</echo>
39 34
  </target>
40 35

  
41
	  <target name="import-build-number">
42
	  	<copy todir=".">
43
	  		<fileset file="${buildNumberFile}"/>
44
	  	</copy>
45
	  </target>
46 36

  
47 37
  <target name="dist" depends="init"
48 38
	description="generate the distribution" >
......
128 118
	</target>
129 119

  
130 120
	<target name="compile" description="compile the source" >
121
		<antcall target="gvSIG-import-build-number"/>
131 122
		<!-- Compile the Java code from ${src} to ${build} -->
132 123
		<mkdir dir="${build}" />
133 124
		<loadEclipseClasspath project="${basedir}"/>
134
		<defaultJavac
125
		<gvSIG-javac
135 126
			classpath="${eclipseClasspath}"
136 127
		/>
137 128

  
trunk/extensions/extAddEventTheme/build.xml
20 20
	<property name="andamiLibs" location="${andami}/lib"/>
21 21
	<property name="fmapLibs" location="../libFMap/lib" />
22 22
	<!--<property name="compile-classpath" value="${gvsigJar}:${andamiJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar"/>-->
23
	<property name="JavaSourceVersion" value="1.5"/>
24
	<property name="JavaTargetVersion" value="1.5"/>
25
	<property name="debug" value="on"/>
26
	<property name="encoding" value="ISO_8859_1"/>
27 23

  
28 24
	<target name="init">
29 25
		<!-- Create the time stamp -->
......
33 29
		</echo>
34 30
	</target>
35 31

  
36
  <target name="import-build-number">
37
  	<copy todir=".">
38
  		<fileset file="${buildNumberFile}"/>
39
  	</copy>
40
  </target>
41

  
42 32
  <target name="dist" depends="init"
43 33
	description="generate the distribution" >
44 34
    <!-- Remove previous distribution directory -->
......
115 105

  
116 106
	<target name="compile" description="compile the source" >
117 107
		<!-- Compile the Java code from ${src} to ${build} -->
108
		<antcall target="gvSIG-import-build-number"/>
118 109
		<mkdir dir="${build}" />
119 110
		<loadEclipseClasspath project="${basedir}"/>
120
		<defaultJavac
111
		<gvSIG-javac
121 112
			classpath="${eclipseClasspath}"
122 113
			excludes="test/**"/>
123 114
		<!--<javac  srcdir="${src}"
......
139 130
	</target>
140 131

  
141 132
	<target name="copy-data-files">
133
		<antcall target="gvSIG-import-build-number"/>
142 134
		<copy file="config/config.xml" todir="${dist}"/>
143 135
		<copy file="build.number" todir="${dist}"/>
144 136
		<copy todir="${dist}">
trunk/extensions/extDwg/build.xml
23 23
	 <property name="plugin" value="com.iver.cit.gvsig.dwg"/>
24 24
	 <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
25 25
	  <property name="mainPlugin" value="com.iver.cit.gvsig" />
26
	<property name="JavaSourceVersion" value="1.5"/>
27
	<property name="JavaTargetVersion" value="1.5"/>
28
	<property name="encoding" value="ISO_8859_1"/>
29
	<property name="debug" value="on"/>
30
	<property name="debuglevel" value="lines, vars"/>
31 26
	<import file="../binaries/ant/utilities.xml"/>
32 27

  
33 28
  <target name="init">
......
101 96
	  	</target>
102 97
	<target name="compile" description="compile the source" >
103 98
		<!-- Compile the Java code from ${src} to ${build} -->
99
		<antcall target="gvSIG-import-build-number"/>
104 100
		<mkdir dir="${build}" />
105 101
		<loadEclipseClasspath project="${basedir}"/>
106
		<defaultJavac
102
		<gvSIG-javac
107 103
			classpath="${eclipseClasspath}"
108 104
		/>
109 105
		<!--<javac  srcdir="${src}"
trunk/extensions/extWFS2/build.xml
23 23
	<property name="gvsigLibs" location="../appgvSIG/lib"/>
24 24
	<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
25 25
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib-dir}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/geoapi-2.0.jar:${lib}/gt2-gml.jar:${fmapLibs}/gt2-main.jar:${lib}/gt2-wfs.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${gvsigLibs}/zql.jar" />-->
26
	<property name="JavaSourceVersion" value="1.5"/>
27
	<property name="JavaTargetVersion" value="1.5"/>
28
	<property name="encoding" value="ISO_8859_1"/>
29
	<property name="debug" value="on"/>
30
	<property name="debuglevel" value="lines, vars"/>
31 26
	<import file="../binaries/ant/utilities.xml"/>
32 27

  
33 28
  <target name="init">
......
40 35

  
41 36
  </target>
42 37

  
43
	  <target name="import-build-number">
44
	  	<copy todir=".">
45
	  		<fileset file="${buildNumberFile}"/>
46
	  	</copy>
47
	  </target>
48

  
49

  
50 38
  <target name="generate-without-source"
51 39
  		description="generate the distribution without the source file">
52 40
    <!-- Create the distribution directory -->
......
90 78

  
91 79
	<target name="compile" description="compile the source" >
92 80
		<!-- Compile the Java code from ${src} to ${build} -->
81
		<antcall target="gvSIG-import-build-number"/>
93 82
		<mkdir dir="${build}" />
94 83
		<loadEclipseClasspath project="${basedir}"/>
95
		<defaultJavac
84
		<gvSIG-javac
96 85
			classpath="${eclipseClasspath}"
97 86
		/>
98 87
		<!--<javac  srcdir="${src}"
trunk/extensions/extRasterTools-SE/build.xml
19 19
  <property name="fmapRTJar" location="org.gvsig.fmap.raster.jar"/>
20 20
  <!--<import file="compile-classpath.xml"/>-->
21 21
  <!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapJar}:${andamiLibs}/iver-utiles.jar:${cmsLibs}/jecw-0.0.2.jar:${cmsLibs}/jecwcompress-1.0.0.jar:${cmsLibs}/jgdal-0.6.1.jar:${cmsLibs}/jmrsid-0.0.2.jar:${fmapLibs}/libproj.jar" />-->
22
  <property name="JavaSourceVersion" value="1.5"/>
23
  <property name="JavaTargetVersion" value="1.5"/>
24
  <property name="encoding" value="ISO_8859_1"/>
25
  <property name="debug" value="on"/>
26
  <property name="debuglevel" value="lines, vars"/>
27 22
  <import file="../binaries/ant/utilities.xml"/>
28 23

  
29 24
  <!--Plugins-->
......
101 96

  
102 97
	<target name="compile" description="compile the source" >
103 98
		<!-- Compile the Java code from ${src} to ${build} -->
99
		<antcall target="gvSIG-import-build-number"/>
104 100
		<mkdir dir="${build}" />
105 101
		<loadEclipseClasspath project="${basedir}"/>
106
		<defaultJavac
102
		<gvSIG-javac
107 103
			classpath="${eclipseClasspath}"
108 104
		/>
109 105
		<!--<javac  srcdir="${src}"
......
167 163
  	<delete dir="${drivers-dir}/rasterSE"/>
168 164
  	<delete dir="${extensionsDir}/${plugin}/"/>
169 165
  </target>
170

  
171
	<target name="import-build-number">
172
		<copy todir=".">
173
			<fileset file="${buildNumberFile}"/>
174
		</copy>
175
	</target>
176 166
</project>
177 167

  
trunk/extensions/extGeoprocessingExtensions/build.xml
25 25
	<property name="andamiLibs" location="${andami}/lib"/>
26 26
	<property name="fmapLibs" location="../libFMap/lib" />
27 27
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib}/ehcache-1.2beta4.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${lib}/spatialindex.jar:${geoprocessingJar}"/>-->
28
	<property name="JavaSourceVersion" value="1.5"/>
29
	<property name="JavaTargetVersion" value="1.5"/>
30
	<property name="encoding" value="ISO_8859_1"/>
31
	<property name="debug" value="on"/>
32
	<property name="debuglevel" value="lines, vars"/>
33 28
	<import file="../binaries/ant/utilities.xml"/>
34 29

  
35 30

  
......
41 36
		Compiling ${ant.project.name}...</echo>
42 37
  </target>
43 38

  
44
	  <target name="import-build-number">
45
	  	<copy todir=".">
46
	  		<fileset file="${buildNumberFile}"/>
47
	  	</copy>
48
	  </target>
49

  
50 39
  <target name="dist" depends="init"
51 40
	description="generate the distribution" >
52 41
    <!-- Remove previous distribution directory -->
......
125 114

  
126 115
	<target name="compile" description="compile the source" >
127 116
		<!-- Compile the Java code from ${src} to ${build} -->
117
		<antcall target="gvSIG-import-build-number"/>
128 118
		<mkdir dir="${build}" />
129 119
		<loadEclipseClasspath project="${basedir}"/>
130
		<defaultJavac
120
		<gvSIG-javac
131 121
			classpath="${eclipseClasspath}"
132 122
		/>
133 123
		<!--<javac  srcdir="${src}"
trunk/extensions/extCAD/build.xml
22 22
	<import file="../_fwAndami/compile-classpath.xml"/>
23 23
	<property name="compile-sourcepath" value="../appgvSIG/src"/>-->
24 24
	<import file="../binaries/ant/utilities.xml"/>
25
	<property name="JavaSourceVersion" value="1.5"/>
26
	<property name="JavaTargetVersion" value="1.5"/>
27
	<property name="encoding" value="ISO_8859_1"/>
28
	<property name="debug" value="on"/>
29
	<property name="debuglevel" value="lines, vars"/>
30 25

  
31 26

  
32 27
  <target name="init">
......
60 55
    </move>
61 56
  </target>
62 57

  
63
	<target name="import-build-number">
64
		<copy todir=".">
65
	  		<fileset file="${buildNumberFile}"/>
66
	  	</copy>
67
	</target>
68

  
69 58
		<target name="batch-build"
70 59
				description="compile the sources, create the jar file"
71 60
				depends="init,compile,create-jar,copy-data-files,move-to-andami">
......
73 62

  
74 63
		<target name="compile" description="compile the source" >
75 64
			<!-- Compile the Java code from ${src} to ${build} -->
65
			<antcall target="gvSIG-import-build-number"/>
76 66
			<mkdir dir="${build}" />
77 67
			<loadEclipseClasspath project="${basedir}"/>
78
			<defaultJavac
68
			<gvSIG-javac
79 69
				classpath="${eclipseClasspath}"/>
80 70
			<!--<javac  srcdir="${src}"
81 71
				destdir="${build}"
trunk/extensions/extCenterViewToPoint/build.xml
7 7
	<property name="src" location="src"/>
8 8
	<property name="build" location="bin"/>
9 9
	<property name="dist"  location="dist"/>
10
	<property name="JavaSourceVersion" value="1.5"/>
11
	<property name="JavaTargetVersion" value="1.5"/>
12
	<property name="encoding" value="ISO_8859_1"/>
13
	<property name="debug" value="on"/>
14
	<property name="debuglevel" value="lines, vars"/>
15 10
	<property name="andamiBaseDir" location="../_fwAndami"/>
16 11
	<property name="andamiLibs" location="${andamiBaseDir}/lib"/>
17 12
	<property name="gvsigLibs" location="${andamiBaseDir}/gvSIG/extensiones/com.iver.cit.gvsig/lib"/>
......
39 34

  
40 35
	<target name="compile" description="compile the Java source code from ${src} to ${build}" >
41 36
		<!-- Compile the Java code from ${src} to ${build} -->
37
		<antcall target="gvSIG-import-build-number"/>
42 38
		<mkdir dir="${build}" />
43 39
		<loadEclipseClasspath project="${basedir}"/>
44
		<defaultJavac
40
		<gvSIG-javac
45 41
			classpath="${eclipseClasspath}"
46 42
		/>
47 43
		<!--<javac  srcdir="${src}"
......
76 72
		</move>
77 73
	</target>
78 74

  
79
	<target name="import-build-number">
80
		<copy todir=".">
81
			<fileset file="${buildNumberFile}"/>
82
		</copy>
83
	</target>
84

  
85 75
	<target name="clean"
86 76
			description="clean dist directory" >
87 77
		<!-- Clean the distribution directory -->
trunk/extensions/extDataLocator/build.xml
18 18
	<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/>
19 19
	<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
20 20
	<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar" />-->
21
	<property name="JavaSourceVersion" value="1.5"/>
22
	<property name="JavaTargetVersion" value="1.5"/>
23
	<property name="encoding" value="ISO_8859_1"/>
24
	<property name="debug" value="on"/>
25
	<property name="debuglevel" value="lines, vars"/>
26 21
	<import file="../binaries/ant/utilities.xml"/>
27 22

  
28 23
  <target name="init">
......
30 25
    <tstamp/>
31 26
  </target>
32 27

  
33
	  <target name="import-build-number">
34
	  	<copy todir=".">
35
	  		<fileset file="${buildNumberFile}"/>
36
	  	</copy>
37
	  </target>
38 28

  
39

  
40 29
  <target name="dist" depends="init"
41 30
	description="generate the distribution" >
42 31
    <!-- Remove previous distribution directory -->
......
125 114

  
126 115
	<target name="compile" description="compile the source" >
127 116
		<!-- Compile the Java code from ${src} to ${build} -->
117
		<antcall target="gvSIG-import-build-number"/>
128 118
		<mkdir dir="${build}" />
129 119
		<loadEclipseClasspath project="${basedir}"/>
130
		<defaultJavac
120
		<gvSIG-javac
131 121
			classpath="${eclipseClasspath}"
132 122
		/>
133 123
		<!--<javac  srcdir="${src}"
trunk/extensions/extJCRS/build.xml
11 11
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
12 12
  <property name="gvSIGlib-dir" value="${extension-dir}/com.iver.cit.gvsig/lib"/>
13 13
  <property name="andami-dir" location="../_fwAndami"/>
14
	<property name="JavaSourceVersion" value="1.5"/>
15
	<property name="JavaTargetVersion" value="1.5"/>
16
	<property name="encoding" value="ISO_8859_1"/>
17
	<property name="debug" value="on"/>
18
	<property name="debuglevel" value="lines, vars"/>
14

  
19 15
	<import file="../binaries/ant/utilities.xml"/>
20 16

  
21 17
  <target name="init">
......
38 34
  <target name="compile"
39 35
          description="compile the source" >
40 36
      <!-- Compile the Java code from ${src} to ${bin} -->
37
		<antcall target="gvSIG-import-build-number"/>
41 38
		<loadEclipseClasspath project="${basedir}"/>
42
		<defaultJavac
39
		<gvSIG-javac
43 40
			classpath="${eclipseClasspath}"
44 41
		/>
45 42
      <!--<javac      srcdir="${src}"
......
95 92

  
96 93
  </target>
97 94

  
98
	<target name="import-build-number">
99
		<copy todir=".">
100
			<fileset file="${buildNumberFile}"/>
101
		</copy>
102
	</target>
103

  
104 95
	<target name="batch-build"
105 96
			description="compile the sources, create the jar file"
106 97
			depends="init,compile,generate-without-source">
trunk/frameworks/_fwAndami/build.xml
33 33
        <!-- Compile the Java code from ${src} to ${build} -->
34 34
    	<mkdir dir="${build}" />
35 35
		<loadEclipseClasspath project="${basedir}"/>
36
		<defaultJavac
36
		<gvSIG-javac
37 37
			classpath="${eclipseClasspath}"/>
38 38
<!--        <javac	srcdir="${src}"
39 39
				destdir="${build}"
trunk/applications/appgvSIG/build.xml
1 1
<project name="appgvSIG" default="dist" basedir=".">
2 2
    <description>
3
        Instala el plugin
3
        gvSIG Main build
4 4
    </description>
5
	<!-- set global properties for this build -->
6
	<!-- <property name="buildDate" value="20041018"/> -->
7
	<property name="version" value="1.1 ${eclipse.startTime}"/>
5

  
6
	<import file="../binaries/ant/utilities.xml"/>
7

  
8
	<!--
9
		============================================
10
		Properties for build of the appgvSIG proyect
11
		============================================
12
	-->
13
	<property name="version" value="1.2 ${eclipse.startTime}"/>
8 14
	<property name="src" location="src"/>
9 15
	<property name="build" location="bin"/>
10 16
	<property name="dist"  location="dist"/>
......
15 21
	<property name="andamiLibs" location="../_fwAndami/lib"/>
16 22
	<property name="fmapLibs"   location="../libFMap/lib"/>
17 23
	<property name="andamiJar"  location="../_fwAndami/andami.jar"/>
18
	<property name="makeZip" location="makeZip"/>
19
	<property name="zipName" value="gvSIG-${version}"/>
20 24

  
21
	<!--<import file="compile-classpath.xml"/>
22
	<import file="../_fwAndami/compile-classpath.xml"/>
23
	<import file="../libFMap/compile-classpath.xml"/>-->
24
	<import file="../binaries/ant/utilities.xml"/>
25
	<property name="build-doc" value="build-doc"/>
26
	<property name="JavaSourceVersion" value="1.5"/>
27
	<property name="JavaTargetVersion" value="1.5"/>
28
	<property name="encoding" value="ISO_8859_1"/>
25
	<!--
26
		============================================
27
		Properties for global build
28
		============================================
29
	-->
29 30

  
31
	<property name="gvSIG_Proyects" value="libInternationalization,libIverUtiles,libUIComponent,libExceptions,_fwAndami,libCorePlugin,libProjection,libRaster,libDXF,libDriverManager,libRemoteServices,libGDBMS,libFMap,appgvSIG,libJCRS,extJCRS,libDwg,extDwg,extRasterTools-SE,extAddEventTheme,appCatalogAndGazetteerClient,extCatalogAndGazetteer,extDataLocator,extJDBC,extCAD,extGeoProcessing,extGeoprocessingExtensions,extGeoreferencing,extOracleSpatial,extSDE,extScripting,extAnnotations,extExpresionField,extWCS,extWFS2,extWMS,extCenterViewToPoint,libArcIMS,extArcims"/>
32

  
33
	<property name="mandatoryProjets" value="
34
		_fwAndami,
35
		libCorePlugin,
36
		libFMap,
37
		appgvSIG,
38
		extJCRS
39
	"/>
40

  
41
	<property name="global.installBaseDir" location="${andami}"/>
42

  
43

  
44

  
45
	<!--
46
		============================================
47
		Targets for build of the appgvSIG proyect
48
		============================================
49
	-->
50

  
30 51
	<target name="init">
31 52
		<!-- Create the time stamp -->
32 53
		<tstamp/>
......
38 59
		<!-- <buildnumber/> -->
39 60
	</target>
40 61

  
41
	<target name="build-doc" depends="" description="Genera un zip con la documentación">
42
		<javadoc
43
			packagenames="com.iver.cit.gvsig.*"
44
			sourcepath="src"
45
			defaultexcludes="yes"
46
			destdir="${build-doc}/gvSIG-api"
47
			windowtitle="gvSIG API">
48
		</javadoc>
49
	</target>
50

  
51 62
	<target name="dist"
52 63
				depends="init,create-jar,copy-libs,copy-data-files,move-to-andami"
53 64
				description="Generate the distribution of the gvSIG plugin. To build just the appgvSIG project from Eclipse " >
54 65
		<!-- Create the distribution directory -->
55 66
	</target>
56 67

  
57
	<target name="make-binary-distribution"
58
            description="Prepare a binary distribution of the application. This increments the build number and then makes a global build"
59
            depends="clean_andami_gvSIG,buildNumber,build-all">
60
    </target>
61

  
62
    <target name="clean_andami_gvSIG"
63
            description="clean up the gvSIG andami deploy">
64
        <delete dir="${andami}/gvSIG" failonerror="false"/>
65
    </target>
66

  
67
	<target name="batch-build"
68
			description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
69
			depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
70
	</target>
71

  
72 68
	<target name="compile" description="compile the source">
73 69
		<!-- Create the time stamp -->
74 70
		<tstamp/>
......
76 72
		<mkdir dir="${build}"/>
77 73
		<!-- Compile the Java code from ${src} to ${build} -->
78 74
		<loadEclipseClasspath project="${basedir}"/>
79
		<defaultJavac
75
		<gvSIG-javac
80 76
			classpath="${eclipseClasspath}"
81 77
			excludes="com/iver/cit/gvsig/test/**"/>
82
		<!--
83
		<javac  srcdir="${src}"
84
			destdir="${build}"
85
			source="${JavaSourceVersion}"
86
			target="${JavaTargetVersion}"
87
			debug="${debug}"
88
			debuglevel="${debuglevel}"
89
			excludes="com/iver/cit/gvsig/test/**"
90
			encoding="${encoding}"
91
			classpath="${eclipseClasspath}"/>
92
			-->
93 78

  
94 79
	</target>
95 80

  
......
103 88
		<copy todir="${dist}/lib">
104 89
			<fileset dir="./lib" includes="*.jar,*.zip"/>
105 90
		</copy>
106
		<ant dir="${fmap}" target="batch-build" inheritAll="false">
91
		<ant dir="../libFMap" target="batch-build" inheritAll="false">
107 92
			<property name="debug" value="${debug}"/>
108 93
			<property name="debuglevel" value="${debuglevel}"/>
109 94
			<property name="encoding" value="ISO_8859_1"/>
......
114 99

  
115 100
	</target>
116 101

  
102
	<target name="batch-build"
103
			description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute"
104
			depends="init,compile,create-jar,copy-libs,copy-data-files,move-to-andami">
105
	</target>
106

  
117 107
	<target name="copy-data-files">
118 108
        <copy todir="${dist}">
119 109
                <fileset dir="config" includes="*" />
......
137 127
			description="clean up" >
138 128
		<!-- Delete the ${build} and ${dist} directory trees -->
139 129
		<delete dir="${build}"/>
140
<!--		<delete dir="${dist}"/> -->
130
		<!--<delete dir="${dist}"/> -->
141 131
	</target>
142 132

  
133
	<!--
134
		============================================
135
		Targets for global build
136
		============================================
137
	-->
143 138

  
144
	<!-- the global build starts here -->
145
	<property name="i18n" location="../libInternationalization"/>
146
	<property name="utiles" location="../libIverUtiles"/>
147
	<property name="libui" location="../libUIComponent"/>
148
	<property name="exceptions" location="../libExceptions"/>
149
	<property name="andami" location="../_fwAndami"/>
150
	<property name="core" location="../libCorePlugin"/>
151
	<property name="projections" location="../libProjection"/>
152
	<property name="libraster" location="../libRaster"/>
153
	<property name="libdxf" location="../libDXF"/>
154
	<property name="driver" location="../libDriverManager"/>
155
	<property name="remote" location="../libRemoteServices"/>
156
	<property name="gdbms" location="../libGDBMS"/>
157
	<property name="fmap" location="../libFMap"/>
158
	<property name="gvSIG" location="../appgvSIG"/>
159
	<property name="libjcrs" location="../libJCRS"/>
160
	<property name="extjcrs" location="../extJCRS"/>
161
	<property name="baseProyects" value="${i18n},${utiles},${libui},${exceptions},${andami},${core},${projections},${libraster},${libdxf},${driver},${remote},${gdbms},${fmap},${gvSIG},${libjcrs},${extjcrs}"/>
162
	<property name="mandatoryProjets" value="${andami},${core},${fmap},${gvSIG}"/>
139
	<!-- Public Targets -->
140
	<target name="make-binary-distribution"
141
            description="
142
				Prepare for do a binary distribution of the application.
143
				This increments the build number and then makes a global build"
144
            depends="clean-all,buildNumber,build-all-DebugOff">
145
    </target>
163 146

  
147
	<target name="make-binary-distribution-JS1.5_JT1.4"
148
            description="
149
			Prepare for do a binary distribution of the application.
150
			This increments the build number and then makes a global build.
151
			Source Java 1.5 and Target Java 1.4"
152
            depends="clean-all,buildNumber,build-all-JS1.5_JT1.4-DebugOff">
153
    </target>
164 154

  
165
	<property name="global.installBaseDir" location="${andami}"/>
155
	<target name="make-binary-distribution-test"
156
            description="
157
			Prepare for a binary distribution of the application
158
			without increments the global build number"
159
            depends="clean-all,build-all-DebugOff">
160
    </target>
166 161

  
162
	<target name="make-binary-distribution-JS1.5_JT1.4-test"
163
            description="
164
			Prepare for a binary distribution of the application
165
			without increments the global build number.
166
			Source Java 1.5 and Target Java 1.4"
167
            depends="clean-all,build-all-JS1.5_JT1.4-DebugOff">
168
    </target>
167 169

  
168
	<target name="buildNumber"
169
				description="Generates the build.number for the application">
170
		<propertyfile
171
				file="build.number"
172
				comment="Build Number for ANT. Do not edit!">
173
			<entry  key="build.number" default="0" type="int" operation="+"/>
174
		</propertyfile>
175
	</target>
170
    <target name="clean_andami_gvSIGdir"
171
            description="clean up the gvSIG andami deploy">
172
        <delete dir="${andami}/gvSIG" failonerror="false"/>
173
    </target>
176 174

  
177 175
	<target name="build-all"
178
				depends="debug-no,base,extensions"
179
				description="Global build for the whole gvSIG + extensions. Compiles all the sources and builds the application so that it's ready to execute" />
180

  
181
	<target name="eclipse-build-all"
182
					depends="debug-yes,base,extensions"
183
					description="Builds the application, including extensions, producing debug info" />
184

  
185
	<target name="debug-yes">
186
		<property name="debug" value="on"/>
187
		<property name="debuglevel" value="lines, vars"/>
176
		description="
177
			Global build for the whole gvSIG.
178
			Compiles all the sources and builds the application so that it's ready to execute
179
	">
180
		<antcall target="build-all-projects"/>
188 181
	</target>
189 182

  
190
	<target name="debug-no">
191
		<property name="debug" value="off"/>
183
	<target name="build-all-DebugOff"
184
		description="
185
			Global build for the whole gvSIG.
186
			Compiles all the sources and builds the application so that it's ready to execute.
187
			Do not generate debug info in complilation.
188
	">
189
		<antcall target="build-all-projects">
190
			<param name="debug" value="off"/>
191
			<param name="debuglevel" value=""/>
192
		</antcall>
192 193
	</target>
193 194

  
194
	<target name="eclipse-base" depends="debug-yes,base" />
195
	<target name="eclipse-extensions" depends="debug-yes,base,extensions" />
196

  
197
	<property name="encoding" value="ISO_8859_1" />
198
	<property name="sourceVersion" value="1.5" />
199
	<property name="targetVersion" value="1.5" />
200

  
201
	<!--
202
	<presetdef name="batch-build-library">
203
		<antcall target="batch-build-library">
204
			<param name="bb-library.name" value="${bb-library.name}"/>
195
	<target name="build-all-JS1.5_JT1.4"
196
		description="
197
			Global build for the whole gvSIG.
198
			Compiles all the sources and builds the application so that it's ready to execute.
199
			Source Java 1.5 and Target Java 1.4
200
	">
201
		<antcall target="build-all-projects">
202
			<param name="JavaSourceVersion" value="1.5"/>
203
			<param name="JavaTargetVersion" value="jsr14"/>
205 204
		</antcall>
206
	</presetdef>
207
	-->
205
	</target>
208 206

  
209
	<target name="batch-build-library">
210
		<condition property="bb-library.dir_alternative" value="${bb-library.name}" else="scripts/voidTarget">
211
			<contains string="${mandatoryProjets}" substring="${bb-library.name}"/>
212
		</condition>
213
		<condition property="bb-library.dir" value="${bb-library.name}" else="${bb-library.dir_alternative}">
214
			<available file="${bb-library.name}" type="dir"/>
215
		</condition>
216
		<ant dir="${bb-library.dir}" target="batch-build" inheritAll="false">
217
			<property name="debug" value="${debug}"/>
218
			<property name="debuglevel" value="${debuglevel}"/>
219
			<property name="encoding" value="${encoding}"/>
220
			<property name="projectName" value="${bb-library.name}" />
221
			<property name="encoding" value="${encoding}"/>
222
			<property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
223
			<property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
224
		</ant>
207
	<target name="build-all-JS1.5_JT1.4-DebugOff"
208
		description="
209
			Global build for the whole gvSIG.
210
			Compiles all the sources and builds the application so that it's ready to execute.
211
			Source Java 1.5 and Target Java 1.4.
212
			Do not generate debug info in complilation.
213
	">
214
		<antcall target="build-all-projects">
215
			<param name="JavaSourceVersion" value="1.5"/>
216
			<param name="JavaTargetVersion" value="jsr14"/>
217
			<param name="debug" value="off"/>
218
			<param name="debuglevel" value=""/>
219
		</antcall>
225 220
	</target>
226 221

  
227 222

  
228
	<target name="base"
223
	<target name="build-all-projects"
229 224
			description="Builds the application, excluding extensions">
230 225
		<property file="build.number"/>
231
		<!--<foreach list="${baseProyects}" delimiter="," target="batch-build-library" param="bb-library.name"/>-->
232
		<antcall target="batch-build-library">
233
			<param name="bb-library.name" value="${i18n}"/>
234
		</antcall>
235

  
236
		<antcall target="batch-build-library">
237
			<param name="bb-library.name" value="${utiles}"/>
238
		</antcall>
239

  
240
		<antcall target="batch-build-library">
241
			<param name="bb-library.name" value="${libui}"/>
242
		</antcall>
243

  
244

  
245
		<antcall target="batch-build-library">
246
			<param name="bb-library.name" value="${exceptions}"/>
247
		</antcall>
248

  
249
		<antcall target="batch-build-library">
250
			<param name="bb-library.name" value="${andami}"/>
251
		</antcall>
252

  
253
		<ant dir="${core}" target="import-build-number" inheritAll="false">
254
			<property name="buildNumberFile" location="build.number"/>
255
		</ant>
256
		<antcall target="batch-build-library">
257
			<param name="bb-library.name" value="${core}"/>
258
		</antcall>
259

  
260

  
261
		<antcall target="batch-build-library">
262
			<param name="bb-library.name" value="${projections}"/>
263
		</antcall>
264
		<antcall target="batch-build-library">
265
			<param name="bb-library.name" value="${libraster}"/>
266
		</antcall>
267
		<antcall target="batch-build-library">
268
			<param name="bb-library.name" value="${libdxf}"/>
269
		</antcall>
270
		<antcall target="batch-build-library">
271
			<param name="bb-library.name" value="${driver}"/>
272
		</antcall>
273
		<antcall target="batch-build-library">
274
			<param name="bb-library.name" value="${remote}"/>
275
		</antcall>
276

  
277

  
278

  
279
		<antcall target="batch-build-library">
280
			<param name="bb-library.name" value="${gdbms}"/>
281
		</antcall>
282
		<antcall target="batch-build-library">
283
			<param name="bb-library.name" value="${fmap}"/>
284
		</antcall>
285
		<antcall target="batch-build-library">
286
			<param name="bb-library.name" value="${gvSIG}"/>
287
		</antcall>
288
		<antcall target="batch-build-library">
289
			<param name="bb-library.name" value="${libjcrs}"/>
290
		</antcall>
291
		<antcall target="batch-build-extension">
292
			<param name="bb-extension.name" value="${extjcrs}"/>
293
		</antcall>
226
		<foreach list="${gvSIG_Proyects}" delimiter="," target="batch-build-project" param="bb-project.name"/>
294 227
	</target>
295 228

  
296

  
297

  
298
	<property name="libdwg" location="../libDwg"/>
299
	<property name="extdwg" location="../extDwg"/>
300
	<property name="raster-se" location="../extRasterTools-SE"/>
301
	<property name="event" location="../extAddEventTheme"/>
302
	<property name="appcatalog" location="../appCatalogAndGazetteerClient"/>
303
	<property name="catalog" location="../extCatalogAndGazetteer"/>
304
	<property name="dataloc" location="../extDataLocator"/>
305
	<property name="cad" location="../extCAD"/>
306
	<property name="geoprocessing" location="../extGeoProcessing"/>
307
	<property name="geoprocessingExtensions" location="../extGeoprocessingExtensions"/>
308
	<property name="georeferencing" location="../extGeoreferencing"/>
309
	<property name="jdbc" location="../extJDBC"/>
310
	<property name="oracleSpatial" location="../extOracleSpatial"/>
311
	<property name="oracleSDE" location="../extSDE"/>
312
	<property name="scripting" location="../extScripting"/>
313
    <property name="annotations" location="../extAnnotations"/>
314
	<property name="expressionField" location="../extExpresionField"/>
315
	<property name="wcs" location="../extWCS"/>
316
	<property name="wfs" location="../extWFS2"/>
317
	<property name="wms" location="../extWMS"/>
318
	<property name="centerview" location="../extCenterViewToPoint"/>
319
    <property name="libArcIMS" location="../libArcIMS"/>
320
    <property name="Arcims" location="../extArcims"/>
321
	<property name="extensionLibraryProyects" value="${libdwg},${extdwg},${libArcIMS}"/>
322
	<property name="extensionProyects" value="${raster-se},${event},${appcatalog},${catalog},${dataloc},${cad},${geoprocessing},${geoprocessingExtensions},${georeferencing},${jdbc},${oracleSpatial},${oracleSDE},${scripting},${annotations},${expressionField},${wcs},${wfs},${wms},${centerview},${Arcims}"/>
323

  
324
	<target name="batch-build-extension">
325
		<condition property="bb-extension.dir" value="${bb-extension.name}" else="scripts/voidTarget">
326
			<available file="${bb-extension.name}" type="dir"/>
327
		</condition>
328
	   <ant dir="${bb-extension.dir}" target="import-build-number" inheritAll="false">
329
			<property name="buildNumberFile" location="build.number"/>
330
		</ant>
331
		<ant dir="${bb-extension.dir}" target="batch-build" inheritAll="false">
332
			<property name="debug" value="${debug}"/>
333
			<property name="debuglevel" value="${debuglevel}"/>
334
			<property name="encoding" value="${encoding}"/>
335
			<property name="projectName" value="${bb-extension.name}" />
336
			<property name="JavaSourceVersion" value="${JavaSourceVersion}"/>
337
			<property name="JavaTargetVersion" value="${JavaTargetVersion}"/>
338
		</ant>
339
	</target>
340

  
341
	<target name="extensions" depends="base">
342
		<!--<foreach list="${extensionLibraryProyects}" delimiter="," target="batch-build-library" param="bb-library.name"/>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff