Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.7
-
Fix Version/s: None
-
Component/s: Maven2 plugin
-
Labels:None
-
Environment:all
-
Patch Submitted:Yes
-
Number of attachments :
Description
The template velocity files are incorrect, they print simple name (unqualified) for types, but they don't print imports.
This can occur in method return type, method parameter type, methods throws declaration...
cf
./src/main/java/org/xdoclet/plugin/ejb/interfaces/LocalHomeInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/LocalInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/RemoteHomeInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/RemoteInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/ServiceEndpointPlugin.vm
patch to apply to files :
add the following lines in the header of the velocity files:
// <<<<<<<<<<<<<<<<<
#foreach( $imp in $class.getParent().getImports() )
import $imp;
#end
// >>>>>>>>>>>>>>>>>