Skip to content

Commit 569cea3

Browse files
committed
Uncommented and rewrote using Jackson, regenerated files
1 parent 5dbb18b commit 569cea3

File tree

2 files changed

+823
-823
lines changed

2 files changed

+823
-823
lines changed

BimServer/src/org/bimserver/IfcSchemaToJson.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
public class IfcSchemaToJson {
4343
public static void main(String[] args) {
4444
generateGeometry();
45-
generateIfc2x3tc1();
46-
generateIfc4();
45+
generateIfc2x3tc1(args[0]);
46+
generateIfc4(args[1]);
4747
}
4848

49-
private static void generateIfc4() {
49+
private static void generateIfc4(String location) {
5050
FileOutputStream fos = null;
5151
try {
5252
fos = new FileOutputStream(new File("www/js/ifc4.js"));
53-
new IfcSchemaToJson().convert(fos, new File("C:\\Users\\Ruben de Laat\\Downloads\\ifc4-add2 (1)\\schema"), Ifc4Package.eINSTANCE);
53+
new IfcSchemaToJson().convert(fos, new File(location), Ifc4Package.eINSTANCE);
5454
} catch (FileNotFoundException e) {
5555
e.printStackTrace();
5656
} catch (IOException e) {
@@ -66,11 +66,11 @@ private static void generateIfc4() {
6666
}
6767
}
6868

69-
private static void generateIfc2x3tc1() {
69+
private static void generateIfc2x3tc1(String location) {
7070
FileOutputStream fos = null;
7171
try {
7272
fos = new FileOutputStream(new File("www/js/ifc2x3tc1.js"));
73-
new IfcSchemaToJson().convert(fos, new File("C:\\Users\\Ruben de Laat\\Downloads\\IFC2x3_TC1_HTML_distribution-pset_errata"), Ifc2x3tc1Package.eINSTANCE);
73+
new IfcSchemaToJson().convert(fos, new File(location), Ifc2x3tc1Package.eINSTANCE);
7474
} catch (FileNotFoundException e) {
7575
e.printStackTrace();
7676
} catch (IOException e) {

0 commit comments

Comments
 (0)