git_sitools_idoc / flarecast / workspace / fr.cnes.sitools.extensions / build / targets.xml @ master
1 | d2a8c3fd | Marc NICOLAS | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|---|---|---|
2 | <!-- ===================================
|
||
3 | == Copyright 2010-2014 CNES - CENTRE NATIONAL d'ETUDES SPATIALES
|
||
4 | ==
|
||
5 | == This file is part of SITools2.
|
||
6 | ==
|
||
7 | == SITools2 is free software: you can redistribute it and/or modify
|
||
8 | == it under the terms of the GNU General Public License as published by
|
||
9 | == the Free Software Foundation, either version 3 of the License, or
|
||
10 | == (at your option) any later version.
|
||
11 | ==
|
||
12 | == SITools2 is distributed in the hope that it will be useful,
|
||
13 | == but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
14 | == MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
15 | == GNU General Public License for more details.
|
||
16 | ==
|
||
17 | == You should have received a copy of the GNU General Public License
|
||
18 | == along with SITools2. If not, see <http://www.gnu.org/licenses/>.
|
||
19 | ==================================== -->
|
||
20 | <path id="compile.classpath"> |
||
21 | <pathelement location="${comp.wp.dir}/org.restlet.patched/org.restlet.patched_1.0.4.jar"/> |
||
22 | <pathelement location="${comp.cp.dir}/fr.cnes.sitools.core.jar" /> |
||
23 | <pathelement location="${comp.lib.dir}/javax.measure_0.9.5/javax.measure_0.9.5.jar" /> |
||
24 | <path refid="restlet_jse_2_0_5_patched" /> |
||
25 | <path refid="sitools_libraries" /> |
||
26 | </path>
|
||
27 | |||
28 | <target name="prepare-extensions"> |
||
29 | <!-- Creation des repertoires dist.dir et out.jar.dir -->
|
||
30 | <mkdir dir="${dist.dir}" /> |
||
31 | </target>
|
||
32 | |||
33 | |||
34 | <target name="compile-extensions"> |
||
35 | <javac srcdir="./src" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}" encoding="${encoding}" includeAntRuntime="false"> |
||
36 | <classpath refid="compile.classpath" /> |
||
37 | </javac>
|
||
38 | </target>
|
||
39 | |||
40 | <target name="jar-extensions"> |
||
41 | <delete file="modules.jar" /> |
||
42 | <property name="version.num" value="1.00" /> |
||
43 | <buildnumber file="build.num" /> |
||
44 | <jar jarfile="${dist.dir}/${project.name}.jar" basedir="./src" includes="**/*.class"> |
||
45 | <metainf dir="./src/META-INF"> |
||
46 | <include name="**/*Helper"/> |
||
47 | </metainf>
|
||
48 | </jar>
|
||
49 | </target>
|
||
50 | |||
51 | <target name="cleanup-extensions"> |
||
52 | <delete>
|
||
53 | <fileset dir="." includes="**/*.class" /> |
||
54 | </delete>
|
||
55 | |||
56 | </target>
|
||
57 | |||
58 | <!--<target name="deploy-jar-extensions"> -->
|
||
59 | <!-- Deploiement du JAR de l'extension -->
|
||
60 | <!-- <echo message="- Deploiement du JAR de l'extension -" />
|
||
61 | <copy todir="${out.jar.dir}">
|
||
62 | <fileset dir="${dist.lib.dir}" />
|
||
63 | </copy>
|
||
64 | |||
65 | </target> --> |