git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277460 13f79535-47bb-0310-9956-ffa450edef68master
@@ -1,5 +1,5 @@ | |||||
/* | /* | ||||
* Copyright 2003-2004 The Apache Software Foundation | |||||
* Copyright 2003-2005 The Apache Software Foundation | |||||
* | * | ||||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
@@ -150,7 +150,7 @@ public class Launcher { | |||||
argList.add(args[i]); | argList.add(args[i]); | ||||
} | } | ||||
} | } | ||||
//decide whether to copy the existing arg set, or | //decide whether to copy the existing arg set, or | ||||
//build a new one from the list of all args excluding the special | //build a new one from the list of all args excluding the special | ||||
//operations that only we handle | //operations that only we handle | ||||
@@ -1,5 +1,5 @@ | |||||
/* | /* | ||||
* Copyright 2003-2004 The Apache Software Foundation | |||||
* Copyright 2003-2005 The Apache Software Foundation | |||||
* | * | ||||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
@@ -106,6 +106,7 @@ public final class Locator { | |||||
try { | try { | ||||
url = new URL(uri); | url = new URL(uri); | ||||
} catch (MalformedURLException emYouEarlEx) { | } catch (MalformedURLException emYouEarlEx) { | ||||
// Ignore malformed exception | |||||
} | } | ||||
if (url == null || !("file".equals(url.getProtocol()))) { | if (url == null || !("file".equals(url.getProtocol()))) { | ||||
throw new IllegalArgumentException("Can only handle valid file: URIs"); | throw new IllegalArgumentException("Can only handle valid file: URIs"); | ||||