@SuppressWarnings("deprecation") private Options getOptions(SchemaCompiler schemaCompiler) throws ToolException { return schemaCompiler.getOptions(); }
@SuppressWarnings("deprecation") private Options getOptions(SchemaCompiler schemaCompiler) throws ToolException { return schemaCompiler.getOptions(); }
SchemaCompiler sc = ...; File bindings = new File(...); sc.getOptions().addBindFile( bindings );
@Override protected void disableXmlSecurity() { super.disableXmlSecurity(); schemaCompiler.getOptions().disableXmlSecurity = true; } }
@Override protected void disableXmlSecurity() { super.disableXmlSecurity(); schemaCompiler.getOptions().disableXmlSecurity = true; } }
@Override protected void disableXmlSecurity() { super.disableXmlSecurity(); schemaCompiler.getOptions().disableXmlSecurity = true; } }
@Override protected void disableXmlSecurity() { super.disableXmlSecurity(); schemaCompiler.getOptions().disableXmlSecurity = true; } }
private static void scanEpisodeFile(File jar, SchemaCompiler sc) throws BadCommandLineException, IOException { URLClassLoader ucl = new URLClassLoader(new URL[]{jar.toURI().toURL()}); Enumeration<URL> resources = ucl.findResources("META-INF/sun-jaxb.episode"); while (resources.hasMoreElements()) { URL url = resources.nextElement(); sc.getOptions().addBindFile(new InputSource(url.toExternalForm())); } }
private static void scanEpisodeFile(File jar, SchemaCompiler sc) throws BadCommandLineException, IOException { URLClassLoader ucl = new URLClassLoader(new URL[]{jar.toURI().toURL()}); Enumeration<URL> resources = ucl.findResources("META-INF/sun-jaxb.episode"); while (resources.hasMoreElements()) { URL url = resources.nextElement(); sc.getOptions().addBindFile(new InputSource(url.toExternalForm())); } }
schemaCompiler.getOptions().scanEpisodeFile(new File(args[i])); if (encoding != null && schemaCompiler.getOptions().encoding == null) { try { schemaCompiler.getOptions().parseArgument( new String[] {"-encoding", encoding}, 0); } catch (com.sun.tools.xjc.BadCommandLineException ex) {
schemaCompiler.getOptions().scanEpisodeFile(new File(args[i])); if (encoding != null && schemaCompiler.getOptions().encoding == null) { try { schemaCompiler.getOptions().parseArgument( new String[] {"-encoding", encoding}, 0); } catch (com.sun.tools.xjc.BadCommandLineException ex) {
schemaCompiler.getOptions().scanEpisodeFile(new File(args[i])); if (encoding != null && schemaCompiler.getOptions().encoding == null) { try { schemaCompiler.getOptions().parseArgument( new String[] {"-encoding", encoding}, 0); } catch (com.sun.tools.xjc.BadCommandLineException ex) {
schemaCompiler.getOptions().scanEpisodeFile(new File(args[i])); if (encoding != null && schemaCompiler.getOptions().encoding == null) { try { schemaCompiler.getOptions().parseArgument( new String[] {"-encoding", encoding}, 0); } catch (com.sun.tools.xjc.BadCommandLineException ex) {
subCmd[0] = subCmd[0].substring(2); // trim off the first "-B" com.sun.tools.xjc.Options jaxbOptions = schemaCompiler.getOptions(); try { int r = jaxbOptions.parseArgument(subCmd, 0);
subCmd[0] = subCmd[0].substring(2); // trim off the first "-B" com.sun.tools.xjc.Options jaxbOptions = schemaCompiler.getOptions(); try { int r = jaxbOptions.parseArgument(subCmd, 0);
subCmd[0] = subCmd[0].substring(2); // trim off the first "-B" com.sun.tools.xjc.Options jaxbOptions = schemaCompiler.getOptions(); try { int r = jaxbOptions.parseArgument(subCmd, 0);
subCmd[0] = subCmd[0].substring(2); // trim off the first "-B" com.sun.tools.xjc.Options jaxbOptions = schemaCompiler.getOptions(); try { int r = jaxbOptions.parseArgument(subCmd, 0);
applyXjcArguments(s2j.getOptions()); s2jModel = s2j.bind(); if (s2jModel != null) {
InputSource inputSoruce = new InputSource(new FileInputStream(bindingFileName)); inputSoruce.setSystemId(new File(bindingFileName).toURI().toString()); sc.getOptions().addBindFile(inputSoruce); sc.getOptions().addGrammar((InputSource) schemaToInputSourceMap.get(key)); args = new String[]{"-" + propertyName}; sc.getOptions().parseArguments(args);
options.parseArguments(new String[0]); assertNull("ws encoding set", options.encoding); assertNull("xjc encoding set", sc.getOptions().encoding); assertNotNull("ws encoding not set", options.encoding); assertEquals("UTF-8", options.encoding); assertNotNull("xjc encoding not set", sc.getOptions().encoding); assertEquals("UTF-8", sc.getOptions().encoding); assertNotNull("ws encoding not set", options.encoding); assertEquals("UTF-8", options.encoding); assertNotNull("xjc encoding not set", sc.getOptions().encoding); assertEquals("UTF-16", sc.getOptions().encoding); options.parseArguments(args); assertNull("ws encoding set", options.encoding); assertNotNull("xjc encoding not set", sc.getOptions().encoding); assertEquals("UTF-16", sc.getOptions().encoding);