lenya/src/webapp/lenya/pubs/default/config/tasks targets.xml,1.2,1.3
Edith Chevrier <[email protected]> Wed, 14 May 2003 16:00:09 +0200
| Newsgroups | gmane.comp.cms.wyona.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /usr/local/repositories/lenya/src/webapp/lenya/pubs/default/config/tasks
In directory erbium:/tmp/cvs-serv25548/src/webapp/lenya/pubs/default/config/tasks
Modified Files:
targets.xml
Log Message:
Ant Task Publisher for default publication
Index: targets.xml
===================================================================
RCS file: /usr/local/repositories/lenya/src/webapp/lenya/pubs/default/config/tasks/targets.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** targets.xml 9 May 2003 14:02:48 -0000 1.2
--- targets.xml 14 May 2003 14:00:05 -0000 1.3
***************
*** 18,22 ****
--- 18,24 ----
<property name="authoring.dir" value="content/authoring"/>
<property name="authoring.tree" value="sitetree.xml"/>
+ <property name="authoring.resource.dir" value="resources/images/authoring"/>
<property name="live.dir" value="content/live"/>
+ <property name="live.resource.dir" value="resources/images/live"/>
<property name="replication.dir" value="content/replication/pending"/>
***************
*** 27,30 ****
--- 29,33 ----
<property name="export.uris" value=""/>
+ <property name="publish.documentid" value=""/>
<property name="publish.sources" value=""/>
<property name="servlet.context" value=""/>
***************
*** 36,50 ****
<target name="publish">
<echo>-${servlet.context}-</echo>
! <echo>Copying files ${publish.sources}, ${authoring.tree}</echo>
<echo>from ${authoring.dir}</echo>
<echo>to ${live.dir}</echo>
<copy todir="${pub.dir}/${live.dir}">
<fileset dir="${pub.dir}/${authoring.dir}">
<include name="${publish.sources}"/>
- <include name="${authoring.tree}"/>
</fileset>
</copy>
<taskdef name="export" classname="org.apache.lenya.cms.ant.StaticHTMLExporter"/>
--- 39,79 ----
<target name="publish">
<echo>-${servlet.context}-</echo>
! <echo>Publish document</echo>
! <echo>Copying files ${publish.sources}</echo>
<echo>from ${authoring.dir}</echo>
<echo>to ${live.dir}</echo>
+ <echo>pub dir : ${pub.dir}</echo>
+
<copy todir="${pub.dir}/${live.dir}">
<fileset dir="${pub.dir}/${authoring.dir}">
<include name="${publish.sources}"/>
</fileset>
</copy>
+ <echo>Publish resources</echo>
+ <echo>Copying files ${publish.documentid}</echo>
+ <echo>from ${pub.dir}/${authoring.resource.dir}</echo>
+ <echo>to ${pub.dir}/${live.resource.dir}</echo>
+
+ <copy todir="${pub.dir}/${live.resource.dir}/${publish.documentid}">
+ <fileset dir="${pub.dir}/${authoring.resource.dir}">
+ <include name="${publish.documentid}/*"/>
+ </fileset>
+ </copy>
+
+ <taskdef name="publishtree" classname="org.apache.lenya.cms.ant.TreePublisher"/>
+
+ <echo>Publish tree</echo>
+ <echo>Copy node for ${publish.documentid}</echo>
+ <echo>from tree ${pub.dir}/${authoring.dir}/${authoring.tree}</echo>
+ <echo>and insert it in tree ${pub.dir}/${live.dir}/${authoring.tree}</echo>
+
+ <publishtree
+ documentid= "${publish.documentid}"
+ absolutetreeauthoringpath= "${pub.dir}/${authoring.dir}/${authoring.tree}"
+ absolutetreelivepath = "${pub.dir}/${live.dir}/${authoring.tree}"
+ />
+
<taskdef name="export" classname="org.apache.lenya.cms.ant.StaticHTMLExporter"/>
***************
*** 57,61 ****
server="${export.server}"
/>
-
</target>
--- 86,89 ----