Develop and Download Open Source Software

Browse CVS Repository

Contents of /pal/cms-portlets/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Nov 30 14:30:38 2006 UTC (17 years, 4 months ago) by shinsuke
Branch: MAIN
File MIME type: application/xml
To develop this project on Servlet envrionment, runs ant servlet. To deploy this project as Portlet, runs ant portlet.

1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project name="build" default="all" basedir=".">
4
5 <property name="war.name" value="cms-portlet"/>
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
10 <property name="shell.cmd" value="sh"/>
11 <property name="shell.options" value="-c"/>
12
13 <target name="check.os"
14 description="--> Check OS">
15 <condition property="isWindows">
16 <os family="windows" />
17 </condition>
18 </target>
19
20 <target name="setup.shell" depends="check.os" if="isWindows"
21 description="--> Setup shell parameters">
22 <property name="shell.cmd" value="cmd.exe"/>
23 <property name="shell.options" value="/c"/>
24 </target>
25
26 <target name="clean"
27 description="--> Clean Directories">
28 <delete dir="${src.main.webapp.webinf.classes}"/>
29 <delete dir="${src.main.webapp.webinf.lib}"/>
30 </target>
31
32 <!-- =================================================================== -->
33 <!-- SERVLET DEVELOPMENT ENVRIONMENT -->
34 <!-- =================================================================== -->
35
36 <target name="servlet" depends="setup.shell,clean"
37 description="--> Setup Servlet Delopment Environment">
38 <exec
39 executable="${shell.cmd}"
40 failonerror="true"
41 dir="${basedir}"
42 >
43 <arg line="${shell.options} 'mvn clean'"/>
44 </exec>
45 <exec
46 executable="${shell.cmd}"
47 failonerror="true"
48 dir="${basedir}"
49 >
50 <arg line="${shell.options} 'mvn install'"/>
51 </exec>
52
53 <mkdir dir="${src.main.webapp.webinf.classes}"/>
54 <mkdir dir="${src.main.webapp.webinf.lib}"/>
55
56 <copy todir="${src.main.webapp.webinf.lib}">
57 <fileset dir="${target.webapp.webinf.lib}">
58 <include name="*.jar"/>
59 </fileset>
60 </copy>
61
62 </target>
63
64 <!-- =================================================================== -->
65 <!-- PORTLET DEVELOPMENT ENVRIONMENT -->
66 <!-- =================================================================== -->
67
68 <target name="portlet" depends="setup.shell,clean"
69 description="--> Setup Portlet Delopment Environment">
70 <exec
71 executable="${shell.cmd}"
72 failonerror="true"
73 dir="${basedir}"
74 >
75 <arg line="${shell.options} 'mvn clean'"/>
76 </exec>
77
78 </target>
79
80 </project>
81

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