This is an automated email from the ASF dual-hosted git repository. billblough pushed a commit to branch 1_5 in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 7be8bc96ff719d01beda963ea3f777f5d48e7d9e Author: Andreas Veithen <veit...@apache.org> AuthorDate: Sat Oct 29 16:04:12 2011 +0000 AXIS2-5173: Merged r835745 to the 1.5 branch. --- .../org/apache/axis2/jaxbri/CodeGenerationUtility.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java b/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java index 132c37a..bd19793 100644 --- a/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java +++ b/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java @@ -201,6 +201,21 @@ public class CodeGenerationUtility { }); sc.parseSchema((InputSource) schemaToInputSourceMap.get(key)); + sc.getOptions().addGrammar((InputSource) schemaToInputSourceMap.get(key)); + + for (Object property : properties.keySet()){ + String propertyName = (String) property; + if (propertyName.startsWith("X")) { + String[] args = null; + String propertyValue = (String) properties.get(property); + if (propertyValue != null) { + args = new String[]{"-" + propertyName, propertyValue}; + } else { + args = new String[]{"-" + propertyName}; + } + sc.getOptions().parseArguments(args); + } + } // Bind the XML S2JJAXBModel jaxbModel = sc.bind();