Revision 4864 trunk/libraries/libRemoteServices/build.xml

View differences:

build.xml
1 1
<project name="RemoteClient" default="dist" basedir=".">
2
    <description>
2
	<description>
3 3
        Genera el jar con RemoteClient y sus dependencias
4 4
    </description>
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="lib"  location="lib"/>
10
  <property name="jar" value="remote-clients"/>
11
  <property name="targetDir" location="."/>
12
  <property name="targetDir2" location="../libFMap/lib"/>
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="lib" location="lib" />
10
	<property name="andamiJar" location="../_fwAndami/andami.jar" />
11
	<property name="andamiLibs" location="../_fwAndami/lib" />
12
	<property name="fmapLibs" location="../libFMap" />
13
	<property name="jar" value="remote-clients" />
14
	<property name="targetDir" location="../libFMap/lib" />
15
	<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar:${lib}/junit.jar" />
13 16

  
14
    <target name="init">
15
    <!-- Create the time stamp -->
16
    <tstamp/>
17
    <!-- Create the build directory structure used by compile -->
18
    <mkdir dir="${build}"/>
19
  </target>
17
	<target name="init">
18
		<!-- Create the time stamp -->
19
		<tstamp />
20
		<!-- Create the build directory structure used by compile -->
21
		<mkdir dir="${build}" />
22
	</target>
20 23

  
21
  <target name="compile" depends="init"
22
        description="compile the source " >
23
    <!-- Compile the java code from ${src} into ${build} 
24
    <javac srcdir="${src}" destdir="${build}"/>-->
25
  </target>
24
	<target name="dist" depends="init" description="generate the distribution">
25
		<!-- Create the distribution directory -->
26
		<mkdir dir="${dist}" />
26 27

  
27
  <target name="dist" depends="compile"
28
        description="generate the distribution" >
29
    <!-- Create the distribution directory -->
30
    <mkdir dir="${dist}"/>
28
		<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
29
		<jar jarfile="${dist}/${jar}.jar" basedir="${build}" />
30
		<jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif" update="true" />
31 31

  
32
    <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file --> 
33
    <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
34
    <jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" />
32
		<move todir="${targetDir}/">
33
			<fileset dir="${dist}" includes="**/**" />
34
		</move>
35
		<copy todir="${targetDir}/">
36
			<fileset dir="${lib}" includes="*.jar" />
37
		</copy>
38
	</target>
35 39

  
36
    <move todir="${targetDir2}/">
37
    	<fileset dir="${dist}" includes="**/**"/>
38
    </move>
39
  	<copy todir="${targetDir2}/">
40
  	    	<fileset dir="${lib}" includes="*.jar"/>
41
  	</copy>
42
 <!--   <move todir="${targetDir}/">
43
     	<fileset dir="${dist}" includes="**/**"/>
44
     </move>-->
45
  </target>
40
	<target name="batch-build" description="compile the sources, create the jar file" depends="compile,create-jar,move-to-fmap">
41
	</target>
46 42

  
47
  <target name="clean"
48
        description="clean up" >
49
    <!-- Delete the ${build} and ${dist} directory trees -->
50
    <delete dir="${build}"/>
51
    <delete dir="${dist}"/>
52
  </target>
43
	<target name="compile" description="compile the source">
44
		<!-- Compile the Java code from ${src} to ${build} -->
45
		<mkdir dir="${build}" />
46
		<javac	srcdir="${src}"
47
				destdir="${build}"
48
				classpath="${compile-classpath}"
49
				excludes="**/Tests/*.java" />
50
	</target>
51

  
52
	<target name="move-to-fmap" description="Move jars and required libraries to fmap">
53
		<copy todir="${targetDir}">
54
			<fileset dir="./lib" includes="*.jar" />
55
		</copy>
56
		<copy todir=".">
57
			<fileset dir="${dist}" includes="${jar}.jar" />
58
		</copy>
59
		<move todir="${targetDir}/">
60
			<fileset dir="${dist}" includes="**/**" />
61
		</move>
62
	</target>
63

  
64
	<target name="create-jar" description="Crea el jar de la aplicacion">
65
		<mkdir dir="${dist}" />
66
		<jar jarfile="${dist}/${jar}.jar" basedir="${build}" />
67
		<jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*" update="true" />
68
	</target>
69

  
70
	<target name="clean" description="clean up">
71
		<!-- Delete the ${build} and ${dist} directory trees -->
72
		<delete dir="${build}" />
73
		<delete dir="${dist}" />
74
	</target>
53 75
</project>
54 76

  

Also available in: Unified diff