-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-plugin-src.xml
63 lines (47 loc) · 2.37 KB
/
build-plugin-src.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="Antelope Plugin Source" default="dist" basedir=".">
<description>
This build file creates a source zip file that contains everything
necessary to build Antelope as a jEdit plugin. Assumes documentation
has already been built.
</description>
<!-- read build.props to override properties set below -->
<property file="build.props"/>
<property name="app.name" value="AntelopePlugin"/>
<!-- version number, override in build.props if necessary -->
<property name="build.num" value="3.5.0"/>
<!-- shouldn't need to override the following properties -->
<!-- source code directory, this is where the .java files live -->
<property name="src.dir" location="src" />
<!-- build directory, all files contained in the src directory are copied
to this directory for processing (tag substitution, mostly) -->
<property name="prep.dir" location="prep"/>
<!-- where to put the finished distribution file -->
<property name="dist.dir" location="dist"/>
<!-- ========================================================================
Target: dist
========================================================================= -->
<target name="dist" description="Package files for building a plugin.">
<property name="app.name" value="Antelope"/>
<!-- zip the jar and installation instructions and put the zip file in
the $dist directory -->
<zip destfile="${dist.dir}/${app.name}Src_${build.num}.zip" update="true">
<zipfileset prefix="${app.name}/prep/docs" dir="${prep.dir}/docs">
<include name="license.txt"/>
<include name="plugin_readme.txt"/>
<include name="manual/**"/>
</zipfileset>
<zipfileset dir="${basedir}" includes="build-plugin.xml" fullpath="${app.name}/build.xml"/>
<zipfileset prefix="${app.name}" dir="${basedir}" includes="build.props"/>
<zipfileset prefix="${app.name}/src" dir="${src.dir}">
<include name="**/common/*"/>
<include name="**/launcher/**/*"/>
<include name="**/tasks/**/*"/>
<include name="**/plugin/*"/>
<include name="**/library/**/*"/>
<include name="**/config/*"/>
<!-- <include name="**/docs/**/*"/> -->
<include name="**/images/*"/>
</zipfileset>
</zip>
</target>
</project>