proyal      2003/02/10 12:38:22

  Modified:    sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty
                        JettySevak-schema.xml JettySevak.java
  Log:
  Patch from Greg Steuck <[EMAIL PROTECTED]> to allow
  control the expanding of WAR files
  
  Revision  Changes    Path
  1.2       +3 -0      
avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak-schema.xml
  
  Index: JettySevak-schema.xml
  ===================================================================
  RCS file: 
/home/cvs/avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak-schema.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JettySevak-schema.xml     6 Feb 2003 16:43:46 -0000       1.1
  +++ JettySevak-schema.xml     10 Feb 2003 20:38:22 -0000      1.2
  @@ -17,5 +17,8 @@
           <optional>
               <element name="maxthreads"><data type="integer"/></element>
           </optional>
  +        <optional>
  +            <element name="extract-war"><data type="boolean"/></element>
  +        </optional>
       </interleave>
   </element>
  
  
  
  1.15      +3 -1      
avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak.java
  
  Index: JettySevak.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- JettySevak.java   6 Feb 2003 16:43:46 -0000       1.14
  +++ JettySevak.java   10 Feb 2003 20:38:22 -0000      1.15
  @@ -101,6 +101,7 @@
       private int m_port;
       private int m_minThreads;
       private int m_maxThreads;
  +    private boolean m_extractWebArchive;
       private File m_sarRootDir;
       private ServiceManager m_serviceManager;
   
  @@ -137,6 +138,7 @@
           m_port = configuration.getChild( "port" ).getValueAsInteger( 8080 );
           m_minThreads = configuration.getChild( "minthreads" ).getValueAsInteger( 5 
);
           m_maxThreads = configuration.getChild( "maxthreads" ).getValueAsInteger( 
250 );
  +        m_extractWebArchive = 
configuration.getChild("extract-war").getValueAsBoolean(true);
   
           if( m_maxThreads < m_minThreads )
           {
  @@ -232,7 +234,7 @@
                   getLogger().info( "deploying context=" + context + ", webapp=" + 
webAppURL
                                     + " to host=" + ( m_hostName == null ? "(All 
Hosts)" : m_hostName ) );
   
  -            ctx.setExtractWAR( true );
  +            ctx.setExtractWAR( m_extractWebArchive );
               m_webapps.put( context, ctx );
               ctx.start();
           }
  
  
  

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

Reply via email to