forked from haenna89/XWikiLinkRecommender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
123 lines (108 loc) · 4.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
14.02.2009 08:19:53
XWiki annotation plug-in
The plug-in indexes wiki-pages semantically while they are stored. Before
wiki pages are shown concepts are recognized and enhanced with links.
rheese
====================================================================== -->
<project name="XWiki annotation plug-in" default="default">
<description>
The plug-in indexes wiki-pages semantically while they are stored. Before
wiki pages are shown concepts are recognized and enhanced with links.
</description>
<!-- Give user a chance to override without editing this file or typing -D -->
<property file="${basedir}/build.properties.user" />
<property file="${basedir}/build.properties" />
<path id="classpath:build">
<fileset dir="${webapp.xwiki.dir}/WEB-INF/lib" includes="**/*.jar"/>
<fileset dir="${basedir}/lib" includes="**/*.jar"/>
<fileset dir="${basedir}/lib/build" includes="**/*.jar"/>
</path>
<!-- =================================
target: default
================================= -->
<target name="default" depends="compile">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: compile
- - - - - - - - - - - - - - - - - -->
<target name="compile" description="Compile the sources">
<mkdir dir="${build.dir}" />
<javac destdir="${build.dir}" source="1.5" deprecation="false" debug="true"
classpathref="classpath:build" encoding="UTF-8">
<src path="${src.java.dir}" />
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.java.dir}">
<include name="**/*.properties" />
<include name="**/*.properties.user" />
</fileset>
</copy>
<copy todir="${build.dir}">
<fileset dir="${src.java.dir}">
<include name="**/*.html" />
</fileset>
</copy>
<copy todir="${build.dir}">
<fileset dir="${resources.dir}/ontology">
<include name="**/*.owl"/>
</fileset>
</copy>
</target>
<!-- =================================
target: create-jar
================================= -->
<target name="create-jar" depends="compile" description="Create a jar file">
<jar destfile="${jar.file}" basedir="${build.dir}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: compile-test
- - - - - - - - - - - - - - - - - -->
<target name="compile-test" depends="compile" description="Compile the sources">
<javac destdir="${build.dir}" source="1.5" deprecation="false" debug="true"
classpathref="classpath:build" encoding="UTF-8">
<src path="${src.test.dir}" />
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.test.dir}">
<include name="**/*.properties" />
<include name="**/*.properties.user" />
</fileset>
</copy>
</target>
<!-- =================================
target: quickdeploy
================================= -->
<target name="quickdeploy" depends="compile,copy-libs" description="Copy classes to the web application server">
<copy todir="${webapp.xwiki.dir}/WEB-INF/classes">
<fileset dir="${build.dir}">
<exclude name="**/test/" />
<exclude name="test*" />
</fileset>
</copy>
</target>
<!-- =================================
target: deploy
================================= -->
<target name="deploy" depends="quickdeploy" description="Copy classes to the web application server and touch web.xml">
<touch file="${webapp.xwiki.dir}/WEB-INF/web.xml" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: copy-libs
- - - - - - - - - - - - - - - - - -->
<target name="copy-libs" description="Copy our libraries to the web application server.">
<copy todir="${webapp.xwiki.dir}/WEB-INF/lib">
<fileset dir="${lib.dir}">
<!-- only needed at build time -->
<exclude name="build/*.jar" />
</fileset>
</copy>
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" description="Remove the build directory">
<delete dir="${build.dir}" />
</target>
</project>