Browse Source

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
master
Peter Donald 24 years ago
parent
commit
ebe476933c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java

+ 3
- 3
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java View File

@@ -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 );
}
}



Loading…
Cancel
Save