Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line image: maven:3.6.2-jdk-8 image: maven:3.9.6-jdk-11 build: stage: build Loading README.md +9 −0 Original line number Diff line number Diff line Loading @@ -17,3 +17,12 @@ This SAREF-Pipeline may be run: - by double-clicking the JAR file to starting the graphical user interface - or using the command line interface, run `java -jar saref-pipeline.jar help` to get started RELEASE NOTE for 2024-02-10 (v1.0.1) This version of the SAREF-Pipeline was compiled under Java v11.0.21. Ensure synchronized environment values by executing source saref-pipeline.env in an IntelliJ terminal. The JDK-11 requires Apache Maven v3.9.6 which can be downloaded from https://maven.apache.org/download.cgi Java JRE 11 does not have access to the old JAXB API, and the new JAXB RI replacement is not compatible with Java 8. Download the JAXB RI v3.0 distribution from https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-ri/3.0.0/ Copy the ./jaxb-ri folder into the project ./lib folder. Click Problems and Remove all unused libraries. src/main/java/fr/mines_stetienne/ci/saref/checkers/AbstractClauseChecker.java +1 −20 Original line number Diff line number Diff line Loading @@ -84,10 +84,10 @@ public abstract class AbstractClauseChecker extends AbstractChecker { /** * If the directory does not exist, create it. directoryPath can be relative or absolute. * If the file does not exist, create it with the default contents. Creates a file of length=0 if fileContents is empty. * * @param directoryPath * @param fileName * @param fileContents * @throws IOException */ public final void CreateFileInDirectoryWithContents(String directoryPath, String fileName, String[] fileContents) throws IOException { File theDir = new File(directoryPath); Loading @@ -110,23 +110,4 @@ public abstract class AbstractClauseChecker extends AbstractChecker { } } public final int CountFilesInDirectory(String directoryPath) throws IOException { int count = 0; File theDir = new File(directoryPath); if(theDir.exists()) { try { for (File file : theDir.listFiles()) { if (file.isFile()) { count++; } } } catch (Exception se) { throw new IOException("Unable to list directory " + directoryPath); } } else { throw new IOException("Directory does not exist " + directoryPath); } return count; } } No newline at end of file src/main/java/fr/mines_stetienne/ci/saref/checkers/Clause_9_6_Checker.java +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ public class Clause_9_6_Checker extends AbstractClauseChecker { if (!dir.isDirectory()) { //return; try { String[] lines = { String[] lines = { // saref4abcd template example1.ttl "@prefix dcterms: <http://purl.org/dc/terms/> .", "@prefix dctype: <http://purl.org/dc/dcmitype/> .", "@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .", Loading src/main/java/fr/mines_stetienne/ci/saref/managers/VersionSiteManager.java +4 −4 Original line number Diff line number Diff line /* * Copyright 2020 ETSI * Copyright 2024 ETSI * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: Loading Loading @@ -100,11 +100,11 @@ public class VersionSiteManager extends SAREFRepositoryVersionErrorLogger { generateHTMLFile(example); } } /*<<<if (!pipeline.ignoreDocumentation) { /* ??? if (!pipeline.ignoreDocumentation) { for(SAREFDocumentation documentation : version.getDocumentation().values()) { LOG.info("Generating site for " + documentation); LOG.info("Generating documentation for " + documentation); generateRDFFiles(documentation); generateHTMLFile(documentation); generateHTMLFiles(documentation); } }*/ } Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line image: maven:3.6.2-jdk-8 image: maven:3.9.6-jdk-11 build: stage: build Loading
README.md +9 −0 Original line number Diff line number Diff line Loading @@ -17,3 +17,12 @@ This SAREF-Pipeline may be run: - by double-clicking the JAR file to starting the graphical user interface - or using the command line interface, run `java -jar saref-pipeline.jar help` to get started RELEASE NOTE for 2024-02-10 (v1.0.1) This version of the SAREF-Pipeline was compiled under Java v11.0.21. Ensure synchronized environment values by executing source saref-pipeline.env in an IntelliJ terminal. The JDK-11 requires Apache Maven v3.9.6 which can be downloaded from https://maven.apache.org/download.cgi Java JRE 11 does not have access to the old JAXB API, and the new JAXB RI replacement is not compatible with Java 8. Download the JAXB RI v3.0 distribution from https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-ri/3.0.0/ Copy the ./jaxb-ri folder into the project ./lib folder. Click Problems and Remove all unused libraries.
src/main/java/fr/mines_stetienne/ci/saref/checkers/AbstractClauseChecker.java +1 −20 Original line number Diff line number Diff line Loading @@ -84,10 +84,10 @@ public abstract class AbstractClauseChecker extends AbstractChecker { /** * If the directory does not exist, create it. directoryPath can be relative or absolute. * If the file does not exist, create it with the default contents. Creates a file of length=0 if fileContents is empty. * * @param directoryPath * @param fileName * @param fileContents * @throws IOException */ public final void CreateFileInDirectoryWithContents(String directoryPath, String fileName, String[] fileContents) throws IOException { File theDir = new File(directoryPath); Loading @@ -110,23 +110,4 @@ public abstract class AbstractClauseChecker extends AbstractChecker { } } public final int CountFilesInDirectory(String directoryPath) throws IOException { int count = 0; File theDir = new File(directoryPath); if(theDir.exists()) { try { for (File file : theDir.listFiles()) { if (file.isFile()) { count++; } } } catch (Exception se) { throw new IOException("Unable to list directory " + directoryPath); } } else { throw new IOException("Directory does not exist " + directoryPath); } return count; } } No newline at end of file
src/main/java/fr/mines_stetienne/ci/saref/checkers/Clause_9_6_Checker.java +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ public class Clause_9_6_Checker extends AbstractClauseChecker { if (!dir.isDirectory()) { //return; try { String[] lines = { String[] lines = { // saref4abcd template example1.ttl "@prefix dcterms: <http://purl.org/dc/terms/> .", "@prefix dctype: <http://purl.org/dc/dcmitype/> .", "@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .", Loading
src/main/java/fr/mines_stetienne/ci/saref/managers/VersionSiteManager.java +4 −4 Original line number Diff line number Diff line /* * Copyright 2020 ETSI * Copyright 2024 ETSI * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: Loading Loading @@ -100,11 +100,11 @@ public class VersionSiteManager extends SAREFRepositoryVersionErrorLogger { generateHTMLFile(example); } } /*<<<if (!pipeline.ignoreDocumentation) { /* ??? if (!pipeline.ignoreDocumentation) { for(SAREFDocumentation documentation : version.getDocumentation().values()) { LOG.info("Generating site for " + documentation); LOG.info("Generating documentation for " + documentation); generateRDFFiles(documentation); generateHTMLFile(documentation); generateHTMLFiles(documentation); } }*/ } Loading