You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/04/14 14:54:57 UTC

svn commit: r161269 - lenya/sandbox/jcrsitetree/build.xml

Author: michi
Date: Thu Apr 14 05:54:57 2005
New Revision: 161269

URL: http://svn.apache.org/viewcvs?view=rev&rev=161269
Log:
webapp.dir introduced

Modified:
    lenya/sandbox/jcrsitetree/build.xml

Modified: lenya/sandbox/jcrsitetree/build.xml
URL: http://svn.apache.org/viewcvs/lenya/sandbox/jcrsitetree/build.xml?view=diff&r1=161268&r2=161269
==============================================================================
--- lenya/sandbox/jcrsitetree/build.xml (original)
+++ lenya/sandbox/jcrsitetree/build.xml Thu Apr 14 05:54:57 2005
@@ -12,10 +12,9 @@
     <property file="local.build.properties"/>
     <property file="build.properties"/>
 
-    <property name="default.pub.dir" value="${lenya.source.dir}/build/lenya/webapp/lenya/pubs/default"/>
-    <property name="repo.dir" value="${default.pub.dir}/repos/repo-sitetree"/>
+    <property name="webapp.dir" value="${lenya.source.dir}/build/lenya/webapp"/>
 
-    <property name="jaas.config" value="-Djava.security.auth.login.config==${repo.dir}/jaas.config"/>
+    <property name="jaas.config" value="-Djava.security.auth.login.config==${webapp.dir}/lenya/repository/jaas.config"/>
 
     <property environment="env"/>
     
@@ -70,64 +69,36 @@
       </fileset>
     </copy>
 
-    <copy todir="${lenya.source.dir}/build/lenya/webapp/lenya/pubs/default">
-      <fileset dir="src/data/pubs/default"/>
+    <copy todir="${lenya.source.dir}/build/lenya/webapp/lenya/">
+      <fileset dir="src/data/"/>
     </copy>
   </target>
 
-  <target name="import-sitetree" depends="init" description="Import Authoring and Live sitetree">
-    <echo>Import Authoring and Live Sitetree from ${default.pub.dir} into ${repo.dir}</echo>
+  <target name="import-sitetree" depends="init" description="Import sitetree of publications">
+    <echo>Import sitetree from ${webapp.dir}</echo>
 
-    <xslt
-      in="${default.pub.dir}/content/authoring/sitetree.xml"
-      out="${default.pub.dir}/content/authoring/sitetree.xml.import"
-      style="src/java/org/apache/lenya/cms/publication/ImportSiteTree.xsl"
-      extension="xml"
-      force="true"
-      classpathref="classpath">
-      <outputproperty name="method" value="xml"/>
-      <outputproperty name="encoding" value="utf-8"/>
-      <outputproperty name="indent" value="yes"/>
-    </xslt>
-    
-    <xslt
-      in="${default.pub.dir}/content/live/sitetree.xml"
-      out="${default.pub.dir}/content/live/sitetree.xml.import"
-      style="src/java/org/apache/lenya/cms/publication/ImportSiteTree.xsl"
-      extension="xml"
-      force="true"
-      classpathref="classpath">
-      <outputproperty name="method" value="xml"/>
-      <outputproperty name="encoding" value="utf-8"/>
-      <outputproperty name="indent" value="yes"/>
-    </xslt>
-    
     <java classname="org.apache.lenya.cms.publication.ImportSiteTree" fork="true">
-      <arg value="${repo.dir}"/>
-      <arg value="${default.pub.dir}"/>
+      <arg value="${webapp.dir}"/>
       <jvmarg value="${jaas.config}"/>
       <classpath refid="classpath"/>
     </java>
-
-    <delete file="${default.pub.dir}/content/authoring/sitetree.xml.import"/>
-    <delete file="${default.pub.dir}/content/live/sitetree.xml.import"/>
   </target>
 
   <target name="clear-repository" depends="init" description="Clear Repository Workspaces">
-    <echo>Clearing workspaces of repository at ${repo.dir}</echo>
+    <echo>Clearing workspaces of repository at ${webapp.dir}</echo>
 
     <java classname="org.apache.lenya.cms.publication.ClearRepository" fork="true">
-      <arg value="${repo.dir}"/>
+      <arg value="${webapp.dir}"/>
       <jvmarg value="${jaas.config}"/>
       <classpath refid="classpath"/>
     </java>
   </target>
 
   <target name="view-workspace" depends="init" description="View Workspace">
-    <echo>Dumping workspace for repository at ${repo.dir}</echo>
+    <echo>Dumping workspace for repository at ${webapp.dir}</echo>
 
     <java classname="org.apache.lenya.cms.publication.ViewRepository" fork="true">
-      <arg value="${repo.dir}"/>
+      <arg value="${webapp.dir}"/>
       <arg value="${workspace.name}"/>
       <jvmarg value="${jaas.config}"/>
       <classpath refid="classpath"/>
@@ -149,5 +120,4 @@
       <classpath refid="classpath"/>
     </java>
   </target>
-
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org