lenya/src/webapp/lenya/pubs/default/config/tasks targets.xml,NONE,1.1 tasks.xconf,NONE,1.1

Edith Chevrier <[email protected]>
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/webapp/lenya/pubs/default/config/tasks
In directory erbium:/tmp/cvs-serv18105/src/webapp/lenya/pubs/default/config/tasks

Added Files:
	targets.xml tasks.xconf 
Log Message:
Publisher for default with Anttask: work in progress

--- NEW FILE: targets.xml ---
<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : ant-test.xml
    Created on : 3. April 2003, 18:29
    Author     : andreas
    Description:
        Purpose of the document follows.
-->

<project name="Ant Test Project" default="test" basedir=".">

<property name="text" value="Hello World!"/>

<property name="pub.dir" value=""/>

<!-- publishing properties -->
<property name="authoring.dir" value="content/authoring"/>
<property name="authoring.tree" value="sitetree.xml"/>
<property name="live.dir" value="content/live"/>
<property name="replication.dir" value="content/replication/pending"/>

<property name="export.server" value="http://localhost:8080"/>
<property name="export.dir" value="resources/export/pending"/>
<property name="export.expression" value="/lenya/default"/>
<property name="export.replacement" value=""/>
<property name="export.uris" value=""/>

<property name="publish.sources" value=""/>
<property name="servlet.context" value=""/>

<taskdef name="export" classname="org.apache.lenya.cms.ant.StaticHTMLExporter">
<classpath>
<pathelement location="${servlet.context}/webapp/lenya/WEB-INF/classes">
</pathelement>
</classpath>
</taskdef>
<target name="test">
  <echo>This is a test of the AntTask: ${text}</echo>
</target>

<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>
  
  <echo>Export:</echo>
  <export
      path="${export.dir}"
      uris="${export.uris}"
      expression="${export.expression}"
      replacement="${export.replacement}"
      server="${export.server}"
      />
  
</target>

</project>

--- NEW FILE: tasks.xconf ---
<?xml version="1.0"?>

<tasks>

  <task id="publish" class="org.apache.lenya.cms.task.AntTask">
    <parameter name="target" value="publish"/>
  </task>

</tasks>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.