Changeset 7478


Ignore:
Timestamp:
2004-05-27T15:28:58+12:00 (20 years ago)
Author:
cs025
Message:

Fixed stupid package error for URLTools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/CollectionManager.java

    r7468 r7478  
    1717
    1818import java.net.URL;
     19import java.net.URLEncoder;
    1920
    2021import javax.xml.parsers.*;
     
    3738import org.greenstone.gsdl3.gs3build.util.GS3SQLConnectionFactory;
    3839import org.greenstone.gsdl3.gs3build.util.DOMUtils;
     40import org.greenstone.gsdl3.gs3build.util.URLTools;
    3941
    4042import org.greenstone.gsdl3.util.GSFile;
    4143import org.greenstone.gsdl3.util.GSXML;
    4244import org.greenstone.gsdl3.util.XMLConverter;
    43 import org.greenstone.gsdl3.util.URLTools;
    4445
    4546/**
     
    9293          continue;
    9394
     95        System.out.println("Path is" + parentURL.getPath());
     96        System.out.println("Host is" + parentURL.getHost());
     97        System.out.println(urlString);
     98
    9499        try {
    95100          URL url = new URL(parentURL, urlString);
    96101          this.file = url;
     102          System.out.println(url);
    97103        }
    98104        catch (java.net.MalformedURLException malEx) {
     
    121127     
    122128      if (this.type.toLowerCase().equals("hierarchy")) {
     129    System.out.println(this.file);
    123130    classifier = new HierarchyClassifier(this.className, this.file, this.fields, this.sort);
    124131      }
     
    199206    URL etcURL = null;
    200207
    201     try {
    202       etcURL = URLTools.getFileURL(etcFile);
    203     }
    204     catch (java.net.MalformedURLException malEx) {
    205       System.out.println(malEx);
    206     }
     208    etcURL = URLTools.getFileURL(etcFile);
    207209
    208210    NodeList children = node.getChildNodes();
Note: See TracChangeset for help on using the changeset viewer.