Revision 5704

View differences:

trunk/extensions/extDataLocator/build.xml
3 3
        Instala el plugin del Localizador por atributo en Andami.
4 4
    </description>
5 5
  <!-- set global properties for this build -->
6
  <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/>
6
  <property name="andami" location="../_fwAndami" />
7
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
7 8
  <property name="src" location="src"/>
8
  <property name="bin" location="bin"/>
9
  <property name="build" location="bin"/>
9 10
  <property name="doc"  location="doc"/>
10 11
  <property name="dist"  location="dist"/>
11 12
  <property name="without_src"  location="without_src"/>
12 13
  <property name="plugin" value="com.iver.gvsig.datalocator"/>
14
	<property name="mainplugin" value="com.iver.cit.gvsig"/>
15
	<property name="fmapLibs" location="../libFMap/lib" />
16
	<property name="andamiLibs" location="${andami}/lib" />
17
	<property name="andamiJar" location="${andami}/andami.jar"/>
18
	<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
19
	<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar" />
13 20

  
14 21
  <target name="init">
15 22
    <!-- Create the time stamp -->
......
45 52
    <copy file="config/config.xml" todir="${dist}/config"/>
46 53
    <copy file="build.xml" todir="${dist}"/>
47 54
    <copy todir="${dist}">
48
    	<fileset dir="." includes="text*.properties"/>
55
    	<fileset dir="config" includes="text*.properties"/>
49 56
    </copy>
50
    <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
57
<!--    <copy todir="${dist}/bin/com/iver/gvsig/datalocator">
51 58
    	<fileset dir="." includes="text*.properties"/>
52
    </copy>
53
    <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${bin}"/>
59
    </copy> -->
60
    <jar jarfile="${dist}/bin/com/iver/gvsig/datalocator/${plugin}.jar" basedir="${build}"/>
54 61
    <copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/datalocator"/>
55 62
    <copy todir="${dist}/bin/com/iver/gvsig/datalocator/images">
56 63
      <fileset dir="images"/>
......
62 69
    />
63 70
  </target>
64 71

  
65
  <target name="clean" depends="dist"
72
  <target name="clean-orig"
66 73
		description="clean dist directory" >
67 74
    <!-- Clean the distribution directory -->
68 75
    <delete dir="${dist}/src"/>
......
71 78
    <delete dir="${dist}/images"/>
72 79
    <delete dir="${dist}/config"/>
73 80
  	<delete file="${dist}/build.xml"/>
74
  	<delete>
81
  	<delete failonerror="false">
75 82
        <fileset dir="${dist}" includes="**/*.properties"/>
76 83
    </delete>
77 84
  </target>
78 85
	
79
  <target name="generate-without-source" depends="clean" description="generate the distribution without the source file" >
86
  <target name="generate-without-source" depends="clean-orig" description="generate the distribution without the source file" >
80 87
    <!-- Create the distribution directory -->
81 88
    <mkdir dir="${without_src}"/>
82 89

  
83 90
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
84
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
91
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/>
85 92
    <copy file="config/config.xml" todir="${without_src}"/>
86 93
    <copy todir="${without_src}">
87
    	<fileset dir="." includes="text*.properties"/>
94
    	<fileset dir="config" includes="text*.properties"/>
88 95
    </copy>
89 96
    <copy todir="${without_src}/images">
90 97
    	<fileset dir="images/" includes="*"/>
91 98
    </copy>
92
    <move todir="${extensions-dir}/${plugin}/">
99
    <move todir="${extensionsDir}/${plugin}/">
93 100
    	<fileset dir="${without_src}" includes="**/**"/>
94 101
    </move>
95 102
  </target>
103
	
104
	<target name="batch-build"
105
			description="compile the sources, create the jar file"
106
			depends="compile,create-jar,copy-data-files,move-to-andami">
107
	</target>
96 108

  
109
	<target name="compile" description="compile the source" >
110
		<!-- Compile the Java code from ${src} to ${build} -->
111
		<mkdir dir="${build}" />
112
		<javac  srcdir="${src}"
113
			destdir="${build}"
114
			classpath="${compile-classpath}"/>
115
	</target>
116
	
117
	<target name="create-jar"
118
			description="Creates the plugin jar">
119
		<mkdir dir="${dist}"/>
120
	    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
121
	</target>
122

  
123
	<target name="copy-data-files">
124
	    <copy file="config/config.xml" todir="${dist}"/>
125
		<copy todir="${dist}">
126
			<fileset dir="config" includes="text*.properties"/>
127
		</copy>
128
		<copy todir="${dist}/images">
129
			<fileset dir="images/" includes="*"/>
130
		</copy>
131
	</target>
132
	
133
	<target name="move-to-andami">
134
	    <move todir="${extensionsDir}/${plugin}/">
135
	    	<fileset dir="${dist}" includes="**/**"/>
136
	    </move>
137
	</target>
138
	
139
	<target name="clean"
140
	      description="clean up" >
141
		<!-- Delete the ${build} and ${dist} directory trees -->
142
		<delete dir="${dist}"/>
143
		<delete dir="${build}"/>
144
	</target>
97 145
</project>
98 146

  

Also available in: Unified diff