Update of /cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/xdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23760

Modified Files:
        about.xml navigation.xml 
Log Message:
Fixed docs

Index: navigation.xml
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/xdocs/navigation.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** navigation.xml      10 Dec 2003 17:13:17 -0000      1.2
--- navigation.xml      26 Apr 2005 12:09:11 -0000      1.3
***************
*** 1,25 ****
  <?xml version="1.0"  encoding="ISO-8859-1"?>
  
- <!DOCTYPE project [
-     <!ENTITY amp "&#233;">
- ]>
- 
  <project name="xdoclet-plugin-hibernate" repository="xdoclet-plugins" 
href="http://xdoclet-plugins.sf.net/";>
! 
!   <title>XDoclet Plugins</title>
! 
!   <body>
!     <search/>
! 
!     <links>
!        <item name="Issue Tracker"               
href="http://jira.codehaus.org/secure/BrowseProject.jspa?id=10231"/>
!     </links>
! 
!     <menu name="Hibernate plugin">
!               <item name="Introduction" href="/about.html"/>
!               <item name="Hibernate tags" href="/qtags.html"/>
!     </menu>
!     
!   </body>
! 
  </project>
--- 1,15 ----
  <?xml version="1.0"  encoding="ISO-8859-1"?>
  
  <project name="xdoclet-plugin-hibernate" repository="xdoclet-plugins" 
href="http://xdoclet-plugins.sf.net/";>
!     <title>XDoclet Plugins</title>
!     <body>
!         <search/>
!         <links>
!             <item name="Issue Tracker" 
href="http://jira.codehaus.org/secure/BrowseProject.jspa?id=10231"/>
!         </links>
!         <menu name="Hibernate plugin">
!             <item name="Introduction" href="/about.html"/>
!             <item name="Hibernate tags" href="/qtags.html"/>
!         </menu>
!     </body>
  </project>

Index: about.xml
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/xdocs/about.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** about.xml   8 Dec 2003 10:45:09 -0000       1.1
--- about.xml   26 Apr 2005 12:09:10 -0000      1.2
***************
*** 5,44 ****
      </properties>
      <body>
!               <section name="About XDoclet hibernate plugin">
!                       <p>
!                               This plugin generates hibernate mapping files
!                       </p>
!               </section>
!               <section name="Invoking hibernate plugin">
!                       <p>
!                               Hibernate plugin can be invoked from maven as 
follows
! <source>
!  &lt;goal name=&quot;hibernate-mappings&quot;&gt;
!         &lt;path id=&quot;xdoclet.task.classpath&quot;&gt;
!                         &lt;pathelement 
location=&quot;${basedir}/src/main/merge&quot;/&gt;
!                         &lt;pathelement 
location=&quot;${basedir}/src/test/&quot;/&gt;
!             &lt;path refid=&quot;maven.dependency.classpath&quot;/&gt;
!         &lt;/path&gt;
  
!                 &lt;taskdef
!                         name=&quot;xdoclet&quot;
!                         classname=&quot;org.xdoclet.ant.XDocletTask&quot;
!                         classpathref=&quot;xdoclet.task.classpath&quot;
!                 /&gt;
!        &lt;xdoclet&gt;
!             &lt;fileset dir=&quot;${pom.build.sourceDirectory}&quot;&gt;
!                 &lt;include name=&quot;**/*.java&quot;/&gt;
!             &lt;/fileset&gt;
  
!          &lt;component
!               
classname=&quot;org.xdoclet.plugin.hibernate.HibernateMappingPlugin&quot;
!               destdir=&quot;${basedir}/target/xdoclet/hibernatedoclet&quot;
!               /&gt;
!         &lt;/xdoclet&gt;
  
!   &lt;/goal&gt;
! </source>
!                       </p>
!               </section>
!       </body>
! </document>
\ No newline at end of file
--- 5,120 ----
      </properties>
      <body>
!         <section name="About XDoclet hibernate plugin">
!             <p>This plugin generates hibernate mapping and configuration 
files</p>
!         </section>
!         <section name="Invoking hibernate plugin from Maven">
!             <p>
!                 First you need to add to your POM xdoclet dependencies which 
are includes xdoclet plugin and dependent
!                 libraries.
!                 Here is an example of dependencies that you should add.
!             <source><![CDATA[    <dependency>
!       <groupId>xdoclet</groupId>
!       <artifactId>maven-xdoclet2-plugin</artifactId>
!       <version>SNAPSHOT</version>
!       <type>plugin</type>
!     </dependency>
!     <dependency>
!       <groupId>commons-jelly</groupId>
!       <artifactId>commons-jelly-tags-define</artifactId>
!       <version>1.0</version>
!       <properties>
!         <xdoclet.dependency>true</xdoclet.dependency>
!       </properties>
!     </dependency>
!     <dependency>
!       <groupId>xdoclet-plugins</groupId>
!       <artifactId>xdoclet-plugin-hibernate</artifactId>
!       <version>SNAPSHOT</version>
!       <properties>
!         <xdoclet.dependency>true</xdoclet.dependency>
!       </properties>
!     </dependency>
! ]]></source>
!             </p>
!             <p>
!                 The main configuration goes in project.properties file where 
you should add following properties
!             <source>
!                 maven.xdoclet.0=hibernate
!                 
maven.xdoclet.0.fileset.0.dir=${pom.build.sourceDirectory}/com/mycompany/
!                 maven.xdoclet.0.fileset.0.include=**/*.java
!                 
maven.xdoclet.0.hibernate=org.xdoclet.plugin.hibernate.HibernateMappingPlugin
!                 maven.xdoclet.0.hibernate.destdir=${maven.build.dest}
!                 maven.xdoclet.0.hibernate.version=3.0
  
!                 maven.xdoclet.1=hibernate
!                 
maven.xdoclet.1.fileset.0.dir=${pom.build.sourceDirectory}/com/mycompany/
!                 maven.xdoclet.1.fileset.0.include=**/*.java
!                 
maven.xdoclet.1.hibernate=org.xdoclet.plugin.hibernate.HibernateConfigPlugin
!                 
maven.xdoclet.1.hibernate.destdir=${maven.build.dest}/com/mycompany/
!                 maven.xdoclet.1.hibernate.version=3.0
!             </source>
!                 It means that you want to generate mapping and .cfg.xml files 
for Hibernate3 from your domain model 
!             </p>
!             <p>
!                 Hibernate plugin can be invoked from maven as follows
!                 <source><![CDATA[maven xdoclet2:run]]></source>
!             </p>
!     </section>
!     <section name="Invoking hibernate plugin from Ant">
!         <p>Script wich invokes Ant task listed below. If you familar with Ant 
it is no problem for you.
!             First you need add dependencies to your classpath then invoke 
XDoclet with appropriate plugin class.
!             In our case it 
org.xdoclet.plugin.hibernate.HibernateMappingPlugin class.</p>
  
!         <source><![CDATA[<project name="xdoclet-sample" default="xdoclet">
  
!    <property file="build.properties"/>
!    <property name="xdoclet.lib.dir" value="${user.home}/.maven/repository"/>
! 
!    <target name="xdoclet">
!        <mkdir dir="${basedir}/target/xdoclet/persistence"/>
!        <path id="xdoclet.task.classpath">
!            <!-- Add the xdoclet2 plugins jar here -->
!            <pathelement 
location="${xdoclet.lib.dir}/xdoclet-plugins/jars/your-plugin.jar"/>
! 
!            <!-- xdoclet2 runtime dependencies -->
!            <pathelement 
location="${xdoclet.lib.dir}/xdoclet/jars/xdoclet2-SNAPSHOT.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/generama/jars/generama-SNAPSHOT.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/picocontainer/jars/picocontainer-1.0.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/nanocontainer/jars/nanocontainer-1.0-beta-1.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/nanocontainer/jars/nanocontainer-ant-1.0-beta-1.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/qdox/jars/qdox-1.6-SNAPSHOT.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/velocity/jars/velocity-1.4.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-collections/jars/commons-collections-2.1.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-jelly/jars/commons-jelly-1.0-beta-4-SNAPSHOT.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-jelly/jars/commons-jelly-tags-define-20030211.142932.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/log4j/jars/log4j-1.2.8.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-logging/jars/commons-logging-1.0.4.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/dom4j/jars/dom4j-1.4.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-beanutils/jars/commons-beanutils-1.6.1.jar"/>
!            <pathelement 
location="${xdoclet.lib.dir}/commons-jexl/jars/commons-jexl-1.0-beta-2.jar"/>
!        </path>
! 
!        <taskdef
!            name="xdoclet"
!            classname="org.xdoclet.ant.XDocletTask"
!            classpathref="xdoclet.task.classpath"
!            />
! 
!        <xdoclet>
!            <!-- defines the file handled by xdoclet2 -->
!            <fileset dir="src/java">
!                <include name="**/*.java"/>
!            </fileset>
! 
!            <!-- defines the processing of a plugin -->
!            <component
!              classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
!              destdir="${basedir}/target/xdoclet/"
!              version="2.0" <!-- Not required, default 2.0 version -->
!              />
!        </xdoclet>
!    </target>
! 
! </project>]]></source>
!     </section>
! </body>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to