Update of the localization templates
[scilab.git] / scilab / modules / javasci / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2007 - INRIA - Allan CORNET
5  * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12  *
13  -->
14 <project name="javasci" default="build-examples">
15   <import file="../../build.incl.xml"/>
16   <property name="library-v1.name" value="${library.javasci-v1.name}"/>
17   <property name="library.name" value="${library.javasci.name}"/>
18   <property name="library.title" value="Scilab Java API"/>
19   <property name="junit.forkMode" value="perTest"/>
20   
21   <description>
22     Build the Java/Scilab connecter (javasci) module
23   </description>
24   <!-- Compile sources -->
25   <target name="compile-v1" description="Build sources of Javasci v1" depends="init">
26     <mkdir dir="${classes.dir}/v1/"/>
27     <javac srcdir="src/java/" destdir="${classes.dir}/v1/" classpathref="compile.classpath" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" includes="javasci/**/*.java" source="6" target="6"/>
28   </target>
29   <!-- Compile sources -->
30   <target name="compile" description="Build sources of Javasci v2" depends="init">
31     <mkdir dir="${classes.dir}/v2"/>
32     <javac srcdir="src/java/" destdir="${classes.dir}/v2" classpathref="compile.classpath" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" includes="org/**/*.java" source="6" target="6"/>
33   </target>
34   <property name="examples.classes.dir" location="${build.dir}/examples/"/>
35   <target name="build-examples" description="Build the examples" depends="jar, jar-v1">
36     <property name="examples.src.dir" location="examples/others/"/>
37     <mkdir dir="${examples.classes.dir}"/>
38     <javac srcdir="${examples.src.dir}" destdir="${examples.classes.dir}" classpath="${library.javasci.dir}/${library.javasci-v1.name}" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" source="6" target="6"/>
39   </target>
40   <target name="clean-examples" description="clean examples">
41     <delete dir="${examples.classes.dir}"/>
42   </target>
43   <target name="jar-v1" description="Build the jar file" depends="compile-v1">
44     <manifestclasspath property="manifest-v1.classpath" jarfile="${build.jar.dir}/${library-v1.name}">
45       <classpath location="${library.jvm.dir}/${library.jvm.name}"/>
46     </manifestclasspath>
47     <jar destfile="${build.jar.dir}/${library-v1.name}" basedir="${classes.dir}/v1/">
48       <manifest>
49         <attribute name="SciAbstractDataType" value="javasci.SciAbstractDataType"/>
50         <attribute name="SciBooleanArray" value="javasci.SciBooleanArray"/>
51         <attribute name="SciComplexArray" value="javasci.SciComplexArray"/>
52         <attribute name="SciDoubleArray" value="javasci.SciDoubleArray"/>
53         <attribute name="SciString" value="javasci.SciString"/>
54         <attribute name="BadDataArgumentException" value="javasci.BadDataArgumentException"/>
55         <attribute name="SciAbstractArray" value="javasci.SciAbstractArray"/>
56         <attribute name="SciBoolean" value="javasci.SciBoolean"/>
57         <attribute name="SciComplex" value="javasci.SciComplex"/>
58         <attribute name="SciDouble" value="javasci.SciDouble"/>
59         <attribute name="Scilab" value="javasci.Scilab"/>
60         <attribute name="SciStringArray" value="javasci.SciStringArray"/>
61         <attribute name="ClassPath" value="javasci.ClassPath"/>
62         <attribute name="LibraryPath" value="javasci.LibraryPath"/>
63         <attribute name="Class-Path" value="${manifest-v1.classpath}"/>
64       </manifest>
65     </jar>
66   </target>
67   <!-- Create the jar -->
68   <target name="jar" description="Build the jar file" depends="compile">
69     <manifestclasspath property="manifest.classpath" jarfile="${build.jar.dir}/${library.name}">
70       <classpath location="${library.jvm.dir}/${library.jvm.name}"/>
71     </manifestclasspath>
72     <jar destfile="${build.jar.dir}/${library.name}" basedir="${classes.dir}/v2/">
73       <manifest>
74         <attribute name="Class-Path" value="${manifest.classpath}"/>
75       </manifest>
76     </jar>
77   </target>
78 </project>