Revision 6355 trunk/extensions/extCenterViewToPoint/build.xml

View differences:

build.xml
5 5
  <!-- set global properties for this build -->
6 6
  <property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/>
7 7
  <property name="src" location="src"/>
8
  <property name="bin" location="bin"/>
8
  <property name="build" location="bin"/>
9 9
  <property name="doc"  location="doc"/>
10 10
  <property name="dist"  location="dist"/>
11 11
  <property name="without_src"  location="without_src"/>
12 12
  <property name="plugin" value="com.iver.gvsig.centerviewpoint"/>
13
	<property name="jarName" value="com.iver.gvsig.centerviewpoint.jar"/>
14
	<property name="andami" location="../_fwAndami"/>
15
	<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
16
	<property name="fmapLibs" location="../libFMap/lib" />
17
	<property name="andamiLibs" location="${andami}/lib" />
18
	<property name="compile-classpath" value="${andamiLibs}/beans.jar:${fmapLibs}/cms.jar"/>
13 19

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

  
65
  <target name="clean" depends="dist"
71
  <target name="clean"
66 72
		description="clean dist directory" >
67 73
    <!-- Clean the distribution directory -->
68 74
    <delete dir="${dist}/src"/>
......
81 87
    <mkdir dir="${without_src}"/>
82 88

  
83 89
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
84
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/>
90
    <jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/>
85 91
    <copy file="config/config.xml" todir="${without_src}"/>
86 92
    <copy todir="${without_src}">
87 93
    	<fileset dir="." includes="text*.properties"/>
......
93 99
    	<fileset dir="${without_src}" includes="**/**"/>
94 100
    </move>
95 101
  </target>
102
	
96 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>
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
			debug="${debug}"
115
			debuglevel="${debuglevel}"
116
			classpath="${compile-classpath}"/>
117
	</target>
118
	
119
	<target name="create-jar"
120
			description="Creates the plugin jar">
121
		<mkdir dir="${dist}"/>
122
	    <jar jarfile="${dist}/${jarName}" basedir="${build}" />
123
	</target>
124

  
125
	<target name="copy-data-files">
126
	    <copy file="config/config.xml" todir="${dist}"/>
127
		<copy todir="${dist}">
128
			<fileset dir="config" includes="text*.properties"/>
129
		</copy>
130
		<copy todir="${dist}/images">
131
			<fileset dir="images/" includes="*"/>
132
		</copy>
133
	</target>
134
	
135
	<target name="move-to-andami">
136
	    <move todir="${extensionsDir}/${plugin}/">
137
	    	<fileset dir="${dist}" includes="**/**"/>
138
    	</move>
139
	</target>
140

  
141

  
97 142
</project>
98 143

  

Also available in: Unified diff