Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
ClientGen9Mojo should support the Catalog attribute. Sorry I don't have the ability to provide a proper patch, but the code need only add a new catalog attribute and add the following code:
// clientGen.setCatalog( new File( this.catalogFile ) );
method = ReflectionUtils.getSetter("catalog", clientGen.getClass());
if (method != null) {
method.invoke(clientGen, new Object[]
);
}
As these classes are updated by Oracle it seems like there it becomes increasingly difficult to support new options. It might make sense to store all property values in a map and use reflection to set all of them on the underlying ant task so that future updates and new values can be automatically supported without requring additional code changes to the Mojo. New values could be explicitly added later with getters and setters, but this would allow new features to work as soon as they were available.