root/Vulcan/trunk/build.xml

Revision 3934, 3.1 kB (checked in by mariusz, 3 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Copyright (c) 2008-2009,
4 
5  Knowledge Hives Sp. z o. o.
6  http://www.knowledgehives.com/
7 
8  All rights reserved.
9
10  Redistribution and use in source and binary forms, with or without
11  modification, are permitted provided that the following conditions are met:
12
13   * Redistributions of source code must retain the above copyright notice,
14     this list of conditions and the following disclaimer.
15   * Redistributions in binary form must reproduce the above copyright notice,
16     this list of conditions and the following disclaimer in the documentation
17     and/or other materials provided with the distribution.
18   * Neither the name of Knowledge Hives Sp. z o. o. nor the names of its
19     contributors may be used to endorse or promote products derived from this
20     software without specific prior written permission.
21
22  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
26  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32-->
33
34<project name="vulcan" default="build">
35        <property name="build" location="build" />
36        <property name="dist" value="dist" />
37        <property name="lib" location="lib" />
38        <property name="src" location="src" />
39
40        <property file="${basedir}/build.properties" />
41
42        <path id="classpath">
43                <fileset dir="${lib}" includes="*.jar" />
44        </path>
45
46        <target name="build">
47                <echo message="${project.name}" />
48
49                <mkdir dir="${build}/classes" />
50                <javac srcdir="${src}" destdir="${build}/classes" encoding="UTF-8" deprecation="true" debug="on" target="1.5" source="1.5">
51                        <classpath refid="classpath" />
52                </javac>
53        </target>
54
55        <target name="dist" depends="build">
56                <echo message="${project.name}" />
57
58                <mkdir dir="${dist}" />
59                <jar basedir="${build}/classes" destfile="${dist}/${project.name}-${project.version}.jar" />
60               
61                <javadoc destdir="${dist}/docs/api" author="true" version="true" use="true">
62                        <classpath refid="classpath" />
63                        <packageset dir="src" />
64                </javadoc>
65
66                <zip destfile="${dist}/${project.name}-${project.version}.zip">
67                        <zipfileset dir="${dist}/docs" prefix="${project.name}-${project.version}/docs" />
68                        <zipfileset dir="${dist}" includes="*.jar" prefix="${project.name}-${project.version}" />
69                        <zipfileset dir="${lib}" prefix="${project.name}-${project.version}/lib" />
70                        <zipfileset dir="${basedir}" includes="*.txt" prefix="${project.name}-${project.version}" />
71                </zip>
72        </target>
73
74        <target name="clean">
75                <echo message="${project.name}" />
76
77                <delete dir="${build}" />
78                <delete dir="${dist}" />
79        </target>
80</project>
Note: See TracBrowser for help on using the browser.