Develop and Download Open Source Software

Browse Subversion Repository

Contents of /pal-admin/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download) (as text)
Tue Apr 3 08:19:28 2007 UTC (17 years, 2 months ago) by shinsuke
File MIME type: application/xml
File size: 5689 byte(s)
create pal-admin project.
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project name="build" default="all" basedir=".">
4
5 <property name="war.name" value="pal-admin"/>
6 <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/>
7 <property name="src.main.webapp.webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/>
8 <property name="target.webapp.webinf.lib" value="${basedir}/target/${war.name}/WEB-INF/lib"/>
9 <property name="target.webapp.webinf.classes" value="${basedir}/target/${war.name}/WEB-INF/classes"/>
10
11 <property name="shell.cmd" value="sh"/>
12 <property name="shell.options" value="-c"/>
13
14 <target name="check.os"
15 description="--> Check OS">
16 <condition property="isWindows">
17 <os family="windows" />
18 </condition>
19 </target>
20
21 <target name="setup.shell" depends="check.os" if="isWindows"
22 description="--> Setup shell parameters">
23 <property name="shell.cmd" value="cmd.exe"/>
24 <property name="shell.options" value="/c"/>
25 </target>
26
27 <target name="clean"
28 description="--> Clean Directories">
29 <delete dir="${src.main.webapp.webinf.classes}"/>
30 <delete dir="${src.main.webapp.webinf.lib}"/>
31 </target>
32
33 <!-- =================================================================== -->
34 <!-- SERVLET DEVELOPMENT ENVRIONMENT -->
35 <!-- =================================================================== -->
36
37 <target name="servlet" depends="setup.shell,clean"
38 description="--> Setup Servlet Delopment Environment">
39
40 <delete dir="${basedir}/target"/>
41 <delete dir="${basedir}/work"/>
42
43 <!-- pom.xml -->
44 <replace
45 file="${basedir}/pom.xml"
46 token="&lt;!-- SERVLET DEV: BEGIN @@@"
47 value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
48 >
49 </replace>
50 <replace
51 file="${basedir}/pom.xml"
52 token="@@@@ SERVLET DEV: END --&gt;"
53 value="&lt;!-- SERVLET DEV: END --&gt;"
54 >
55 </replace>
56 <replace
57 file="${basedir}/pom.xml"
58 token="&lt;!-- PORTLET DEV: BEGIN --&gt;"
59 value="&lt;!-- PORTLET DEV: BEGIN @@@"
60 >
61 </replace>
62 <replace
63 file="${basedir}/pom.xml"
64 token="&lt;!-- PORTLET DEV: END --&gt;"
65 value="@@@@ PORTLET DEV: END --&gt;"
66 >
67 </replace>
68
69 <!-- web.xml -->
70 <replace
71 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
72 token="&lt;!-- SERVLET DEV: BEGIN @@@"
73 value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
74 >
75 </replace>
76 <replace
77 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
78 token="@@@@ SERVLET DEV: END --&gt;"
79 value="&lt;!-- SERVLET DEV: END --&gt;"
80 >
81 </replace>
82 <replace
83 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
84 token="&lt;!-- PORTLET DEV: BEGIN --&gt;"
85 value="&lt;!-- PORTLET DEV: BEGIN @@@"
86 >
87 </replace>
88 <replace
89 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
90 token="&lt;!-- PORTLET DEV: END --&gt;"
91 value="@@@@ PORTLET DEV: END --&gt;"
92 >
93 </replace>
94
95 <exec
96 executable="${shell.cmd}"
97 failonerror="true"
98 dir="${basedir}"
99 >
100 <arg line="${shell.options} 'mvn install'"/>
101 </exec>
102
103 <mkdir dir="${src.main.webapp.webinf.classes}"/>
104 <mkdir dir="${src.main.webapp.webinf.lib}"/>
105
106 <copy todir="${src.main.webapp.webinf.lib}">
107 <fileset dir="${target.webapp.webinf.lib}">
108 <include name="*.jar"/>
109 </fileset>
110 </copy>
111 <copy todir="${src.main.webapp.webinf.classes}">
112 <fileset dir="${target.webapp.webinf.classes}">
113 <include name="**"/>
114 </fileset>
115 </copy>
116
117 <delete dir="${basedir}/target"/>
118
119 </target>
120
121 <!-- =================================================================== -->
122 <!-- PORTLET DEVELOPMENT ENVRIONMENT -->
123 <!-- =================================================================== -->
124
125 <target name="portlet" depends="setup.shell,clean"
126 description="--> Setup Portlet Delopment Environment">
127
128 <delete dir="${basedir}/target"/>
129 <delete dir="${basedir}/work"/>
130
131 <!-- pom.xml -->
132 <replace
133 file="${basedir}/pom.xml"
134 token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
135 value="&lt;!-- SERVLET DEV: BEGIN @@@"
136 >
137 </replace>
138 <replace
139 file="${basedir}/pom.xml"
140 token="&lt;!-- SERVLET DEV: END --&gt;"
141 value="@@@@ SERVLET DEV: END --&gt;"
142 >
143 </replace>
144 <replace
145 file="${basedir}/pom.xml"
146 token="&lt;!-- PORTLET DEV: BEGIN @@@"
147 value="&lt;!-- PORTLET DEV: BEGIN --&gt;"
148 >
149 </replace>
150 <replace
151 file="${basedir}/pom.xml"
152 token="@@@@ PORTLET DEV: END --&gt;"
153 value="&lt;!-- PORTLET DEV: END --&gt;"
154 >
155 </replace>
156
157 <!-- web.xml -->
158 <replace
159 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
160 token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
161 value="&lt;!-- SERVLET DEV: BEGIN @@@"
162 >
163 </replace>
164 <replace
165 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
166 token="&lt;!-- SERVLET DEV: END --&gt;"
167 value="@@@@ SERVLET DEV: END --&gt;"
168 >
169 </replace>
170 <replace
171 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
172 token="&lt;!-- PORTLET DEV: BEGIN @@@"
173 value="&lt;!-- PORTLET DEV: BEGIN --&gt;"
174 >
175 </replace>
176 <replace
177 file="${basedir}/src/main/webapp/WEB-INF/web.xml"
178 token="@@@@ PORTLET DEV: END --&gt;"
179 value="&lt;!-- PORTLET DEV: END --&gt;"
180 >
181 </replace>
182
183 </target>
184
185 </project>
186

Properties

Name Value
svn:eol-style native

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26