]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.history/build2.xml
Remove duplicate InputChannel inner classes
[simantics/platform.git] / bundles / org.simantics.history / build2.xml
1 <?xml version="1.0"?>
2 <!--
3     Targets:
4        compile
5        build
6        
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
13         
14  -->
15 <project default="clean-build" basedir=".">
16
17         <property name="project.name" value="org.simantics.history" />
18
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" />
24
25         <target name="clean">
26                 <delete dir="${build.dir}" quiet="true" />
27         </target>
28
29         <target name="compile" depends="clean">
30                 <mkdir dir="${classes.dir}" />
31                 <javac 
32                         srcdir="${src.dir}" 
33                         destdir="${classes.dir}" 
34                         classpath="lib/org.simantics.databoard_0.6.5.jar;lib/trove-3.0.2.jar"
35                 >               
36                 </javac>
37         </target>
38
39         <target name="build" depends="compile">
40                 <mkdir dir="${build.dir}" />
41
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" />
45                 
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" />
49                     <manifest>
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}"/>
55                     </manifest>                 
56                 </jar>
57                 
58                 <!-- org.simantics.history_0.1.0_src.zip -->
59                 <zip destfile="${build.dir}/${project.name}_${version}_src.zip" basedir="${src.dir}" />                                                         
60                                 
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" />            
66                 </zip>
67                                 
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}/**" />
70                         
71                 <delete dir="${classes.dir}" quiet="true" />
72         </target>
73
74         <target name="clean-build" depends="clean,build" />
75 </project>