Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSCAL Problem #28

Closed
ASH-SYSTEMS opened this issue Dec 8, 2022 · 0 comments
Closed

OSCAL Problem #28

ASH-SYSTEMS opened this issue Dec 8, 2022 · 0 comments

Comments

@ASH-SYSTEMS
Copy link
Contributor

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] ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant