Revision 5546

View differences:

branches/v10alpha_tecnimap/extensions/extRasterTools/build.xml
6 6
  <property name="src" location="src"/>
7 7
  <property name="build" location="bin"/>
8 8
  <property name="dist"  location="dist"/>
9
  <property name="fmapjar" value="fmap-rasterTools"/>
10
  <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
9
  <property name="andami" location="../_fwAndami"/>
10
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
11
	<property name="andamiJar" location="${andami}/andami.jar"/>
12
	<property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/>
13
	<property name="cmsLibs" location="../libCq CMS for java/lib" />
14
	<property name="fmapLibs" location="../libFMap/lib" />
15
	<property name="andamiLibs" location="${andami}/lib" />
16
	<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapLibs}/fmap.jar:${andamiLibs}/iver-utiles.jar:${cmsLibs}/jecw-0.0.1.jar:${cmsLibs}/jecwcompress-0.1.0.jar:${cmsLibs}/jgdal-0.1.0.jar:${cmsLibs}/jmrsid-0.0.2.jar" />
11 17

  
12 18
  <!--Plugins-->
13
  <property name="pluginRasterTools" value="org.gvsig.rasterTools"/>
19
  <property name="plugin" value="org.gvsig.rasterTools"/>
20
  <property name="jarName" value="${plugin}.jar"/>
14 21

  
15 22
  <target name="init">
16 23
    <!-- Create the time stamp -->
......
19 26
    <mkdir dir="${build}"/>
20 27
    <mkdir dir="${dist}"/>
21 28
  	<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
22
  	<buildnumber/> 
23
  	
29
  	<buildnumber/>
24 30
  </target>
25 31

  
26 32
  <target name="generate-without-source"
......
30 36
    <mkdir dir="${dist}"/>
31 37
		
32 38
    <!-- Jars de las extensiones -->
33
    <jar jarfile="${dist}/${pluginRasterTools}.jar" basedir="${build}" 
39
    <jar jarfile="${dist}/${jarName}" basedir="${build}" 
34 40
    	includes="org/gvsig/rasterTools/**"/>
35 41
  	  	
36 42
  	<!-- Instala extensión salvar a raster -->
37
    <move todir="${extensionDir}/${pluginRasterTools}/">
38
    	<fileset dir="${dist}" includes="${pluginRasterTools}.jar"/>
43
    <move todir="${extensionsDir}/${plugin}/">
44
    	<fileset dir="${dist}" includes="${jarName}"/>
39 45
    </move>
40
  	<copy file="config/config.xml" todir="${extensionDir}/${pluginRasterTools}"/>
41
  	<copy file="config/plugin.dtd" todir="${extensionDir}/${pluginRasterTools}"/>
42
  	<copy todir="${extensionDir}/${pluginRasterTools}">
46
  	<copy file="config/config.xml" todir="${extensionsDir}/${plugin}"/>
47
  	<copy file="config/plugin.dtd" todir="${extensionsDir}/${plugin}"/>
48
  	<copy todir="${extensionsDir}/${plugin}">
43 49
  	    	<fileset dir="." includes="text*.properties"/>
44 50
  	</copy>
45
  	<mkdir dir="${extensionDir}/${pluginRasterTools}/images"/>
46
  	<copy todir="${extensionDir}/${pluginRasterTools}/images">
47
  	    	<fileset dir="./images/" includes="Rectangle.png"/>
51
  	<mkdir dir="${extensionsDir}/${plugin}/images"/>
52
  	<copy todir="${extensionsDir}/${plugin}/images">
53
  	    	<fileset dir="./images/" includes="*"/>
48 54
  	</copy>
49 55
  	
50 56
  </target>
51 57

  
58
	<target name="batch-build"
59
			description="compile the sources, create the jar file"
60
			depends="compile,create-jar,copy-data-files,move-to-andami">
61
	</target>
62

  
63
	<target name="compile" description="compile the source" >
64
		<!-- Compile the Java code from ${src} to ${build} -->
65
		<mkdir dir="${build}" />
66
		<javac  srcdir="${src}"
67
			destdir="${build}"
68
			classpath="${compile-classpath}"/>
69
	</target>
70
	
71
	<target name="create-jar"
72
			description="Creates the plugin jar">
73
		<mkdir dir="${dist}"/>
74
	    <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
75
	</target>
76

  
77
	<target name="copy-data-files">
78
	    <copy file="config/config.xml" todir="${dist}"/>
79
	  	<copy file="config/plugin.dtd" todir="${dist}"/>
80
		<copy todir="${dist}">
81
			<fileset dir="." includes="text*.properties"/>
82
		</copy>
83
		<copy todir="${dist}/images">
84
			<fileset dir="images/" includes="*"/>
85
		</copy>
86
	</target>
87
	
88
	<target name="move-to-andami">
89
	    <move todir="${extensionsDir}/${plugin}/">
90
	    	<fileset dir="${dist}" includes="**/**"/>
91
    	</move>
92
	</target>
93

  
52 94
  <target name="clean"
53 95
        description="clean up" >
54 96
    <!-- Delete the ${build} and ${dist} directory trees -->
55 97
    <delete dir="${dist}"/>
98
    <delete dir="${build}"/>
56 99
  </target>
57 100
</project>
58 101

  

Also available in: Unified diff