Update of /cvsroot/xdoclet/xdoclet2/demo
In directory sc8-pr-cvs1:/tmp/cvs-serv11958/demo

Added Files:
        maven.xml project.xml 
Log Message:
Added a little demo project to get people started

--- NEW FILE: maven.xml ---
<project default="jar:install"
         xmlns:j="jelly:core"
         xmlns:maven="jelly:maven">

  <goal name="init">
    <path id="xdoclet.class.path">
      <pathelement location="${basedir}"/>
      <path refid="maven.dependency.classpath"/>
    </path>

    <taskdef name="xdoclet" 
             classname="xdoclet.ant.XDocletTask" 
             classpathref="xdoclet.class.path"/>
  </goal>

  <goal name="jelly" prereqs="init">
    <xdoclet validating="false">
      <fileset dir="${pom.build.sourceDirectory}"/>

      <jelly templatePath="src/templates/index.jelly"
             destination="${maven.build.dir}/jelly" 
             filename="index.html">
        <property name="header" value="${pom.name}"/>
      </jelly>

      <jelly templatePath="src/templates/class.jelly"
             destination="${maven.build.dir}/jelly" 
             filename="{1}.{0}.html"/>

    </xdoclet>
  </goal>    

  <goal name="velocity" prereqs="init">
    <xdoclet validating="false">
      <fileset dir="${pom.build.sourceDirectory}"/>

      <velocity templatePath="src/templates/one.vm"
                destination="${maven.build.dir}/velocity" 
                filename="index.html"/>

      <velocity templatePath="src/templates/many.vm"
                destination="${maven.build.dir}/velocity" 
                filename="{1}.{0}.html"/>

    </xdoclet>
  </goal>    

</project>
--- NEW FILE: project.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>

<project>
  <extend>${basedir}/../project.xml</extend>
  <pomVersion>3</pomVersion>
  <id>xdoclet-demo</id>
  <name>XDoclet Demo</name>
  <dependencies>
    <dependency>
      <id>xdoclet</id>
      <version>${pom.currentVersion}</version>
    </dependency>
  </dependencies>
</project>



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to