Skip to content

Commit

Permalink
Uncommented and rewrote using Jackson, regenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendel committed Jan 30, 2020
1 parent 5dbb18b commit 569cea3
Show file tree
Hide file tree
Showing 2 changed files with 823 additions and 823 deletions.
12 changes: 6 additions & 6 deletions BimServer/src/org/bimserver/IfcSchemaToJson.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
public class IfcSchemaToJson {
public static void main(String[] args) {
generateGeometry();
generateIfc2x3tc1();
generateIfc4();
generateIfc2x3tc1(args[0]);
generateIfc4(args[1]);
}

private static void generateIfc4() {
private static void generateIfc4(String location) {
FileOutputStream fos = null;
try {
fos = new FileOutputStream(new File("www/js/ifc4.js"));
new IfcSchemaToJson().convert(fos, new File("C:\\Users\\Ruben de Laat\\Downloads\\ifc4-add2 (1)\\schema"), Ifc4Package.eINSTANCE);
new IfcSchemaToJson().convert(fos, new File(location), Ifc4Package.eINSTANCE);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
Expand All @@ -66,11 +66,11 @@ private static void generateIfc4() {
}
}

private static void generateIfc2x3tc1() {
private static void generateIfc2x3tc1(String location) {
FileOutputStream fos = null;
try {
fos = new FileOutputStream(new File("www/js/ifc2x3tc1.js"));
new IfcSchemaToJson().convert(fos, new File("C:\\Users\\Ruben de Laat\\Downloads\\IFC2x3_TC1_HTML_distribution-pset_errata"), Ifc2x3tc1Package.eINSTANCE);
new IfcSchemaToJson().convert(fos, new File(location), Ifc2x3tc1Package.eINSTANCE);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
Expand Down
Loading

0 comments on commit 569cea3

Please sign in to comment.