[pal-cvs 2502] [234] clean up bundled jar files.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 7月 11日 (水) 11:32:49 JST


Revision: 234
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=234
Author:   shinsuke
Date:     2007-07-11 11:32:49 +0900 (Wed, 11 Jul 2007)

Log Message:
-----------
clean up bundled jar files.

Modified Paths:
--------------
    pompei/trunk/pom.xml

Added Paths:
-----------
    pompei/trunk/build.xml


-------------- next part --------------
Added: pompei/trunk/build.xml
===================================================================
--- pompei/trunk/build.xml	2007-07-10 21:35:31 UTC (rev 233)
+++ pompei/trunk/build.xml	2007-07-11 02:32:49 UTC (rev 234)
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="build" default="all" basedir=".">
+
+  <property name="war.name" value="pompei"/>
+  <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/>
+  <property name="src.main.webapp.webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/>
+  <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"/>
+
+  <target name="check.os" 
+          description="--> Check OS">
+    <condition property="isWindows">
+      <os family="windows" />
+    </condition>
+  </target>
+
+  <target name="setup.shell" depends="check.os" if="isWindows"
+          description="--> Setup shell parameters">
+    <property name="shell.cmd" value="cmd.exe"/>
+    <property name="shell.options" value="/c"/>
+  </target>
+
+  <target name="clean" 
+          description="--> Clean Directories">
+    <delete dir="${src.main.webapp.webinf.classes}"/>
+    <delete dir="${src.main.webapp.webinf.lib}"/>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- SERVLET DEVELOPMENT ENVRIONMENT                                     -->
+  <!-- =================================================================== -->
+
+  <target name="servlet" depends="setup.shell,clean"
+          description="--> Setup Servlet Delopment Environment">
+
+    <delete dir="${basedir}/target"/>
+    <delete dir="${basedir}/work"/>
+
+    <!-- pom.xml -->
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- SERVLET DEV: BEGIN @@@"
+        value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
+        >
+    </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="@@@@ SERVLET DEV: END --&gt;"
+        value="&lt;!-- SERVLET DEV: END --&gt;"
+        >
+    </replace>
+
+    <!-- web.xml -->
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- SERVLET DEV: BEGIN @@@"
+        value="&lt;!-- SERVLET DEV: BEGIN --&gt;"
+        >
+    </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="@@@@ SERVLET DEV: END --&gt;"
+        value="&lt;!-- SERVLET DEV: END --&gt;"
+        >
+    </replace>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}"
+      >
+      <arg line="${shell.options} 'mvn install'"/>
+    </exec>
+
+    <mkdir dir="${src.main.webapp.webinf.classes}"/>
+    <mkdir dir="${src.main.webapp.webinf.lib}"/>
+
+    <copy todir="${src.main.webapp.webinf.lib}">
+      <fileset dir="${target.webapp.webinf.lib}">
+        <include name="*.jar"/>
+      </fileset>
+    </copy>
+    <copy todir="${src.main.webapp.webinf.classes}">
+      <fileset dir="${target.webapp.webinf.classes}">
+        <include name="**"/>
+      </fileset>
+    </copy>
+
+    <delete dir="${basedir}/target"/>
+
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- PORTLET DEVELOPMENT ENVRIONMENT                                     -->
+  <!-- =================================================================== -->
+
+  <target name="portlet" depends="setup.shell,clean"
+          description="--> Setup Portlet Delopment Environment">
+
+    <delete dir="${basedir}/target"/>
+    <delete dir="${basedir}/work"/>
+
+    <!-- pom.xml -->
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
+        value="&lt;!-- SERVLET DEV: BEGIN @@@"
+        >
+    </replace>
+    <replace
+        file="${basedir}/pom.xml"
+        token="&lt;!-- SERVLET DEV: END --&gt;"
+        value="@@@@ SERVLET DEV: END --&gt;" 
+        >
+    </replace>
+
+    <!-- web.xml -->
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- SERVLET DEV: BEGIN --&gt;"
+        value="&lt;!-- SERVLET DEV: BEGIN @@@"
+        >
+    </replace>
+    <replace
+        file="${basedir}/src/main/webapp/WEB-INF/web.xml"
+        token="&lt;!-- SERVLET DEV: END --&gt;"
+        value="@@@@ SERVLET DEV: END --&gt;" 
+        >
+    </replace>
+
+  </target>
+
+</project>
+


Property changes on: pompei/trunk/build.xml
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: pompei/trunk/pom.xml
===================================================================
--- pompei/trunk/pom.xml	2007-07-10 21:35:31 UTC (rev 233)
+++ pompei/trunk/pom.xml	2007-07-11 02:32:49 UTC (rev 234)
@@ -46,6 +46,7 @@
     <url>http://pal.sourceforge.jp/</url>
   </organization>
   <build>
+    <finalName>pompei</finalName>
     <defaultGoal>validate</defaultGoal>
     <plugins>
       <plugin>
@@ -98,13 +99,13 @@
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.2</version>
-      <scope>compile</scope>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>junit-addons</groupId>
       <artifactId>junit-addons</artifactId>
       <version>1.4</version>
-      <scope>compile</scope>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>log4j</groupId>
@@ -115,11 +116,13 @@
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-jsp_2.0_spec</artifactId>
       <version>1.0</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-servlet_2.4_spec</artifactId>
       <version>1.0</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
@@ -137,6 +140,11 @@
       <version>3.1</version>
     </dependency>
     <dependency>
+      <groupId>poi</groupId>
+      <artifactId>poi</artifactId>
+      <version>3.0-FINAL</version>
+    </dependency>
+    <dependency>
       <groupId>org.seasar.container</groupId>
       <artifactId>s2-extension</artifactId>
       <version>2.4.13</version>
@@ -170,6 +178,7 @@
       <groupId>org.seasar.teeda</groupId>
       <artifactId>teeda-xmlunit</artifactId>
       <version>0.1.0</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.seasar.dao</groupId>
@@ -181,10 +190,17 @@
       <artifactId>s2-dao-tiger</artifactId>
       <version>1.0.43</version>
     </dependency>
+    <!--
     <dependency>
       <groupId>com.h2database</groupId>
       <artifactId>h2</artifactId>
       <version>1.0.20070304</version>
     </dependency>
+-->
+    <dependency>
+      <groupId>org.apache.derby</groupId>
+      <artifactId>derby</artifactId>
+      <version>10.1.1.0</version>
+    </dependency>
   </dependencies>
 </project>


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