You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/06/04 14:41:37 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer Deployment.java
donaldp 01/06/04 05:41:37
Modified: proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer
Deployment.java
Log:
Canonicalized filename to get around bug in file: urls embedded in jar: urls.
(they didn't resolve ./ or ../)
Revision Changes Path
1.2 +3 -3 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java
Index: Deployment.java
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/Deployment.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Deployment.java 2001/06/03 13:11:40 1.1
+++ Deployment.java 2001/06/04 12:41:36 1.2
@@ -49,10 +49,10 @@
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 );
}
}