xsddoc/maven-plugin project.properties,NONE,1.1 plugin.jelly,NONE,1.1 project.xml,NONE,1.1 plugin.properties,NONE,1.1

Kurt Riede <[email protected]>
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/xsddoc/maven-plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7435/maven-plugin

Added Files:
	project.properties plugin.jelly project.xml plugin.properties 
Log Message:
initial import of maven plugin, contributed by trippcr

--- NEW FILE: project.properties ---
# This file is part of the xframe software package
# hosted at http://xframe.sourceforge.net
# 
# Copyright (c) 2003 Kurt Riede.
#     
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

# unix shell script for command line interface of xsddoc.
#
# author <a href="mailto:kurt.riede-S0/[email protected]">Kurt Riede</a>
#
# -------------------------------------------------------------------
# P R O J E C T  P R O P E R T I E S
# -------------------------------------------------------------------
# xsddoc plugin.
# -------------------------------------------------------------------
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}

--- NEW FILE: plugin.properties ---
# This file is part of the xframe software package
# hosted at http://xframe.sourceforge.net
# 
# Copyright (c) 2003 Kurt Riede.
#     
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

# unix shell script for command line interface of xsddoc.
#
# author <a href="mailto:kurt.riede-S0/[email protected]">Kurt Riede</a>
#
# -------------------------------------------------------------------
# P L U G I N  P R O P E R T I E S
# -------------------------------------------------------------------
# xsddoc plugin.
# -------------------------------------------------------------------
maven.xsddoc.src=src/xsd
maven.xsddoc.dest=${maven.docs.dest}/xsddocs

--- NEW FILE: project.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the xframe software package
hosted at http://xframe.sourceforge.net

Copyright (c) 2003 Kurt Riede.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<project>
  <pomVersion>3</pomVersion>
  <groupId>xsddoc</groupId>
  <artifactId>maven-xsddoc-plugin</artifactId>
  <id>maven-xsddoc-plugin</id>
  <name>Maven xsddoc Plug-in</name>
  <currentVersion>0.0</currentVersion>
  <description>XML schema documentation generator</description>
  <shortDescription>XML schema documenation generator</shortDescription>
  <url>http://xframe.sf.net/xsddoc.html</url>
  <siteDirectory>/home/groups/x/xf/xframe/htdocs</siteDirectory>
  <issueTrackingUrl>http://sourceforge.net/tracker/?group_id=48863&atid=454391</issueTrackingUrl>
  <repository>
    <connection>pserver:[email protected]:/cvsroot/xframe</connection>
    <developerConnection>ext:[email protected]:/cvsroot/xframe</developerConnection>
    <url>http://cvs.sourceforge.net/viewcvs.py/xframe</url>
  </repository>
  <developers>
    <developer>
      <name>Kurt Riede</name>
      <id>kriede</id>
      <email>[email protected]</email>
      <roles>
        <role>Project Admin</role>
      </roles>
      <url>http://jroller.com/page/kriede</url>
      <timezone>+1</timezone>
    </developer>
  <contributors>
    <contributor>
      <id>trippcr</id>
    </contributor>
  </contributors/>
  <dependencies>
    <dependency>
      <groupId>xsddoc</groupId>
      <artifactId>xsddoc</artifactId>
      <version>0.5-beta</version>
      <url>http://xframe.sourceforge.net/xsddoc.html</url>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <unitTestSourceDirectory>test</unitTestSourceDirectory>
    <unitTest>
      <includes>
        <include>**/*Test.java</include>
      </includes>
    </unitTest>
    <resources>
      <resource>
        <directory>..</directory>
        <targetPath>META-INF</targetPath>
      </resource>
      <resource>
        <directory>src/plugin-resources</directory>
        <targetPath>plugin-resources</targetPath>
      </resource>
      <resource>
        <directory>.</directory>
        <includes>
          <include>plugin.jelly</include>
          <include>plugin.properties</include>
          <include>project.properties</include>
          <include>project.xml</include>
        </includes>
      </resource>
    </resources>
  </build>

</project>

--- NEW FILE: plugin.jelly ---
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the xframe software package
hosted at http://xframe.sourceforge.net

Copyright (c) 2003 Kurt Riede.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<project xmlns:j="jelly:core"
         xmlns:u="jelly:util"
       xmlns:ant="jelly:ant"
       xmlns:doc="doc">

    <goal name="maven-xsddoc-plugin:register">
        <doc:registerReport 
                name="XSD Docs"
                link="xsddoc-report"
                pluginName="maven-xsddoc-plugin"
                description="XML Schema Documentation"/>
    </goal>

    <goal name="xsddoc:generate" prereqs="maven-xsddoc-plugin:report">
    </goal>

    <goal name="maven-xsddoc-plugin:report"
        description="Generate xml schema documentation using xsddoc tool.">

        <ant:fileScanner var="xsdFiles">
            <ant:fileset dir="${maven.xsddoc.src}">
                <ant:patternset>
                    <ant:include name="**/*.xsd"/>
                </ant:patternset>
            </ant:fileset>
        </ant:fileScanner>

        <j:file name="${maven.build.dir}/xsddocs-raw.xml">
            <xsddocs>
                <j:forEach var="file" items="${xsdFiles.iterator()}">
                    <xsddoc-file>${file.getName()}</xsddoc-file>
                    <ant:mkdir dir="${maven.xsddoc.dest}/${file.getName()}"/>
                    <java classname="net.sf.xframe.xsddoc.Main"
                            fork="yes"
                            failonerror="true"
                            maxmemory="500m">
                        <classpath>
                            <pathelement
                                location="${plugin.getDependencyPath('xsddoc')}"/>
                        </classpath>
                        <arg value="-t"/>
                        <arg value="${pom.artifactId}-${pom.currentVersion}"/>
                        <arg value="-o"/>
                        <arg value="${maven.xsddoc.dest}/${file.getName()}"/>
                        <arg value="${file}"/>
                    </java>
                </j:forEach>
            </xsddocs>
        </j:file>
        <doc:jsl input="${maven.build.dir}/xsddocs-raw.xml"
                output="xsddocs-report.xml"
                stylesheet="${plugin.resources}/xsddocs-report.jsl"
                encoding="${maven.docs.outputencoding}"
                outputMode="xml"
                prettyPrint="true"/>
    </goal>

    <goal name="maven-xsddoc-plugin:deregister">
        <doc:deregisterReport name="XSD Docs"/>
    </goal>

</project>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
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.