ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer Deployment.java
Date Mon, 04 Jun 2001 12:41:37 GMT
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 );
           }
       }
   
  
  
  

Mime
View raw message