File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed
riseclipse/validator-riseclipse/src/main/java/org/lfenergy/compas/scl/validator/collector Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ jobs:
28
28
id : buildx
29
29
uses : docker/setup-buildx-action@v1
30
30
- name : Cache Docker Register
31
- uses : actions/cache@v2
31
+ uses : actions/cache@v3
32
32
with :
33
33
path : /tmp/.buildx-cache
34
34
key : ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
35
35
- name : Cache Maven packages
36
- uses : actions/cache@v2.1.6
36
+ uses : actions/cache@v3
37
37
with :
38
38
path : ~/.m2
39
39
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ jobs:
27
27
username : ${{ secrets.DOCKER_HUB_USERNAME }}
28
28
password : ${{ secrets.DOCKER_HUB_TOKEN }}
29
29
- name : Cache Docker Register
30
- uses : actions/cache@v2
30
+ uses : actions/cache@v3
31
31
with :
32
32
path : /tmp/.buildx-cache
33
33
key : ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
34
34
- name : Cache Maven packages
35
- uses : actions/cache@v2.1.6
35
+ uses : actions/cache@v3
36
36
with :
37
37
path : ~/.m2
38
38
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ jobs:
37
37
distribution : ' zulu'
38
38
java-version : ' 11'
39
39
- name : Cache SonarCloud packages
40
- uses : actions/cache@v2.1.6
40
+ uses : actions/cache@v3
41
41
with :
42
42
path : ~/.sonar/cache
43
43
key : ${{ runner.os }}-sonar
44
44
restore-keys : ${{ runner.os }}-sonar
45
45
- name : Cache Maven packages
46
- uses : actions/cache@v2.1.6
46
+ uses : actions/cache@v3
47
47
with :
48
48
path : ~/.m2
49
49
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change @@ -26,12 +26,27 @@ public CompasOclFileCollector(String oclCustomDirectory) {
26
26
@ Override
27
27
public List <URI > getOclFiles () {
28
28
LOGGER .debug ("Searching for OCL Files in classpath." );
29
-
30
29
var oclFiles = new ArrayList <>(getDefaultOclFilesFromClasspath ());
30
+
31
31
if (oclCustomDirectory != null ) {
32
32
LOGGER .debug ("Searching for OCL Files in custom directory '{}'." , oclCustomDirectory );
33
33
oclFiles .addAll (getFilesFromDirectory (oclCustomDirectory , path -> path .toString ().endsWith (".ocl" )));
34
34
}
35
+
36
+ logListOfFiles (oclFiles );
35
37
return oclFiles ;
36
38
}
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
+ }
37
52
}
You can’t perform that action at this time.
0 commit comments