tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26275] - Problems extracting WAR file when file names are latin 1 encoded
Date Sun, 22 Feb 2004 13:39:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26275

Problems extracting WAR file when file names are latin 1 encoded





------- Additional Comments From jochen@apache.org  2004-02-22 13:39 -------
* Create a new, empty directory.
* Store the attached build script as build.xml into the directory.
* Create a subdirectory src.
* Copy the catalina sources from tomcat.home/src/catalina/src/share
  into the src directory. For example, we will have a file
  src/org/apache/catalina/startup/ExpandWar.java.
* Create a subdirectory lib.
* Copy the following files into the lib directory:
    activation.jar"
    ant.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-daemon.jar
    commons-digester.jar
    commons-fileupload-1.0.jar
    commons-logging.jar
    commons-modeler.jar
    jta.jar
    mail.jar
    mx4j-jmx.jar
    servlet.jar
    tomcat-util.jar
    tyrex-1.0.1.jar
* Add a main method to the ExpandWar class:

    public static void main(String[] args) throws IOException {
        Host host = new StandardHost();
        host.setAppBase(new File(args[0]).getAbsolutePath());
        host.setAutoDeploy(true);
        host.setLogger(new SystemErrLogger());
        ((ContainerBase) host).setDebug(9);
        String path = new File(args[1]).getAbsoluteFile().toURL().toString();
        expand(host, new URL("jar:" + path + "!/"));
    }

* Run "ant test"

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message