7 Build: Creates the following files
8 org.simantics.history-0.5.zip
9 org.simantics.history-0.5-src.zip
10 org.simantics.history-0.5-examples.zip
11 org.simantics.history-0.5.jar
12 org.simantics.history-0.5-project.zip
15 <project default="clean-build" basedir=".">
17 <property name="project.name" value="org.simantics.history" />
19 <property name="version" value="1.0.0" />
20 <property name="src.dir" value="src" />
21 <property name="build.dir" value="build" />
22 <property name="classes.dir" value="tmp" />
23 <property name="javadoc.dir" value="javadoc" />
26 <delete dir="${build.dir}" quiet="true" />
29 <target name="compile" depends="clean">
30 <mkdir dir="${classes.dir}" />
33 destdir="${classes.dir}"
34 classpath="lib/org.simantics.databoard_0.6.5.jar;lib/trove-3.0.2.jar"
39 <target name="build" depends="compile">
40 <mkdir dir="${build.dir}" />
42 <delete dir="${javadoc.dir}" quiet="true" />
43 <mkdir dir="${javadoc.dir}" />
44 <javadoc sourcepath="src" destdir="${javadoc.dir}" classpath="{classes.dir};lib/org.simantics.databoard_0.6.5.jar;lib/trove-3.0.2.jar" access="public" />
46 <!-- org.simantics.history_0.1.0.jar -->
47 <jar destfile="${build.dir}/${project.name}_${version}.jar" basedir="${classes.dir}">
48 <fileset dir="${src.dir}" includes="**/*.html,**/*.htm,**/*.txt,**/*.png,**/*.dbb,**/*.dbv,**/*.dbt,**/*.txt" />
50 <!-- Who is building this jar? -->
51 <attribute name="Built-By" value="${user.name}"/>
52 <attribute name="Implementation-Vendor" value="VTT"/>
53 <attribute name="Implementation-Title" value="org.simantics.history"/>
54 <attribute name="Implementation-Version" value="${version}"/>
58 <!-- org.simantics.history_0.1.0_src.zip -->
59 <zip destfile="${build.dir}/${project.name}_${version}_src.zip" basedir="${src.dir}" />
61 <!-- org.simantics.history_0.1.0.zip Examples -->
62 <zip destfile="${build.dir}/${project.name}-${version}.zip">
63 <fileset dir="." includes="doc/**,lib/*.jar,examples/**,testcases/**,${javadoc.dir}/**" />
64 <fileset dir="${build.dir}" includes="${project.name}_${version}_src.zip" />
65 <fileset dir="${build.dir}" includes="${project.name}_${version}.jar" />
68 <!-- org.simantics.history_0.1.0_project.zip The Project (contains all the project files) -->
69 <zip destfile="${build.dir}/${project.name}_${version}_project.zip" basedir="." excludes="${build.dir}/**,**/_svn/**,bin/**,${classes.dir}/**" />
71 <delete dir="${classes.dir}" quiet="true" />
74 <target name="clean-build" depends="clean,build" />