Show
Ignore:
Timestamp:
09.02.2007 14:31:56 (13 years ago)
Author:
shaoqun
Message:

set GSDLHOME using the command param

Files:
1 modified

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 {