/[debian]/libmicroba-java/trunk/build.xml
ViewVC logotype

Contents of /libmicroba-java/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1421 - (show annotations)
Tue Sep 2 16:23:15 2008 UTC (12 years, 8 months ago) by gregoa
File MIME type: text/xml
File size: 4203 byte(s)
New upstream release.
1 <project name="microba" default="mix_release">
2
3
4 <property name="version" value="0.4.4.3" />
5 <property name="src-pack" value="microba-${version}-sources.jar" />
6 <property name="bin-pack" value="microba-${version}.jar" />
7 <property name="doc-pack" value="microba-${version}-javadoc.jar" />
8 <property name="all-pack" value="microba-${version}-full.zip" />
9 <property name="maven-pack" value="microba-${version}-maven.jar" />
10
11 <path id="compile-classpath">
12 <pathelement location="lib-compiletime/jgraph.jar" />
13 </path>
14
15 <target name="src_release">
16 <mkdir dir="redist" />
17
18 <jar destfile="redist\${src-pack}">
19 <fileset dir="." includes="src/**/*.*" />
20 <fileset dir="." includes="lib-compiletime/**/*.txt" />
21 <fileset dir="." includes="license.txt" />
22 <fileset dir="." includes="readme.txt" />
23 <fileset dir="." includes="change.log.txt" />
24 <fileset dir="." includes="build.xml" />
25 </jar>
26 </target>
27
28 <target name="bin_release">
29 <condition property="javamail.complete">
30 <and>
31 <available classname="javax.activation.DataHandler" />
32 <available classname="javax.mail.Transport" />
33 </and>
34 </condition>
35
36
37 <mkdir dir="compile" />
38 <mkdir dir="redist" />
39
40 <echo>IMPORTANT: Assuming libraries in lib-compiletime directory. </echo>
41 <javac srcdir="src" debug="true" destdir="compile" target="1.4" source="1.4" classpathref="compile-classpath">
42 <exclude name="**/demo/**/*.*" />
43 </javac>
44
45 <jar destfile="redist\${bin-pack}">
46 <fileset dir="compile" includes="**/*.*" />
47 <fileset dir="src/main/java">
48 <include name="**/*.png" />
49 <include name="**/*.properties" />
50 </fileset>
51 <fileset dir="." includes="license.txt" />
52 <manifest>
53 <section name="common">
54 <attribute name="Specification-Title" value="Microba" />
55 <attribute name="Specification-Version" value="${version}" />
56 <attribute name="Specification-Vendor" value="Michael Baranov" />
57 <attribute name="Implementation-Title" value="Microba" />
58 <attribute name="Implementation-Version" value="${version}" />
59 <attribute name="Implementation-Vendor" value="Michael Baranov" />
60 <attribute name="Author" value="Michael Baranov" />
61 </section>
62 <section name="com/michaelbaranov/microba/calendar/CalendarPane.class">
63 <attribute name="Java-Bean" value="True" />
64 </section>
65 <section name="com/michaelbaranov/microba/calendar/DatePicker.class">
66 <attribute name="Java-Bean" value="True" />
67 </section>
68 <section name="com/michaelbaranov/microba/gradient/GradientBar.class">
69 <attribute name="Java-Bean" value="True" />
70 </section>
71 <section name="com/michaelbaranov/microba/gradienteditor/GradientEditor.class">
72 <attribute name="Java-Bean" value="True" />
73 </section>
74 <section name="com/michaelbaranov/microba/marker/MarkerBar.class">
75 <attribute name="Java-Bean" value="True" />
76 </section>
77 <section name="com/michaelbaranov/microba/jgrpah/birdview/Birdview.class">
78 <attribute name="Java-Bean" value="True" />
79 </section>
80
81 </manifest>
82 </jar>
83
84 <delete dir="compile" />
85 </target>
86
87 <target name="doc_release">
88 <mkdir dir="javadoc" />
89 <mkdir dir="redist" />
90
91 <javadoc access="public" author="yes" destdir="javadoc">
92 <fileset dir="src">
93 <include name="**/*.java" />
94 <exclude name="**/demo/**/*.java" />
95 </fileset>
96 </javadoc>
97
98 <jar destfile="redist\${doc-pack}">
99 <fileset dir="javadoc" includes="**/*.*" />
100 </jar>
101
102 <delete dir="javadoc" />
103 </target>
104
105 <target name="mix_release">
106 <antcall target="bin_release" />
107 <antcall target="src_release" />
108 <antcall target="doc_release" />
109
110 <zip destfile="redist\${all-pack}">
111 <fileset dir="redist">
112 <include name="${bin-pack}" />
113 <include name="${doc-pack}" />
114 <include name="${src-pack}" />
115 </fileset>
116 </zip>
117
118 <jar destfile="redist\${maven-pack}">
119 <fileset dir="redist">
120 <include name="${bin-pack}" />
121 <include name="${doc-pack}" />
122 <include name="${src-pack}" />
123 </fileset>
124 <fileset dir=".">
125 <include name="pom.xml"/>
126 </fileset>
127 </jar>
128 </target>
129
130
131
132 </project>

  ViewVC Help
Powered by ViewVC 1.1.26