Revision 4852 trunk/libraries/libCorePlugin/build.xml

View differences:

build.xml
3 3
        Instala el plugin
4 4
    </description>
5 5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="plugin" value="com.iver.core"/>
10
  <property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/>
6
	<property name="src" location="src"/>
7
	<property name="lib" location="../_fwAndami/lib"/>
8
	<property name="build" location="bin"/>
9
	<property name="dist"  location="dist"/>
10
	<property name="plugin" value="com.iver.core"/>
11
	<property name="targetDir" location="../_fwAndami/gvSIG/extensiones"/>
12
	<property name="compile-classpath" value="${lib}/castor-0.9.5.3-xml.jar:${lib}/iver-utiles.jar:${lib}/log4j-1.2.8.jar:../_fwAndami/andami.jar" />
13
	
11 14

  
12 15
  <target name="init">
13 16
    <!-- Create the time stamp -->
......
41 44
    </move>
42 45
  </target>
43 46

  
44
  <target name="clean"
45
        description="clean up" >
46
    <!-- Delete the ${build} and ${dist} directory trees -->
47
    <delete dir="${build}"/>
48
    <delete dir="${dist}"/>
49
  </target>
47
    <target name="batch-build"
48
    	    description="compile the sources, create the jar file"
49
    	    depends="compile,create-jar,copy-data-files,move-to-andami">
50
    </target>
51
	
52
    <target name="compile" description="compile the source" >
53
        <!-- Compile the Java code from ${src} to ${build} -->
54
    	<mkdir dir="${build}" />
55
        <javac srcdir="${src}"
56
               destdir="${build}"
57
               classpath="${compile-classpath}"/>
58
	</target>
59
	
60
	<target name="copy-data-files">
61
		<copy file="config.xml" todir="${dist}"/>
62
		<copy todir="${dist}">
63
			<fileset dir="." includes="text*.properties"/>
64
		</copy>
65
		<copy todir="${dist}/images">
66
			<fileset dir="images/" includes="*"/>
67
		</copy>
68
		<copy todir="${dist}">
69
			<fileset dir="." includes="*.jar"/>
70
		</copy>
71
    </target>
72
	
73
	<target name="move-to-andami" description="Moves the build directory to andami">
74
	    <move todir="${targetDir}/${plugin}/">
75
	    	<fileset dir="${dist}" includes="**/**"/>
76
	    </move>
77
	</target>
78
	
79
	<target name="create-jar" description="Crea el jar de la aplicacion">
80
		<mkdir dir="${dist}"/>
81
		<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
82
	</target>
83
	
84
	<target name="clean" description="clean up" >
85
		<!-- Delete the ${build} and ${dist} directory trees -->
86
		<delete dir="${build}"/>
87
		<delete dir="${dist}"/>
88
	</target>
89

  
50 90
</project>
51 91

  

Also available in: Unified diff