Changeset 4117


Ignore:
Timestamp:
Feb 1, 2008, 10:36:56 AM (15 years ago)
Author:
Nicklas Nordborg
Message:

References #902: Support for multiple configuration files for raw data types and extended properties

Corrected a path problem on windows.

Location:
trunk/src/core/net/sf/basedb/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Application.java

    r4096 r4117  
    728728        for (java.io.File xmlFile : xmlFiles)
    729729        {
    730           String path = xmlFile.getAbsolutePath().replace(configDir, "");
     730          String path = xmlFile.getAbsolutePath().replace(configDir, "").
     731            replace(java.io.File.separatorChar, '/');
    731732          files.add(path);
    732733        }
     
    756757        for (java.io.File xmlFile : xmlFiles)
    757758        {
    758           String path = xmlFile.getAbsolutePath().replace(configDir, "");
     759          String path = xmlFile.getAbsolutePath().replace(configDir, "").
     760            replace(java.io.File.separatorChar, '/');;
    759761          files.add(path);
    760762        }
  • trunk/src/core/net/sf/basedb/core/ExtendedProperties.java

    r4096 r4117  
    121121      for (String xmlFile : files)
    122122      {
     123        log.debug("Loading extended properties from file: " + xmlFile);
    123124        Document dom = XMLUtil.getValidatedXml(ExtendedProperties.class.getResource(xmlFile), dtdFile);
    124125        loadClasses(usedNames, dom, xmlFile);
Note: See TracChangeset for help on using the changeset viewer.