Revision 13514 trunk/extensions/extAnnotations/build.xml

View differences:

build.xml
2 2
    <description>
3 3
        Instala el plugin en Andami
4 4
    </description>
5
	<import file="../binaries/ant/utilities.xml"/>
5 6
  <!-- set global properties for this build -->
6 7
  <property name="src" location="src"/>
7 8
  <property name="build" location="bin"/>
9
  <property name="src-test" location="src-test"/>
10
  <property name="build-test" location="bin-test"/>
8 11
  <property name="dist"  location="dist"/>
9 12
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
10 13
  <property name="plugin" value="com.iver.cit.gvsig.annotation"/>
......
18 21
  <property name="fmap" location="../libFMap"/>
19 22
  <property name="fmapLibs" location="${fmap}/lib"/>
20 23
  <property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/>
21
  <property name="compile-classpath" value="${andami}/andami.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/beans.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/gt2-main.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${installLibDir}/${mainplugin}.jar:${andamiLibs}/JWizardComponent.jar:${andamiLibs}/log4j-1.2.8.jar"/>
22 24

  
23 25
  <target name="init">
24 26
    <echo>
......
61 63

  
62 64
	  </target>
63 65

  
64

  
65

  
66

  
67
	<target name="buildNumber">
68
        <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
69
        <!--      
70
		<propertyfile
71
				file="build.number"
72
				comment="Build Number for ANT. Do not edit!">
73
				<entry  key="build.number" default="0" type="int" operation="+"/>
74
		</propertyfile>
75
		<property file="build.number"/>
76
        -->
77
	</target>
78
	<target name="distribution"
79
		description="increment build number and generate the distribution without the source file">
80
        <echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo>
81
        <!--     -->       
82
	</target>
83

  
84
  <target name="generate-without-source" depends="init"
85
  		description="generate the distribution without the source file">
86
    <!-- Create the distribution directory -->
87
    <mkdir dir="${dist}"/>
88
    <mkdir dir="${dist}/lib"/>
89
  	<mkdir dir="${dist}/images"/>
90

  
91
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
92
    <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" excludes="**/*Driver*,**/*_Legend.*,**/*_Layer.*,**/*_Strategy.*,**/*_Mapping.*,**/*_EditableAdapter.*" includes="com/iver/cit/gvsig/**"/>
93
    <!-- <jar jarfile="${drivers-dir}/sde/sde.jar" basedir="${build}" includes="com/iver/cit/gvsig/fmap/drivers/sde/**"/> -->
94
  	<copy file="config/config.xml" todir="${dist}"/>
95
  	<copy file="build.number" todir="${dist}"/>
96
  	<copy file="config/about.htm" todir="${dist}"/>
97
  	<loadproperties srcFile="build.number"/>
98
  	<replace casesensitive="true"
99
  		file="${dist}/about.htm"
100
  	  	token="#build.number#"
101
  		value="${build.number}"/>
102
    <copy todir="${dist}">
103
    	<fileset dir="config" includes="text*.properties"/>
104
    </copy>
105
    <copy todir="${dist}/lib" failonerror="false">
106
    	<fileset dir="./lib" includes="*.jar,*.zip"/>
107
    	<!-- <fileset dir="." includes=".keystore"/> -->
108
    </copy>
109
  	<copy todir="${dist}/images">
110
  	    	<fileset dir="images" includes="*"/>
111
  	</copy>
112
  	<move todir="${extensionDir}/${plugin}/images">
113
  	  	<fileset dir="${dist}/images" includes="*"/>
114
  	</move>
115
  	<move todir="${extensionDir}/${plugin}">
116
  	  	<fileset dir="${dist}" includes="*"/>
117
  	</move>
118
  	<move todir="${extensionDir}/${plugin}/lib">
119
  	  	<fileset dir="${dist}/lib" includes="**"/>
120
  	</move>
121
  	<jar jarfile="${extensionDir}/${mainplugin}/lib/gvsig-annotation.jar" basedir="./bin" includes="**/*_Legend.*,**/*_Layer.*,**/*_Strategy.*,**/*_Mapping.*,**/*_EditableAdapter.*"/>
122

  
123
  </target>
124

  
125 66
    <target name="batch-build"
126 67
            description="compile the sources, create the jar file"
127 68
            depends="init,compile,create-jar,copy-data-files,move-to-andami">
......
134 75
        
135 76
    <target name="compile" description="compile the source" >
136 77
        <!-- Compile the Java code from ${src} to ${build} -->
137
        <mkdir dir="${build}" />
138
        <javac  srcdir="${src}"
139
            destdir="${build}"
140
            source="${JavaSourceVersion}"
141
            target="${JavaTargetVersion}"
142
            debug="${debug}"
143
            debuglevel="${debuglevel}"
144
            classpath="${compile-classpath}"/>
78
		<mkdir dir="${build}" />
79
		<loadEclipseClasspath project="${basedir}"/>
80
		<gvSIG-javac
81
			classpath="${eclipseClasspath}"	/>
145 82
    </target> 
146 83

  
147 84
    <target name="create-jar"
......
189 126
            description="clean up" >
190 127
        <delete dir="${dist}"/>
191 128
    </target>
129

  
130
	<target name="run-tests" depends="batch-build,compile-tests">
131
		<antcall target="generic-run-tests">
132
			<param name="TestSuite.Name" value="com.iver.cit.gvsig.annotations.AllTests"/>
133
		</antcall>
134
	</target>
192 135
</project>
193 136

  

Also available in: Unified diff