I think I just answered my own question...
I found this code in org.apache.tomcat.context.AutoSetup.java:

            if( name.endsWith(".war") ) {
                String fname=name.substring(0, name.length()-4);
                File appDir=new File( home + "/webapps/" + fname);
                if( ! appDir.exists() ) {
                    // no check if war file is "newer" than directory
                    // To update you need to "remove" the context first!!!
                    appDir.mkdirs();
                    // Expand war file
                    Expand expand=new Expand();
                    expand.setSrc( home + "/webapps/" + name );
                    expand.setDest( home + "/webapps/" + fname);
                    try {
                        expand.execute();
                    } catch( IOException ex) {
                        ex.printStackTrace();
                        // do what ?
                    }
Anyone know why it's done this way?
Thx,
        Ed

-----Original Message-----
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 3:57 PM
To: [EMAIL PROTECTED]
Subject: RE: Apache


I've been playing around with the war files as well.
Tomcat will build the webapp's directory structure from the war file if the
directory doesn't already
exist; however, it does nothing if the directory structure is already there.
I have a mixed environment, where another  application is providing html
pages and images, and Tomcat is
providing servlets.
The webapp directory ends up being the common place where everything comes
together.
Because of this, I would like to keep only part of the webapp in the war
file.
I would like Tomcat to extract the contents of the war file even if the
directory tree already exists.
Is there a flag that I can set somewhere that will cause this to happen?
Thx,
    Ed
-----Original Message-----
From: Christoph Rooms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 12:32 PM
To: [EMAIL PROTECTED]
Subject: RE: Apache


But is it then possible to work under apache with this "WAR directory
structure". (like we do when working in Tomcat)


-----Original Message-----
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 16 januari 2001 19:18
To: [EMAIL PROTECTED]
Subject: RE: Apache


The WEB-INF directory is part of the war file. All a war file comprises is a
jar of the entire webapp directory structure, making it easier to distribute
than the entire directory. Tomcat unjars the war file for its ease.
-----Original Message-----
From: Christoph Rooms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 1:14 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Apache


How ? What is the best approach to keep on working with the WEB-INF
directory ?
-----Original Message-----
From: micky mimo [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 16 januari 2001 17:59
To: [EMAIL PROTECTED]
Subject: RE: Apache


yes
/===============================\
| Micky Mimo                    |
| Systems Specialist            |
| (781) 457 - 1317              |
| [EMAIL PROTECTED]         |
\===============================/


-----Original Message-----
From: Rooms Christoph [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 12:55 AM
To: [EMAIL PROTECTED]
Subject: Apache


Hi,
If I use Apache for http & Tomcat for jsp/servlet together. Can I still use
wars ?
greetz, Christoph




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to