-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHRINKRES-9 Enabled explicit profile activation
* Enabled explicit profile activation * Enabled explicit profile disactivation * Full activation support
- Loading branch information
Showing
18 changed files
with
693 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...aven/src/main/java/org/jboss/shrinkwrap/resolver/impl/maven/LogModelProblemCollector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.jboss.shrinkwrap.resolver.impl.maven; | ||
|
||
import java.util.logging.Logger; | ||
|
||
import org.apache.maven.model.InputLocation; | ||
import org.apache.maven.model.building.ModelProblem.Severity; | ||
import org.apache.maven.model.building.ModelProblemCollector; | ||
|
||
public class LogModelProblemCollector implements ModelProblemCollector { | ||
private static final Logger log = Logger.getLogger(LogModelProblemCollector.class.getName()); | ||
|
||
private boolean hasSevereFailures; | ||
|
||
public LogModelProblemCollector() { | ||
this.hasSevereFailures = false; | ||
} | ||
|
||
@Override | ||
public void add(Severity severity, String message, InputLocation location, Exception cause) { | ||
|
||
switch (severity) { | ||
case WARNING: | ||
log.warning(message + ", caused by: " + cause.getMessage()); | ||
break; | ||
case ERROR: | ||
case FATAL: | ||
log.severe(message + ", caused by: " + cause.getMessage()); | ||
this.hasSevereFailures = true; | ||
break; | ||
} | ||
|
||
} | ||
|
||
public boolean hasSevereFailures() { | ||
return hasSevereFailures; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.