]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph/cc-build.xml
Importing of spreadsheets
[simantics/platform.git] / bundles / org.simantics.scenegraph / cc-build.xml
1 <?xml version="1.0"?>
2 <!--
3     Copyright (c) 2007, 2010 Association for Decentralized Information Management
4     in Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12  -->
13
14 <project name="scenegraph" basedir="." default="jar">
15     <property name="src" value="src"/>
16     <property name="output" value="classes"/>
17     <property name="build.compiler" value="javac1.6"/>
18
19     <property environment="env"/>
20     <property name="compiler" value="${env.JAVA_HOME}/bin/javac"/>
21
22     <target name="compile" depends="create">
23 <!--        <javac destdir="${output}" sourcepath="" source="1.5" target="1.5" compiler="javac1.5" fork="yes">--><!-- executable="${compiler}">-->
24         <javac destdir="${output}" sourcepath="" fork="yes"><!-- executable="${compiler}">-->
25             <src path="${src}"/>
26             <exclude name="org/simantics/scenegraph/eclipse/**"/>
27             <classpath refid="build.classpath"/>
28         </javac>
29     </target>
30
31     <target name="jar" depends="compile">
32         <jar destfile="org.simantics.scenegraph.jar">
33             <fileset dir="${output}"/>
34             <!-- include content of additional jar files -->
35             <zipfileset src="lib/svgSalamander-tiny.jar" includes="**/*.class"/>
36             <zipfileset src="lib/jfreechart-1.0.13.jar" includes="**/*.class, **/*.properties"/>
37         </jar>          
38     </target>
39
40     <target name="clean">
41         <delete>
42            <fileset dir="." includes="*.jar"/>
43         </delete>
44         <delete dir="${output}"/>
45     </target>
46
47     <target name="create" depends="clean">
48         <mkdir dir="${output}"/>
49     </target>
50
51     <path id="build.classpath">
52         <fileset dir="lib">
53             <include name="**/*.jar" />
54         </fileset>
55     </path>
56 </project>