-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven.xml
114 lines (83 loc) · 4.36 KB
/
maven.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
========================================================================
eyeWiki - a WikiWiki clone written in Java
========================================================================
Copyright (C) 2005 Henning Schmiedehausen <henning@software-forge.com>
based on
JSPWiki - a JSP-based WikiWiki clone.
Copyright (C) 2002-2005 Janne Jalkanen (Janne.Jalkanen@iki.fi)
========================================================================
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
========================================================================
-->
<!-- ======================================================================== -->
<!-- -->
<!-- maven Buildfile -->
<!-- -->
<!-- $Id: maven.xml 2360 2004-08-03 10:38:25Z henning $ -->
<!-- -->
<!-- ======================================================================== -->
<project
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven"
default="jar:jar">
<postGoal name="war:webapp">
<!-- Copy Properties File -->
<ant:copy file="etc/eyewiki.properties.tmpl" tofile="${maven.war.webapp.dir}/WEB-INF/eyewiki.properties" />
<ant:replace file="${maven.war.webapp.dir}/WEB-INF/eyewiki.properties"
replacefilterfile="build.properties"/>
<ant:copy file="etc/wikiComponents.xml" tofile="${maven.war.webapp.dir}/WEB-INF/wikiComponents.xml" />
<ant:copy file="etc/wikiPlugins.xml" tofile="${maven.war.webapp.dir}/WEB-INF/wikiPlugins.xml" />
<ant:copy file="etc/wikiVariables.xml" tofile="${maven.war.webapp.dir}/WEB-INF/wikiVariables.xml" />
<!-- copy wiki pages -->
<ant:copy todir="${maven.war.webapp.dir}/eyewiki/pages" >
<ant:fileset dir="src/wikipages">
<include name="*.txt"/>
</ant:fileset>
</ant:copy>
<ant:mkdir dir="${maven.war.webapp.dir}/eyewiki/work" />
<ant:mkdir dir="${maven.war.webapp.dir}/eyewiki/logs" />
</postGoal>
<preGoal name="test:test-resources">
<ant:mkdir dir="${maven.build.dir}/tests" />
<ant:copy file="src/test/etc/TextFormattingRules.txt" tofile="${maven.build.dir}/test-classes/TextFormattingRules.txt" />
<ant:copy file="src/test/etc/TestPlugins.txt" tofile="${maven.build.dir}/test-classes/TestPlugins.txt" />
<ant:copy todir="${maven.build.dir}/test-classes/">
<ant:mapper type="glob" from="*.properties.tmpl" to="*.properties"/>
<ant:fileset dir="src/test/etc">
<ant:include name="*.properties.tmpl" />
</ant:fileset>
</ant:copy>
<ant:replace replacefilterfile="build.properties" dir="${maven.build.dir}/test-classes" >
<ant:include name="eyewiki*properties" />
</ant:replace>
</preGoal>
<goal name="deploy">
<j:if test="${context.getVariable('maven.appserver.home') == null || context.getVariable('maven.appserver.home') == ''}">
<fail>
-----------------------------------------------------------------
| Configuration Error |
-----------------------------------------------------------------
You must define maven.appserver.home!
------------------------------------------------------------------
</fail>
</j:if>
<attainGoal name="war:webapp"/>
<echo>Installing to Appserver Directory: ${maven.appserver.home}</echo>
<ant:copy todir="${maven.appserver.home}/webapps/${pom.artifactId}" filtering="false">
<ant:fileset dir="${maven.war.webapp.dir}"/>
</ant:copy>
</goal>
</project>