Skip to content

Commit 085fa0c

Browse files
author
Dennis Labordus
committed
Merge branch 'develop' into fix-release-action
2 parents e76ccd4 + 49d022d commit 085fa0c

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.github/workflows/build-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
id: buildx
2929
uses: docker/setup-buildx-action@v1
3030
- name: Cache Docker Register
31-
uses: actions/cache@v2
31+
uses: actions/cache@v3
3232
with:
3333
path: /tmp/.buildx-cache
3434
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
3535
- name: Cache Maven packages
36-
uses: actions/cache@v2.1.6
36+
uses: actions/cache@v3
3737
with:
3838
path: ~/.m2
3939
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/release-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2828
password: ${{ secrets.DOCKER_HUB_TOKEN }}
2929
- name: Cache Docker Register
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
path: /tmp/.buildx-cache
3333
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
3434
- name: Cache Maven packages
35-
uses: actions/cache@v2.1.6
35+
uses: actions/cache@v3
3636
with:
3737
path: ~/.m2
3838
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/sonarcloud-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
distribution: 'zulu'
3838
java-version: '11'
3939
- name: Cache SonarCloud packages
40-
uses: actions/cache@v2.1.6
40+
uses: actions/cache@v3
4141
with:
4242
path: ~/.sonar/cache
4343
key: ${{ runner.os }}-sonar
4444
restore-keys: ${{ runner.os }}-sonar
4545
- name: Cache Maven packages
46-
uses: actions/cache@v2.1.6
46+
uses: actions/cache@v3
4747
with:
4848
path: ~/.m2
4949
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

riseclipse/validator-riseclipse/src/main/java/org/lfenergy/compas/scl/validator/collector/CompasOclFileCollector.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,27 @@ public CompasOclFileCollector(String oclCustomDirectory) {
2626
@Override
2727
public List<URI> getOclFiles() {
2828
LOGGER.debug("Searching for OCL Files in classpath.");
29-
3029
var oclFiles = new ArrayList<>(getDefaultOclFilesFromClasspath());
30+
3131
if (oclCustomDirectory != null) {
3232
LOGGER.debug("Searching for OCL Files in custom directory '{}'.", oclCustomDirectory);
3333
oclFiles.addAll(getFilesFromDirectory(oclCustomDirectory, path -> path.toString().endsWith(".ocl")));
3434
}
35+
36+
logListOfFiles(oclFiles);
3537
return oclFiles;
3638
}
39+
40+
/**
41+
* Log the list of files found during startup.
42+
*
43+
* @param oclFiles The List of Files found.
44+
*/
45+
protected void logListOfFiles(ArrayList<URI> oclFiles) {
46+
if (oclFiles != null && !oclFiles.isEmpty()) {
47+
oclFiles.forEach(oclFile -> LOGGER.info("Found OCL File '{}'", oclFile));
48+
} else {
49+
LOGGER.warn("No OCL Files found!");
50+
}
51+
}
3752
}

0 commit comments

Comments
 (0)