Package org.exolab.castor.builder

Examples of org.exolab.castor.builder.SourceGenerator.generateSource()


        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here


        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here

        // uncomment the next lines to set custom properties for source generation
//      Properties properties = new Properties();
//      properties.load(getClass().getResource("builder.properties").openStream());
//      generator.setDefaultProperties(properties);

        generator.generateSource(inputSource, getClass().getPackage().getName() + ".generated");
    }
   
}
View Full Code Here

                    assertNotNull("Unable to find the schema: ", schemaName);
                }

                InputSource source = new InputSource(new FileReader(schemaFile));
                source.setSystemId(schemaFile.getAbsolutePath());
                sourceGen.generateSource(source, _package);
            }
        } catch (Exception e) {
            if (!checkExceptionWasExpected(e, FailureStepType.SOURCE_GENERATION)) {
                fail("Source Generator threw an Exception: " + e.getMessage());
            }
View Full Code Here

        sgen.setSuppressNonFatalWarnings(_force);
        sgen.setDestDir(_destDir.toString());
        if (_force) { project.log("Suppressing non fatal warnings.", Project.MSG_VERBOSE); }

        try {
            sgen.generateSource(_schema.getAbsolutePath(), _pkgName);
        } catch (IOException ex) {
            project.log("Failed to compile " + _schema, Project.MSG_INFO);
            throw new BuildException(ex);
        }
    }
View Full Code Here

        sgen.setDestDir(destDir.toString());
        if (force)
            project.log("Suppressing non fatal warnings.",project.MSG_VERBOSE);
       
        try {
            sgen.generateSource(schema.getAbsolutePath(), pkgName);
        } catch(IOException ex) {
      project.log("Failed to compile " + schema,project.MSG_INFO);
            throw new BuildException(ex);
        }
    } //-- execute
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.