You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by wo...@apache.org on 2010/05/17 18:45:56 UTC
svn commit: r945235 - in /portals/applications/sandbox/content/trunk:
etc/ant/ src/main/webapp/WEB-INF/tool/ src/main/webapp/WEB-INF/tool/import/
src/main/webapp/WEB-INF/tool/import/sources/
Author: woonsan
Date: Mon May 17 16:45:55 2010
New Revision: 945235
URL: http://svn.apache.org/viewvc?rev=945235&view=rev
Log:
Adding import ant task example
Added:
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties (contents, props changed)
- copied, changed from r945196, portals/applications/sandbox/content/trunk/etc/ant/build.properties
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml (contents, props changed)
- copied, changed from r945196, portals/applications/sandbox/content/trunk/etc/ant/build.xml
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/
- copied from r945196, portals/applications/sandbox/content/trunk/etc/ant/sources/
Removed:
portals/applications/sandbox/content/trunk/etc/ant/
Modified:
portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/Jetspeed-2-release.xml
Copied: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties (from r945196, portals/applications/sandbox/content/trunk/etc/ant/build.properties)
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties?p2=portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties&p1=portals/applications/sandbox/content/trunk/etc/ant/build.properties&r1=945196&r2=945235&rev=945235&view=diff
==============================================================================
--- portals/applications/sandbox/content/trunk/etc/ant/build.properties (original)
+++ portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties Mon May 17 16:45:55 2010
@@ -16,3 +16,6 @@
repository.url = rmi://127.0.0.1:1099/hipporepository
repository.username = admin
repository.password = admin
+
+task.class.path = ../../classes
+task.libs.dir = ../../lib
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Copied: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml (from r945196, portals/applications/sandbox/content/trunk/etc/ant/build.xml)
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml?p2=portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml&p1=portals/applications/sandbox/content/trunk/etc/ant/build.xml&r1=945196&r2=945235&rev=945235&view=diff
==============================================================================
--- portals/applications/sandbox/content/trunk/etc/ant/build.xml (original)
+++ portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml Mon May 17 16:45:55 2010
@@ -20,14 +20,23 @@
<property name="repository.url" value="rmi://127.0.0.1:1099/hipporepository" />
<property name="repository.username" value="admin" />
<property name="repository.password" value="admin" />
+ <property name="task.class.path" value="../../classes" />
+ <property name="task.libs.dir" value="../../lib" />
+
+ <path id="task.classpath">
+ <fileset dir="${task.libs.dir}" includes="**/*.jar" />
+ </path>
<taskdef name="import"
classname="org.apache.portals.applications.content.tools.ant.Import"
- classpath="classes" />
+ classpath="${task.class.path}" classpathref="task.classpath" />
<target name="import-content">
- <import parentAbsPath="/content/documents/en/news/2009/05"
+ <import repositoryUrl="${repository.url}"
+ repositoryUsername="${repository.username}"
+ repositoryPassword="${repository.password}"
+ parentAbsPath="/content/documents/en/news/2009/05"
source="${basedir}/sources/Jetspeed-2-release.xml"
/>
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/Jetspeed-2-release.xml
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/Jetspeed-2-release.xml?rev=945235&r1=945196&r2=945235&view=diff
==============================================================================
--- portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/Jetspeed-2-release.xml (original)
+++ portals/applications/sandbox/content/trunk/src/main/webapp/WEB-INF/tool/import/sources/Jetspeed-2-release.xml Mon May 17 16:45:55 2010
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
+ xmlns:hippostd="http://www.onehippo.org/jcr/hippostd/nt/2.0"
+ xmlns:onehippo="http://www.onehippo.com/nt/1.1"
+ xmlns:hippo="http://www.onehippo.org/jcr/hippo/nt/2.0.1"
sv:name="Jetspeed-2-release">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:handle</sv:value>
@@ -31,10 +34,12 @@
<sv:value>7d92c518-511b-49e0-92b5-126970694fa8</sv:value>
<sv:value>cafebabe-cafe-babe-cafe-babecafebabe</sv:value>
</sv:property>
+ <!--
<sv:property sv:name="hippo:related___pathreference"
sv:type="String">
<sv:value>Jetspeed-2-release</sv:value>
</sv:property>
+ -->
<sv:property sv:name="hippostd:state" sv:type="String">
<sv:value>published</sv:value>
</sv:property>