Revision 39392 trunk/extensions/extNormalization/build.xml

View differences:

build.xml
1
<project name="extNormalization" default="move-andami" basedir=".">
2
	<description>
3
        Install the Normalization plugin
4
    </description>
1
<project name="extNormalization" default="create-dist" basedir=".">
5 2

  
6 3
	<!-- set global properties for this build -->
7 4
	<property name="src" location="src" />
......
12 9
	<property name="lib" value="lib" />
13 10
	<property name="plugin" value="org.gvsig.normalization" />
14 11
	<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" />
15
	<!--<import file="../binaries/ant/utilities.xml" /> -->
16 12

  
13
	<target name="batch-build" depends="init, compile, copy-data-files, move-andami">
14
	</target>
15
	
16
	<target name="create-dist" depends="init, create-jar, copy-data-files, move-andami">
17
	</target>
18
	
19
	<target name="init" depends="clean">
20
		<mkdir dir="${build}" />
21
		<mkdir dir="${dist}" />
22
		<mkdir dir="${dist}/${plugin}" />
23
		<mkdir dir="${dist}/${plugin}/images" />
24
		<mkdir dir="${dist}/${plugin}/lib" />
25
		<mkdir dir="${dist}/${plugin}/about" />
26
	</target>
17 27

  
18
	<!-- ================================= 
19
			          target: distribution          
20
			         ================================= -->
21
	<target name="create-dist" depends="clean-dist" description="generate the distribution without the source file">
22

  
23
		<echo>Creating extension JAR and others folders</echo>
28
	<target name="compile">
29
		<loadEclipseClasspath project="${basedir}"/>
30
		<gvSIG-javac classpath="${eclipseClasspath}" />
31
	</target>
32
	
33
	<target name="create-jar"> 
24 34
		<jar jarfile="${dist}/${plugin}/${lib}/${plugin}.jar" basedir="${build}" />
25
		<copy file="config/config.xml" todir="${dist}/${plugin}/" />
35
	</target>
26 36

  
37
	<target name="copy-data-files">
38
		<copy file="config/config.xml" todir="${dist}/${plugin}/" />
27 39
		<copy todir="${dist}/${plugin}/">
28 40
			<fileset dir="config" includes="text*.properties" />
29 41
		</copy>
......
40 52
		<copy todir="${dist}/${plugin}/about">
41 53
			<fileset dir="about/" includes="**/**" />
42 54
		</copy>
43
		<echo>Created dist ended</echo>
44 55
	</target>
56
	
57
	<target name="move-andami">
58
			<copy todir="${extension-dir}/">
59
				<fileset dir="${dist}" includes="**/**" />
60
			</copy>
61
	</target>
45 62

  
46
	<!-- ================================= 
47
				          target: distribution          
48
				         ================================= -->
63
	
49 64
	<target name="create-dist-bn" depends="build-number,create-dist" description="generate the distribution without the source file with BN">
50 65
		<echo>Changing de Build Number</echo>
51 66

  
......
71 86

  
72 87
	</target>
73 88

  
74
	<!-- ================================= 
75
		          target: move andami            
76
		         ================================= -->
77
	<target name="move-andami" depends="create-dist" description="Move andami the extension">
78
		<echo>copy to Andami</echo>
79
		<copy todir="${extension-dir}/">
80
			<fileset dir="${dist}" includes="**/**" />
81
		</copy>
82
	</target>
89
	
90
	
83 91

  
84
	<!-- ================================= 
85
	          target: change build number             
86
	         ================================= -->
92
	
87 93
	<target name="build-number" description="up build number">
88 94
		<propertyfile file="build.number" comment="Build number for ANT. Do not edit!">
89 95
			<entry key="build.number" default="0" type="int" operation="+" />
......
91 97
		<property file="build.number" />
92 98
	</target>
93 99

  
94
	<!-- ================================= 
95
	          target: delete dist folder          
96
	         ================================= -->
100
	
97 101
	<target name="clean" description="clean up">
98 102
		<echo>Delete dist folder</echo>
99 103
		<delete dir="${dist}" />
100 104
	</target>
101 105

  
102
	<!-- ================================= 
103
          target: make the dist folder             
104
         ================================= -->
105
	<target name="clean-dist" depends="clean" description="Cleans the dist folder and prepares it to receive the extension files">
106
		<echo>Creating dist folder</echo>
107
		<mkdir dir="${dist}" />
108
		<mkdir dir="${dist}/${plugin}" />
109
		<mkdir dir="${dist}/${plugin}/images" />
110
		<mkdir dir="${dist}/${plugin}/lib" />
111
		<mkdir dir="${dist}/${plugin}/about" />
112
	</target>
113

  
114
	<!-- ================================= 
115
	          target: generate installer            
116
	         ================================= -->
106
	
107
	
108
	
117 109
	<target name="generate-installer" depends="create-dist-bn" description="generate the extension installer for win, linux and mac">
118 110
		<ant antfile="install/buildExt.xml" target="init">
119 111
			<property name="basedir" location="install" />

Also available in: Unified diff