svn-gvsig-desktop / tags / v2_0_0_Build_2000 / frameworks / _fwAndami / build.xml @ 47270
History | View | Annotate | Download (5.26 KB)
1 | 7225 | cesar | <project name="_fwAndami" default="create-jar" basedir="."> |
---|---|---|---|
2 | 598 | fernando | <!-- set global properties for this build -->
|
3 | <property name="src" location="src" /> |
||
4 | 13421 | cesar | <property name="src-test" location="src-test"/> |
5 | 4852 | cesar | <property name="build" location="bin" /> |
6 | 13358 | cesar | <property name="build-test" location="bin-test" /> |
7 | 4852 | cesar | <property name="dist" location="dist" /> |
8 | 598 | fernando | <property name="lib" location="lib" /> |
9 | 4906 | cesar | <property name="appDir" location="gvSIG" /> |
10 | <property name="extensiones" location="${appDir}/extensiones" /> |
||
11 | 4852 | cesar | <property name="build-doc" value="build-doc"/> |
12 | 4906 | cesar | <property name="jarName" value="andami.jar"/> |
13 | 7225 | cesar | <property name="debug" value="off" /> |
14 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
15 | 13156 | cesar | <!-- <import file="compile-classpath.xml"/> -->
|
16 | 4852 | cesar | <property name="webapps" location="c:\webservers\jakarta-tomcat-5.0.25\webapps\" /> |
17 | <property name="webdir" location="web" /> |
||
18 | 598 | fernando | <property name="keystore" location="keystore" /> |
19 | 7225 | cesar | <property name="schemas" location="schemas" /> |
20 | 13204 | jmvivo | |
21 | 598 | fernando | <target name="init"> |
22 | <!-- Create the time stamp -->
|
||
23 | <tstamp /> |
||
24 | 7225 | cesar | <echo>
|
25 | Compiling ${ant.project.name}... |
||
26 | </echo>
|
||
27 | 598 | fernando | </target>
|
28 | |||
29 | 4852 | cesar | <target name="batch-build" |
30 | 4906 | cesar | description="compile the sources, create the jar file for Andami framework" |
31 | 7225 | cesar | depends="init,compile,create-jar"> |
32 | 4852 | cesar | </target>
|
33 | 13204 | jmvivo | |
34 | 4852 | cesar | <target name="compile" description="compile the source" > |
35 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
36 | <mkdir dir="${build}" /> |
||
37 | 13156 | cesar | <loadEclipseClasspath project="${basedir}"/> |
38 | 13296 | jmvivo | <gvSIG-javac
|
39 | 13204 | jmvivo | classpath="${eclipseClasspath}"/> |
40 | 13156 | cesar | <!-- <javac srcdir="${src}"
|
41 | 7786 | cesar | destdir="${build}"
|
42 | source="1.4"
|
||
43 | target="1.4"
|
||
44 | debug="${debug}"
|
||
45 | debuglevel="${debuglevel}">
|
||
46 | <classpath refid="_fwAndami.compile-classpath"/>
|
||
47 | 13156 | cesar | </javac> -->
|
48 | 9170 | cesar | <copy todir="${build}"> |
49 | <fileset
|
||
50 | dir="src" |
||
51 | excludes="**/*.java"/> |
||
52 | </copy>
|
||
53 | 13204 | jmvivo | </target>
|
54 | 7225 | cesar | |
55 | <!--Crea un jar con el codigo de andami-->
|
||
56 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
57 | 4852 | cesar | <copy todir="${build}/com/iver/andami/"> |
58 | 5486 | cesar | <fileset dir="config" includes="*.properties" /> |
59 | 4852 | cesar | </copy>
|
60 | 7225 | cesar | <mkdir dir="${appDir}" /> |
61 | <jar destfile="${jarName}" basedir="${build}" /> |
||
62 | </target>
|
||
63 | |||
64 | <target name="clean" description="delete binaries and jar files" > |
||
65 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
66 | <delete dir="${build}"/> |
||
67 | <delete dir="${dist}"/> |
||
68 | <delete file="${jarName}"/> |
||
69 | <delete dir="${appDir}"/> |
||
70 | </target>
|
||
71 | |||
72 | 2863 | fjp | <target name="build-doc" depends="" description="Genera un zip con la documentación"> |
73 | 13204 | jmvivo | <javadoc
|
74 | 2863 | fjp | packagenames="com.iver.andami.*" |
75 | sourcepath="src" |
||
76 | defaultexcludes="yes" |
||
77 | destdir="${build-doc}/andami-api" |
||
78 | windowtitle="andami API"> |
||
79 | </javadoc>
|
||
80 | </target>
|
||
81 | |||
82 | 13204 | jmvivo | |
83 | 598 | fernando | <!-- Genera las clases a partir de los esquemas -->
|
84 | <target name="generate-andami-config-classes"> |
||
85 | 13204 | jmvivo | |
86 | 598 | fernando | <delete>
|
87 | <fileset dir="${src}" includes="com/iver/andami/config/generate/**" /> |
||
88 | </delete>
|
||
89 | <java classname="org.exolab.castor.builder.SourceGenerator"> |
||
90 | <classpath>
|
||
91 | <pathelement path="lib/castor-0.9.5.3-xml.jar" /> |
||
92 | 3298 | caballero | <pathelement path="lib/xerces_2_5_0.jar" /> |
93 | 598 | fernando | </classpath>
|
94 | <arg value="-i" /> |
||
95 | <arg value="${schemas}/andami-config.xsd" /> |
||
96 | <arg value="-package" /> |
||
97 | <arg value="com.iver.andami.config.generate" /> |
||
98 | <arg value="-dest" /> |
||
99 | <arg value="${src}" /> |
||
100 | </java>
|
||
101 | </target>
|
||
102 | |||
103 | <!-- Genera las clases a partir de los esquemas -->
|
||
104 | <target name="generate-plugin-config"> |
||
105 | <delete>
|
||
106 | <fileset dir="${src}" includes="com/iver/andami/plugins/config/generate/**" /> |
||
107 | </delete>
|
||
108 | <java classname="org.exolab.castor.builder.SourceGenerator"> |
||
109 | <classpath>
|
||
110 | <pathelement path="lib/castor-0.9.5.3-xml.jar" /> |
||
111 | 3298 | caballero | <pathelement path="lib/xerces_2_5_0.jar" /> |
112 | 598 | fernando | </classpath>
|
113 | <arg value="-i" /> |
||
114 | <arg value="${schemas}/plugin-config.xsd" /> |
||
115 | <arg value="-package" /> |
||
116 | <arg value="com.iver.andami.plugins.config.generate" /> |
||
117 | <arg value="-dest" /> |
||
118 | <arg value="${src}" /> |
||
119 | </java>
|
||
120 | </target>
|
||
121 | |||
122 | <!-- Genera las clases a partir de los esquemas -->
|
||
123 | <target name="generate-plugin-persistence"> |
||
124 | <delete>
|
||
125 | <fileset dir="${src}" includes="com/iver/andami/persistence/generate/**" /> |
||
126 | </delete>
|
||
127 | <java classname="org.exolab.castor.builder.SourceGenerator"> |
||
128 | <classpath>
|
||
129 | <pathelement path="lib/castor-0.9.5.3-xml.jar" /> |
||
130 | 3298 | caballero | <pathelement path="lib/xerces_2_5_0.jar" /> |
131 | 598 | fernando | </classpath>
|
132 | <arg value="-i" /> |
||
133 | <arg value="${schemas}/plugin-persistence.xsd" /> |
||
134 | <arg value="-package" /> |
||
135 | <arg value="com.iver.andami.persistence.generate" /> |
||
136 | <arg value="-dest" /> |
||
137 | <arg value="${src}" /> |
||
138 | </java>
|
||
139 | |||
140 | </target>
|
||
141 | 13204 | jmvivo | |
142 | 598 | fernando | <!--Copia los jar que hay en el subdirectorio lib al directorio web-->
|
143 | 7225 | cesar | <target name="move-jars" description="Pone todos los jar en el directorio web" depends="create-jar"> |
144 | 598 | fernando | <copy todir="${webdir}"> |
145 | <fileset dir="lib" includes="**/*" /> |
||
146 | </copy>
|
||
147 | </target>
|
||
148 | |||
149 | <!--Comprime las extensiones en un zip y las mete en el directorio web-->
|
||
150 | <target name="extensiones" description="Copia el directorio de extensiones"> |
||
151 | <zip zipfile="${webdir}/extensiones.zip"> |
||
152 | <fileset dir="${extensiones}" includes="**/*" excludes="CVS" excludesfile=".cvsignore" /> |
||
153 | </zip>
|
||
154 | </target>
|
||
155 | 4852 | cesar | |
156 | 13421 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
157 | 13358 | cesar | <antcall target="generic-run-tests"> |
158 | <param name="TestSuite.Name" value="com.iver.andami.AllTests"/> |
||
159 | </antcall>
|
||
160 | </target>
|
||
161 | 598 | fernando | </project> |