You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2008/11/17 13:27:09 UTC

svn commit: r718230 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java

Author: bodewig
Date: Mon Nov 17 04:27:09 2008
New Revision: 718230

URL: http://svn.apache.org/viewvc?rev=718230&view=rev
Log:
make it a runtime exception

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java?rev=718230&r1=718229&r2=718230&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java Mon Nov 17 04:27:09 2008
@@ -21,6 +21,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.types.Reference;
 import org.apache.tools.ant.types.Resource;
 
@@ -64,7 +65,7 @@
      * Not supported.
      */
     public void setName(String name) {
-        throw new ImmutableResourceException();
+        throw new BuildException(new ImmutableResourceException());
     }
 
     /**
@@ -78,7 +79,7 @@
      * Not supported.
      */
     public void setExists(boolean exists) {
-        throw new ImmutableResourceException();
+        throw new BuildException(new ImmutableResourceException());
     }
 
     /**
@@ -92,7 +93,7 @@
      * Not supported.
      */
     public void setLastModified(long lastmodified) {
-        throw new ImmutableResourceException();
+        throw new BuildException(new ImmutableResourceException());
     }
 
     /**
@@ -106,7 +107,7 @@
      * Not supported.
      */
     public void setDirectory(boolean directory) {
-        throw new ImmutableResourceException();
+        throw new BuildException(new ImmutableResourceException());
     }
 
     /**
@@ -120,7 +121,7 @@
      * Not supported.
      */
     public void setSize(long size) {
-        throw new ImmutableResourceException();
+        throw new BuildException(new ImmutableResourceException());
     }
 
     /**