Ignore:
Timestamp:
2007-02-09T14:31:56+13:00 (17 years ago)
Author:
shaoqun
Message:

set GSDLHOME using the command param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl-documentation/shared/ApplyXSLT.java

    r13632 r13885  
    4747    {
    4848    if (args.length < 2) {
    49         System.err.println("Usage: ApplyXSLT <XSLfile> <XMLfile>");
     49        System.err.println("Usage: ApplyXSLT <XSLfile> <XMLfile> <GSDLHOME>");
    5050        System.exit(1);
    5151    }
     
    5353    System.setProperty("javax.xml.transform.TransformerFactory",
    5454               "org.apache.xalan.processor.TransformerFactoryImpl");
     55        if (args.length == 3){
     56        System.setProperty("GSDLHOME",args[2]);
     57    }
     58
    5559    TransformerFactory t_factory = null;
    5660    try {
Note: See TracChangeset for help on using the changeset viewer.