This repository has been archived by the owner on May 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
44 lines (34 loc) · 1.93 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!--
WebODF Ant build script
=======================
Author: Will Abson
This script is designed to package up the WebODF files into a JAR file that can be deployed into Alfresco Share, such that the files will then be accessible via the 'resources' servlet.
Due to licensing restrictions WebODF code cannot be distributed with Share Extras add-ons, therefore a separate JAR file is required to distribute these files.
-->
<project basedir="." default="dist-jar" name="Share Extras Build Script">
<!-- Allow override properties -->
<property file="build.properties" />
<property file="${user.home}/build.properties" />
<!-- Property default values. May be overridden using above files or via command-line args -->
<property name="jar.name" value="share-webodf.jar" />
<!-- Additional property values. Generally should not be overridden -->
<property name="build.dir" value="${basedir}/build" />
<property name="dist.dir" value="${build.dir}/dist" />
<!-- Clean out the build and distribution directories -->
<target name="clean" description="Clean out all build directories">
<delete dir="${dist.dir}" />
</target>
<!-- Create required prerequisite directory structure -->
<target name="prepare" description="Create initial build structures">
<mkdir dir="${dist.dir}" />
</target>
<!-- Build the JAR file -->
<target name="dist-jar" depends="clean, prepare"
description="Build a JAR file containing configuration and resource files">
<jar destfile="${dist.dir}/${jar.name}">
<zipfileset dir="${build.dir}" includes="webodf/webodf.js" fullpath="META-INF/extras/modules/webodf/webodf.js" />
<zipfileset dir="${basedir}" includes="webodf/lib/runtime.js" fullpath="META-INF/extras/modules/webodf/lib/runtime.js" />
<zipfileset dir="${basedir}" includes="webodf/webodf.css" fullpath="META-INF/extras/modules/webodf/webodf.css" />
</jar>
</target>
</project>