From ebe476933c3f3b631db60fef7c35952855a1b8dc Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Mon, 4 Jun 2001 12:41:36 +0000 Subject: [PATCH] Canonicalized filename to get around bug in file: urls embedded in jar: urls. (they didn't resolve ./ or ../) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269095 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/myrmidon/components/deployer/Deployment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java b/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java index 01e5ffb05..438f532b8 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java @@ -49,10 +49,10 @@ public class Deployment public URL getURL() throws DeploymentException { - try { return m_file.toURL(); } - catch( final MalformedURLException mue ) + try { return m_file.getCanonicalFile().toURL(); } + catch( final IOException ioe ) { - throw new DeploymentException( "Unable to form url", mue ); + throw new DeploymentException( "Unable to form url", ioe ); } }