[pal-cvs 2435] [167] added serializer tool to export/import j2 data.

svnno****@sourc***** svnno****@sourc*****
2007年 5月 29日 (火) 16:45:41 JST


Revision: 167
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=167
Author:   shinsuke
Date:     2007-05-29 16:45:40 +0900 (Tue, 29 May 2007)

Log Message:
-----------
added serializer tool to export/import j2 data.

Added Paths:
-----------
    pal-portal/trunk/portal/tools/
    pal-portal/trunk/portal/tools/serializer/
    pal-portal/trunk/portal/tools/serializer/build.properties
    pal-portal/trunk/portal/tools/serializer/build.xml
    pal-portal/trunk/portal/tools/serializer/lib/
    pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar


-------------- next part --------------
Added: pal-portal/trunk/portal/tools/serializer/build.properties
===================================================================
--- pal-portal/trunk/portal/tools/serializer/build.properties	2007-05-29 04:35:27 UTC (rev 166)
+++ pal-portal/trunk/portal/tools/serializer/build.properties	2007-05-29 07:45:40 UTC (rev 167)
@@ -0,0 +1,16 @@
+build.dir=${basedir}/target
+
+#
+# Properties
+#
+org.apache.jetspeed.import.file=${build.dir}/j2-import.xml
+org.apache.jetspeed.export.file=${build.dir}/j2-export.xml
+
+org.apache.jetspeed.server.home = __TOMCAT_HOME__
+org.apache.jetspeed.derbydatabase.path =  /tmp
+org.apache.jetspeed.production.database.url = jdbc:derby:${org.apache.jetspeed.derbydatabase.path}/productiondb;create=true
+org.apache.jetspeed.production.database.driver = org.apache.derby.jdbc.EmbeddedDriver
+org.apache.jetspeed.production.database.user =
+org.apache.jetspeed.production.database.password =
+org.apache.jetspeed.portal.home = ${org.apache.jetspeed.server.home}/webapps/palportal
+


Property changes on: pal-portal/trunk/portal/tools/serializer/build.properties
___________________________________________________________________
Name: svn:eol-style
   + native

Added: pal-portal/trunk/portal/tools/serializer/build.xml
===================================================================
--- pal-portal/trunk/portal/tools/serializer/build.xml	2007-05-29 04:35:27 UTC (rev 166)
+++ pal-portal/trunk/portal/tools/serializer/build.xml	2007-05-29 07:45:40 UTC (rev 167)
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  
+  $Id: build.xml 527203 2007-04-10 17:04:38Z taylor $
+-->
+<project name="JetspeedDatabaseSetup" basedir=".">
+
+  <property file="build.properties" />
+
+  <target name="import">
+
+    <delete dir="${build.dir}/assembly" />
+    <mkdir dir="${build.dir}/assembly" />
+
+    <copy todir="${build.dir}/assembly" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly">
+        <include name="security*.xml" />
+        <include name="capabilities.xml" />
+        <include name="prefs.xml" />
+        <include name="profiler.xml" />
+        <include name="registry.xml" />
+        <include name="transaction.xml" />
+        <include name="cache.xml" />
+      </fileset>
+    </copy>
+
+    <copy todir="${build.dir}/assembly" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly/alternate/">
+        <include name="request-context.xml" />
+      </fileset>
+    </copy>
+
+    <mkdir dir="${build.dir}/assembly/boot" />
+
+    <copy todir="${build.dir}/assembly/boot" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly/boot">
+        <include name="*.xml" />
+      </fileset>
+    </copy>
+
+    <java classname="org.apache.jetspeed.serializer.JetspeedSerializerApplication" fork="yes">
+      <classpath>
+        <fileset dir="${basedir}/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.server.home}/shared/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.server.home}/common/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <pathelement location="${org.apache.jetspeed.server.home}/shared/classes" />
+        <pathelement location="${org.apache.jetspeed.portal.home}/WEB-INF/classes" />
+      </classpath>
+
+      <arg
+        line="-I &quot;${org.apache.jetspeed.import.file}&quot; 
+              -a &quot;${org.apache.jetspeed.portal.home}&quot;
+              -b &quot;file:${build.dir}/assembly/boot/&quot;
+              -c &quot;file:${build.dir}/assembly/&quot;
+              -dc &quot;${org.apache.jetspeed.production.database.driver}&quot;
+              -ds &quot;${org.apache.jetspeed.production.database.url}&quot;
+              -du &quot;${org.apache.jetspeed.production.database.user}&quot;
+              -dp &quot;${org.apache.jetspeed.production.database.password}&quot;" />
+    </java>
+
+  </target>
+
+  <target name="export">
+
+    <delete dir="${build.dir}/assembly" />
+    <mkdir dir="${build.dir}/assembly" />
+
+    <copy todir="${build.dir}/assembly" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly">
+        <include name="security*.xml" />
+        <include name="capabilities.xml" />
+        <include name="prefs.xml" />
+        <include name="profiler.xml" />
+        <include name="registry.xml" />
+        <include name="transaction.xml" />
+        <include name="cache.xml" />
+      </fileset>
+    </copy>
+
+    <copy todir="${build.dir}/assembly" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly/alternate/">
+        <include name="request-context.xml" />
+      </fileset>
+    </copy>
+
+    <mkdir dir="${build.dir}/assembly/boot" />
+
+    <copy todir="${build.dir}/assembly/boot" overwrite="true" failonerror="true">
+      <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/assembly/boot">
+        <include name="*.xml" />
+      </fileset>
+    </copy>
+
+    <java classname="org.apache.jetspeed.serializer.JetspeedSerializerApplication" fork="yes">
+      <classpath>
+        <fileset dir="${basedir}/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.server.home}/shared/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.portal.home}/WEB-INF/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <fileset dir="${org.apache.jetspeed.server.home}/common/lib">
+          <include name="**/*.jar" />
+        </fileset>
+        <pathelement location="${org.apache.jetspeed.server.home}/shared/classes" />
+        <pathelement location="${org.apache.jetspeed.portal.home}/WEB-INF/classes" />
+      </classpath>
+
+      <arg
+        line="-E &quot;${org.apache.jetspeed.export.file}&quot; 
+              -a &quot;${org.apache.jetspeed.portal.home}&quot;
+              -b &quot;file:${build.dir}/assembly/boot/&quot;
+              -c &quot;file:${build.dir}/assembly/&quot;
+              -dc &quot;${org.apache.jetspeed.production.database.driver}&quot;
+              -ds &quot;${org.apache.jetspeed.production.database.url}&quot;
+              -du &quot;${org.apache.jetspeed.production.database.user}&quot;
+              -dp &quot;${org.apache.jetspeed.production.database.password}&quot;" />
+    </java>
+
+  </target>
+
+</project>


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

Added: pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar
===================================================================
(Binary files differ)


Property changes on: pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream


pal-cvs メーリングリストの案内