Changeset 4450


Ignore:
Timestamp:
2003-06-03T12:39:36+12:00 (21 years ago)
Author:
kjdon
Message:

added static string for profile template (protemp.xml) and fixed some comment indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r4439 r4450  
    128128    /** The default name of the perl executable under windows. */
    129129    static final public String PERL_EXECUTABLE_WINDOWS = "Perl.exe";
     130    /** The default profile file */
     131    static final public String PROFILE_TEMPLATE = "xml/protemp.xml";
    130132    /** The name of the Gatherer. */
    131133    static final public String PROGRAM_NAME = "The Librarian Interface";
     
    273275    try {
    274276        OutputStream os = new FileOutputStream(file);
    275                 // Create an output format for our document.
     277        // Create an output format for our document.
    276278        OutputFormat f = new OutputFormat(document);
    277279        f.setIndenting(true);
    278280        f.setLineWidth(256);
    279281        f.setPreserveSpace(false);
    280                 // Create the necessary writer stream for serialization.
     282        // Create the necessary writer stream for serialization.
    281283        OutputStreamWriter osw = new OutputStreamWriter(os);
    282284        Writer w               = new BufferedWriter(osw);
    283                 // Generate a new serializer from the above.
     285        // Generate a new serializer from the above.
    284286        XMLSerializer s        = new XMLSerializer(w, f);
    285287        s.asDOMSerializer();
    286                 // Finally serialize the document to file.
     288        // Finally serialize the document to file.
    287289        s.serialize(document);
    288                 // And close.
     290        // And close.
    289291        os.close();
    290292        return true;
Note: See TracChangeset for help on using the changeset viewer.