|
From: Anders H. <and...@ca...> - 2010-07-06 10:58:47
|
Hi,
I am trying to parse an ifc file to xml by using a method equal to the
start() method in Tests/src/org/tests/IfcXmlWriteTester.java
private void start() {
ExpressSchemaParser schemaParser = new
ExpressSchemaParser(IfcFileReader.DEFAULT_SCHEMA_FILE);
schemaParser.parse();
SchemaDefinition schema = schemaParser.getSchema();
FastIfcFileReader reader = new FastIfcFileReader(schema);
try {
reader.read(TestFile.HAUS_SOURCE_FILE.getFile());
} catch (IncorrectIfcFileException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
EmfModel<Long> model = reader.getModel();
IfcXmlSerializer ifcXmlWriter = new IfcXmlSerializer("", model,
schema);
ifcXmlWriter.write(new File("test.xml"));
}
I have added all the modules "Tests" depend on to my project .classpath, and
I get no compile errors, but when I try to run the application, I get errors
like:
"No source code is available for type
nl.tue.buildingsmart.express.parser.ExpressSchemaParser; did you forget to
inherit a required module?
No source code is available for type java.io.File; did you forget to inherit
a required module?"
Is there something else I have to set to be able to use the parser in
another project?
Regards
Anders H
|