geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service ServiceDeploymentPlanner.java
Date Tue, 26 Aug 2003 13:03:58 GMT
jdillon     2003/08/26 06:03:58

  Modified:    modules/core/src/java/org/apache/geronimo/deployment/service
                        ServiceDeploymentPlanner.java
  Log:
   o Use URI.create() instead of new URI()
  
  Revision  Changes    Path
  1.8       +2 -8      incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service/ServiceDeploymentPlanner.java
  
  Index: ServiceDeploymentPlanner.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service/ServiceDeploymentPlanner.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ServiceDeploymentPlanner.java	26 Aug 2003 11:04:01 -0000	1.7
  +++ ServiceDeploymentPlanner.java	26 Aug 2003 13:03:58 -0000	1.8
  @@ -170,13 +170,7 @@
       private boolean addURL(DeployURL goal, Set goals, Set plans) throws DeploymentException
{
           InputStream is;
           URL url = goal.getUrl();
  -        URI baseURI = null;
  -        
  -        try {
  -            baseURI = (new URI(url.toExternalForm())).normalize();
  -        } catch (Exception e) {
  -            throw new DeploymentException("Could not determine base URI", e);
  -        }
  +        URI baseURI = URI.create(url.toString()).normalize();;
           
           URLType type = goal.getType();
           if (type == URLType.RESOURCE) {
  
  
  

Mime
View raw message