File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
src/main/java/pl/project13/maven/git Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -305,8 +305,8 @@ public void execute() throws MojoExecutionException {
305
305
prefixDot = prefix + "." ;
306
306
307
307
loadGitData (properties );
308
- filterNot (properties , excludeProperties );
309
308
loadBuildTimeData (properties );
309
+ filterNot (properties , excludeProperties );
310
310
logProperties (properties );
311
311
312
312
if (generateGitPropertiesFile ) {
@@ -316,7 +316,7 @@ public void execute() throws MojoExecutionException {
316
316
if (injectAllReactorProjects ) {
317
317
appendPropertiesToReactorProjects (properties );
318
318
}
319
- } catch (IOException e ) {
319
+ } catch (Exception e ) {
320
320
handlePluginFailure (e );
321
321
}
322
322
@@ -340,7 +340,7 @@ public Predicate<CharSequence> apply(String exclude) {
340
340
341
341
for (String key : properties .stringPropertyNames ()) {
342
342
if (shouldExclude .apply (key )) {
343
- System . out . println ("shouldExclude.apply(" + key +") = " + shouldExclude .apply (key ));
343
+ loggerBridge . debug ("shouldExclude.apply(" + key +") = " + shouldExclude .apply (key ));
344
344
properties .remove (key );
345
345
}
346
346
}
Original file line number Diff line number Diff line change 20
20
public interface LoggerBridge {
21
21
void log (Object ... parts );
22
22
void error (Object ... parts );
23
+ void debug (Object ... parts );
23
24
void setVerbose (boolean verbose );
24
25
}
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ public void error(Object... parts) {
43
43
logger .error (Joiner .on (" " ).join (parts ));
44
44
}
45
45
}
46
+
47
+ @ Override
48
+ public void debug (Object ... parts ) {
49
+ if (verbose ) {
50
+ logger .debug (Joiner .on (" " ).join (parts ));
51
+ }
52
+ }
46
53
47
54
@ Override
48
55
public void setVerbose (boolean verbose ) {
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ public void error(Object... parts) {
40
40
System .out .println ("ERR: " + Joiner .on (" " ).join (parts ));
41
41
}
42
42
}
43
+
44
+ @ Override
45
+ public void debug (Object ... parts ) {
46
+ if (verbose ) {
47
+ System .out .println ("DBG: " + Joiner .on (" " ).join (parts ));
48
+ }
49
+ }
43
50
44
51
@ Override
45
52
public void setVerbose (boolean verbose ) {
You can’t perform that action at this time.
0 commit comments