[pal-cvs 2881] [625] supported PORTLET DEV key.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 13日 (土) 23:10:49 JST


Revision: 625
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=625
Author:   shinsuke
Date:     2007-10-13 23:10:49 +0900 (Sat, 13 Oct 2007)

Log Message:
-----------
supported PORTLET DEV key.

Modified Paths:
--------------
    pompei/portlets/pompei-core/trunk/build.xml


-------------- next part --------------
Modified: pompei/portlets/pompei-core/trunk/build.xml
===================================================================
--- pompei/portlets/pompei-core/trunk/build.xml	2007-10-12 08:26:42 UTC (rev 624)
+++ pompei/portlets/pompei-core/trunk/build.xml	2007-10-13 14:10:49 UTC (rev 625)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<project name="build" default="" basedir=".">
+<project name="build" default="portlet" basedir=".">
 
   <property name="war.name" value="pompei-core"/>
   <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/>
@@ -8,41 +8,30 @@
   <property name="target.webapp.webinf.lib" value="${basedir}/target/${war.name}/WEB-INF/lib"/>
   <property name="target.webapp.webinf.classes" value="${basedir}/target/${war.name}/WEB-INF/classes"/>
 
-	<!--
-  <property name="shell.cmd" value="sh"/>
-  <property name="shell.options" value="-c"/>
-  <property name="shell.cmd" value="cmd.exe"/>
-  <property name="shell.options" value="/c"/>
--->
-  <target name="check.os"
+  <target name="check.os" 
           description="--> Check OS">
     <condition property="isWindows">
       <os family="windows" />
     </condition>
   </target>
 
-
-  <target name="setup.shell"
+  <target name="setup.shell" 
           description="--> Setup shell parameters">
-	<condition property="shell.cmd" value="sh">
+    <condition property="shell.cmd" value="sh">
       <os family="unix" />
     </condition>
-	<condition property="shell.options" value="-c">
+    <condition property="shell.options" value="-c">
       <os family="unix" />
     </condition>
-	<condition property="shell.cmd" value="cmd.exe">
+    <condition property="shell.cmd" value="cmd.exe">
       <os family="windows" />
     </condition>
-	<condition property="shell.options" value="/c">
+    <condition property="shell.options" value="/c">
       <os family="windows" />
     </condition>
-<!--
-  	<property name="shell.cmd" value="cmd.exe"/>
-    <property name="shell.options" value="/c"/>
--->
   </target>
 
-  <target name="clean"
+  <target name="clean" 
           description="--> Clean Directories">
     <delete dir="${src.main.webapp.webinf.classes}"/>
     <delete dir="${src.main.webapp.webinf.lib}"/>
@@ -71,6 +60,18 @@
         value="&lt;!-- SERVLET DEV: END --&gt;"
         >
     </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- PORTLET DEV: BEGIN --&gt;"
+        value="&lt;!-- PORTLET DEV: BEGIN @@@"
+        >
+    </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- PORTLET DEV: END --&gt;"
+        value="@@@@ PORTLET DEV: END --&gt;"
+        >
+    </replace>
 
     <!-- web.xml -->
     <replace
@@ -85,14 +86,25 @@
         value="&lt;!-- SERVLET DEV: END --&gt;"
         >
     </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- PORTLET DEV: BEGIN --&gt;"
+        value="&lt;!-- PORTLET DEV: BEGIN @@@"
+        >
+    </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- PORTLET DEV: END --&gt;"
+        value="@@@@ PORTLET DEV: END --&gt;"
+        >
+    </replace>
 
-  	<echo>${shell.options}</echo>
     <exec
       executable="${shell.cmd}"
       failonerror="true"
       dir="${basedir}"
       >
-    	<arg line="${shell.options} 'mvn install'"/>
+      <arg line="${shell.options} 'mvn install'"/>
     </exec>
 
     <mkdir dir="${src.main.webapp.webinf.classes}"/>
@@ -133,9 +145,21 @@
     <replace
         file="${basedir}/pom.xml"
         token="&lt;!-- SERVLET DEV: END --&gt;"
-        value="@@@@ SERVLET DEV: END --&gt;"
+        value="@@@@ SERVLET DEV: END --&gt;" 
         >
     </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- PORTLET DEV: BEGIN @@@"
+        value="&lt;!-- PORTLET DEV: BEGIN --&gt;"
+        >
+    </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="@@@@ PORTLET DEV: END --&gt;"
+        value="&lt;!-- PORTLET DEV: END --&gt;" 
+        >
+    </replace>
 
     <!-- web.xml -->
     <replace
@@ -147,9 +171,21 @@
     <replace
         file="${basedir}/src/main/webapp/WEB-INF/web.xml"
         token="&lt;!-- SERVLET DEV: END --&gt;"
-        value="@@@@ SERVLET DEV: END --&gt;"
+        value="@@@@ SERVLET DEV: END --&gt;" 
         >
     </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- PORTLET DEV: BEGIN @@@"
+        value="&lt;!-- PORTLET DEV: BEGIN --&gt;"
+        >
+    </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="@@@@ PORTLET DEV: END --&gt;"
+        value="&lt;!-- PORTLET DEV: END --&gt;" 
+        >
+    </replace>
 
   </target>
 


pal-cvs メーリングリストの案内
Back to archive index