summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/monitor/src/main/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-09-21 13:14:57 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-09-21 13:14:57 +0000
commitbca8bdc82799c12f9f1bdfeaa09177db3c2ca77a (patch)
tree67a899f5b5f6541427c566c4f1a280cac07be899 /sca-java-2.x/trunk/modules/monitor/src/main/java
parenta51dadea1a6c28a0b4e1fceafbee00c835320399 (diff)
Don't do the build time binding if errors have been reported during the build steps
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1173616 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/monitor/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java b/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
index 3eda98ee23..eca0b9aba1 100644
--- a/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
+++ b/sca-java-2.x/trunk/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
@@ -361,4 +361,18 @@ public abstract class Monitor {
reset();
}
}
+
+ public boolean isErrorDetected() {
+
+ boolean errorDetected = false;
+
+ for (Problem problem : getProblems()) {
+ if ((problem.getSeverity() == Severity.ERROR)) {
+ errorDetected = true;
+ break;
+ }
+ }
+
+ return errorDetected;
+ }
}