summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2009-02-22 09:11:04 (EST)
committerpschonbac2009-02-22 09:11:04 (EST)
commitf1a73033d1c2a4d26bce888923aa36caebe4232d (patch)
tree49a126cd56298ee0f13f5b2a98547c918b04cfb7
parent057a329f4d886986a23928c322981b51c4fbb946 (diff)
downloadorg.eclipse.xpand-f1a73033d1c2a4d26bce888923aa36caebe4232d.zip
org.eclipse.xpand-f1a73033d1c2a4d26bce888923aa36caebe4232d.tar.gz
org.eclipse.xpand-f1a73033d1c2a4d26bce888923aa36caebe4232d.tar.bz2
Ensured previous behavior
-rw-r--r--plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/pr/ProtectedRegionResolverImpl.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/pr/ProtectedRegionResolverImpl.java b/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/pr/ProtectedRegionResolverImpl.java
index 716b843..18ac914 100644
--- a/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/pr/ProtectedRegionResolverImpl.java
+++ b/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/pr/ProtectedRegionResolverImpl.java
@@ -444,8 +444,12 @@ public class ProtectedRegionResolverImpl implements ProtectedRegionResolver {
/**
* Sets the source paths that should be scanned.
- * @param srcPathsAsString A comma separated list of directory paths.
- * @throws IllegalArgumentException If one of the passed arguments is not a directory or does not exist
+ *
+ * @param srcPathsAsString
+ * A comma separated list of directory paths.
+ * @throws IllegalArgumentException
+ * If one of the passed arguments is not a directory or does not
+ * exist
*/
public void setSrcPathes(final String srcPathsAsString) throws IllegalArgumentException {
// Split the paths and initialize the
@@ -460,8 +464,11 @@ public class ProtectedRegionResolverImpl implements ProtectedRegionResolver {
// The configured path must point to an existing directory
if (dir.isDirectory()) {
validPaths.add(dir);
- } else {
- LOG.warn("Ignoring non-existing protected region path "+dir.getAbsolutePath());
+ }
+ else {
+ final String msg = "Ignoring non-existing protected region path " + dir.getAbsolutePath();
+ LOG.warn(msg);
+ throw new IllegalArgumentException(msg);
}
}
this.srcPaths = validPaths.toArray(new File[]{});