I have a few java files that have java 5 code in them.
After much googling, I came to the conclusion that I can't upgrade
xdoclet and have it process java 5 files.
The thing is that this java file does not contain any hibernatedoclet
tags, and build.xml is setup to ignore this file.
Most likely, I am doing something wrong, and would VERY much
appreciate if someone could take a look at this, and give me some
pointers:
ant build config's section:
==============================
[...... snipped ......]
<hibernatedoclet
destdir="${build.maps}" excludedtags="@version,@author,@todo"
addedtags="@xdoclet-generated by ${user.name} on ${TIMESTAMP}"
mergedir="${src.dir}/hibernate">
<!-- Generate Hibernate mappings for all PDOs -->
<fileset dir="${src.dir}/java">
<include name="**/pdo/**/*.java"/>
</fileset>
<!-- for unit test -->
<fileset dir="${src.test.dir}">
<include name="com/kiodex/test/mockObjects/MockTaskRequest.java"/>
</fileset>
<hibernate version="3.0"
prefixWithPackageStructure="${xdoclet.package.structure}"/>
</hibernatedoclet>
[...... snipped ......]
==============================
When the ant task is executed, I get the error:
==============================
[...... snipped ......]
[hibernatedoclet] (XDocletMain.start 47 ) Running
<hibernate/>
[hibernatedoclet] Error parsing File
/home-local/agautam/workspace/mdi-trunk/marketdata/mdi/src/java/com/kiodex/marketdata/PowerCurve.java:Encountered
"<" at line 139, column 48.
[hibernatedoclet] Was expecting one of:
[hibernatedoclet] "{" ...
[hibernatedoclet] "," ...
[hibernatedoclet] "." ...
[hibernatedoclet]
[...... snipped ......]
==============================
Notice that the file that fails has path: com/kiodex/marketdata/PowerCurve.java
In the build.xml, I have asked the task to include only files with .../pdo/...
I don;t see pdo is com/kiodex/marketdata/PowerCurve.java
What am I doing wrong?
Any much would be much appreciated.
Thanks
Ajay
--
Talk is cheap, show me the code.
http://www.ajaygautam.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user