continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1675866 - in /continuum/trunk: .gitignore continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java
Date Fri, 24 Apr 2015 14:12:12 GMT
Author: batkinson
Date: Fri Apr 24 14:12:11 2015
New Revision: 1675866

URL: http://svn.apache.org/r1675866
Log:
Fixed git ignore to include packages named build.

Added:
    continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java
Modified:
    continuum/trunk/.gitignore

Modified: continuum/trunk/.gitignore
URL: http://svn.apache.org/viewvc/continuum/trunk/.gitignore?rev=1675866&r1=1675865&r2=1675866&view=diff
==============================================================================
--- continuum/trunk/.gitignore (original)
+++ continuum/trunk/.gitignore Fri Apr 24 14:12:11 2015
@@ -9,3 +9,4 @@ continuum-webapp/data/
 *.iml
 .idea
 build/
+!**/src/**/build/

Added: continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java?rev=1675866&view=auto
==============================================================================
--- continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java
(added)
+++ continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/build/BuildException.java
Fri Apr 24 14:12:11 2015
@@ -0,0 +1,34 @@
+package org.apache.maven.continuum.build;
+
+import org.apache.maven.continuum.ContinuumException;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * Represents an exceptional build condition.
+ */
+public class BuildException
+    extends ContinuumException
+{
+    private String key;
+
+    public BuildException( String message, String key )
+    {
+        super( message );
+        this.key = key;
+    }
+
+    @Override
+    public String getLocalizedMessage()
+    {
+        try
+        {
+            return ResourceBundle.getBundle( "localization/Continuum" ).getString( key );
+        }
+        catch ( MissingResourceException mre )
+        {
+            return getMessage();
+        }
+    }
+}



Mime
View raw message