IAI-Cyber / TRADES

TRADES Tool
Eclipse Public License 2.0
15 stars 6 forks source link

OSCAL Problem #28

Closed ASH-SYSTEMS closed 1 year ago

ASH-SYSTEMS commented 1 year ago

When trying to generate a version, there is an OSCAL related problem reported. It seems like "import gov.nist.secauto.metaschema.datatypes.DataTypes" in OscalDataTypeHandlerGenerator.xtend fails.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.3.0:compile (default-compile) on project dsm.oscal.ext: Compilation failure: Compilation failure: [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\xtend-gen\dsm\oscal\ext\ItemProviderGenerator.java:[90] [ERROR] Files.writeString(targetPath, this.generateBaseClassContent(genClass, packageName, baseCustomClassName, imagePath), [ERROR] ^^^^^^^^^^^ [ERROR] The method writeString(Path, String, StandardOpenOption, StandardOpenOption) is undefined for the type Files [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\xtend-gen\dsm\oscal\ext\ItemProviderGenerator.java:[99] [ERROR] Files.writeString(customTargetPath, [ERROR] ^^^^^^^^^^^ [ERROR] The method writeString(Path, String, StandardOpenOption, StandardOpenOption) is undefined for the type Files [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\src\dsm\oscal\ext\MetaschemaToEcoreApplication.java:[37] [ERROR] .transform(List.of(// [ERROR] ^^ [ERROR] The method of(String, String, String) is undefined for the type List [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\src\dsm\oscal\ext\MetaschemaToEcoreApplication.java:[49] [ERROR] ), Path.of(args[0])); [ERROR] ^^ [ERROR] The method of(String) is undefined for the type Path [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\xtend-gen\dsm\oscal\ext\OscalDataTypeHandlerGenerator.java:[68] [ERROR] _xblockexpression = Files.writeString(file, this.generateClassContent(), StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); [ERROR] ^^^^^^^^^^^ [ERROR] The method writeString(Path, String, StandardOpenOption, StandardOpenOption) is undefined for the type Files [ERROR] C:\Users\scmas9\git\TRADES\bundles\dsm.oscal.ext\src\dsm\oscal\ext\DeleteMetaschemaAnnotApplication.java:[46] [ERROR] Files.walk(Path.of(args[0])).filter(p -> p.getFileName().toString().endsWith("ecore")) [ERROR] ^^