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