[pal-cvs 3408] [1142] added build script.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 9月 8日 (月) 17:38:00 JST


Revision: 1142
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=1142
Author:   shinsuke
Date:     2008-09-08 17:38:00 +0900 (Mon, 08 Sep 2008)

Log Message:
-----------
added build script.

Added Paths:
-----------
    pal-portal/docs/build.xml


-------------- next part --------------
Added: pal-portal/docs/build.xml
===================================================================
--- pal-portal/docs/build.xml	                        (rev 0)
+++ pal-portal/docs/build.xml	2008-09-08 08:38:00 UTC (rev 1142)
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="palportal" default="all" basedir=".">
+
+  <property file="build.properties" />
+
+  <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>
+
+
+  <!-- =================================================================== -->
+  <!-- CLEAN                                                               -->
+  <!-- =================================================================== -->
+
+  <target name="clean" depends="setup.shell"
+          description="--> Clean Docs">
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/administration-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven clean'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/configuration-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven clean'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/installation-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven clean'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/portlet-developers-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven clean'"/>
+    </exec>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- BUILD ALL                                                     -->
+  <!-- =================================================================== -->
+
+  <target name="all" depends="setup.shell"
+          description="--> Build All Docs">
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/administration-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven pdf site'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/configuration-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven pdf site'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/installation-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven pdf site'"/>
+    </exec>
+
+    <exec
+      executable="${shell.cmd}"
+      failonerror="true"
+      dir="${basedir}/ja/portlet-developers-guide/trunk"
+      >
+      <arg line="${shell.options} 'maven pdf site'"/>
+    </exec>
+  </target>
+
+</project>


Property changes on: pal-portal/docs/build.xml
___________________________________________________________________
Name: svn:eol-style
   + native


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