Ignore:
Timestamp:
2003-03-11T16:50:57+13:00 (21 years ago)
Author:
kjdon
Message:

new function to find a sysstem wide config format xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSFile.java

    r3489 r3848  
    2727import java.io.InputStream;
    2828import java.io.IOException;
     29import java.lang.ClassLoader; // to find files on the class path
     30import java.net.URL;
    2931
    3032/**
     
    172174    }
    173175
     176    /** returns the path to the stylesheet used to transform config file
     177     * format statements*/
     178    public static String configFileFormatStylesheet() {
     179    URL url = ClassLoader.getSystemResource("config_format.xsl");
     180    if (url == null) {
     181        return "";
     182    }
     183    return url.getFile();
     184    }
    174185
    175186    /** language specific files directory */
Note: See TracChangeset for help on using the changeset viewer.