I have no idea what's going on. Sometimes xdoclet (1.2b3) generates hibernate xml files
and sometimes it is not. Maybe someone could help and shine a light on it.
Here the situation:
I have a directory with two subdirectories
1) xdoclet: that's the binary distribution of xdoclet
2) test: directory for my package named test
and the files ant-jar, optional.jar und build.xml.
I start ant with the following statement:
java -classpath "optional.jar;." -jar ant.jar
(On windows, so it's a ;)
The build file is:
--------------------------
<?xml version="1.0"?>
<project name="test" default="hibernate" basedir=".">
<!-- =================================================================== -->
<!-- Define the class path -->
<!-- =================================================================== -->
<path id="xdoclet.class.path">
<fileset dir="./xdoclet/lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================================================== -->
<!-- Initialise -->
<!-- =================================================================== -->
<target name="init">
<taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="xdoclet.class.path"
/>
</target>
<!-- =================================================================== -->
<!-- Invoke XDoclet's hibernate -->
<!-- =================================================================== -->
<target name="hibernate" depends="init" description="Generate mapping documents">
<hibernatedoclet destdir="test" force="true">
<fileset dir="test">
<include name="Company.java"/>
</fileset>
<hibernate version="2.0"/>
</hibernatedoclet>
</target>
</project>
----------------------
The package test has only one java class:
-----------------------------------------------------
package test;
/**
*
* @hibernate.class
*/
public class Company {
private String id;
private String name;
/**
* @hibernate.id generator-class="assigned"
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
---------------------------------------------------------
if the java file contains the package statement, xdoclet doesn't generate
hibernate xml files. if i remove the package statement, it generates the
files. if have no clue.
Andreas
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code4
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user