source: versions/3.5.201/Jav_Builder/build.xml @ 11306

Revision 11306, 4.3 KB checked in by anp, 4 years ago (diff)

debug compile javBuilder

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3 * LICENCE[[
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1/CeCILL 2.O
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is utc.fr code.
16 *
17 * The Initial Developer of the Original Code is
18 * Universite de Technologie de Compiegne.
19 *
20 * Portions created by the Initial Developer are Copyright (C) 2005
21 * the Initial Developer. All Rights Reserved.
22 *
23 * Contributor(s):
24 *
25 *
26 * Alternatively, the contents of this file may be used under the terms of
27 * either of the GNU General Public License Version 2 or later (the "GPL"),
28 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * or the CeCILL Licence Version 2.0 (http://www.cecill.info/licences.en.html),
30 * in which case the provisions of the GPL, the LGPL or the CeCILL are applicable
31 * instead of those above. If you wish to allow use of your version of this file
32 * only under the terms of either the GPL or the LGPL, and not to allow others
33 * to use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL, the LGPL or the CeCILL.
38 * ]]LICENCE
39  -->
40
41<project name="jav_BDP" default="all" basedir=".">
42               
43        <!-- Point d'entrée pour personnalisation des propriétés -->
44        <property file="build.properties"/>
45
46        <!-- Dossier de publication du jar. -->
47        <property name="destjardir" value="./lib"/>
48       
49        <!-- Propriétés génériques -->
50        <import file="${basedir}/../Bui_Core/properties.xml"/>
51       
52        <!-- Propriétés spécifiques à ce build -->
53        <property name="jav_builder.classdir" value="${basedir}/classes"/>
54        <property name="jav_builder.jarpath" value="${destjardir}/${jarprefix}_builder.jar"/>
55       
56        <path id="Jav_builder.classpath">
57                <pathelement location="${wspdir}/Jav_FW"/>
58                <pathelement location="${wspdir}/Jav_CO"/>
59                <pathelement location="${wspdir}/Jav_BDP"/>
60                <pathelement location="${wspdir}/Jav_BDP_FS"/>
61                <pathelement location="${wspdir}/Jav_Updt"/>
62                <pathelement location="${wspdir}/Jav_GE"/>
63                <pathelement location="${wspdir}/Jav_I8N/bin"/>
64                <pathelement location="${scxslt.res.jar}"/>
65                <pathelement location="${sci8n.res.jar}"/>
66                <pathelement location="${scxmlserializer.res.jar}"/>
67                <fileset dir="${destjardir}">
68                <include name="*.jar"/>
69            </fileset>
70        </path>
71
72        <target name="all">
73                <delete dir="${jav_builder.classdir}"/>
74                <mkdir dir="${jav_builder.classdir}"/>
75                <mkdir dir="${destjardir}"/>
76                <javac encoding="ISO-8859-1" srcdir="." destdir="${jav_builder.classdir}" debug="${compile.debug}" debuglevel="${compile.debuglevel}" optimize="${compile.optimize}">
77                        <classpath refid="Jav_builder.classpath"/>
78                </javac>
79                <jar destfile="${jav_builder.jarpath}">
80                        <fileset dir="${jav_builder.classdir}"/>
81                        <fileset dir=".">
82                        <exclude name="**/SVN/**"/>
83                                <include name="**/*.png"/>
84                        </fileset>
85                </jar>
86                <delete dir="${jav_builder.classdir}"/>
87        </target>
88
89        <!-- Ajoute les classes compilées à un jar existant. -->
90        <target name="append">
91                <delete dir="${jav_builder.classdir}"/>
92                <mkdir dir="${jav_builder.classdir}"/>
93                <mkdir dir="${destjardir}"/>
94                <javac encoding="ISO-8859-1" srcdir="." destdir="${jav_builder.classdir}" debug="${compile.debug}" debuglevel="${compile.debuglevel}" optimize="${compile.optimize}" excludes="**/CVS/**">
95                        <classpath refid="Jav_builder.classpath"/>
96                </javac>
97                <jar destfile="${jav_builder.jarpath}" update="true">
98                        <fileset dir="${jav_builder.classdir}"/>
99                        <fileset dir=".">
100                                <exclude name="**/SVN/**"/>
101                                <include name="**/*.png"/>
102                        </fileset>
103                </jar>
104                <delete dir="${jav_builder.classdir}"/>
105        </target>
106
107</project>
108
109
110
111
Note: See TracBrowser for help on using the repository browser.