vmassol     02/04/21 06:54:02

  Modified:    sample-servlet/conf/sample/build/j2ee12 build.xml
  Added:       sample-servlet/conf/sample/build/share
                        build-tests-weblogic-61.xml
               sample-servlet/conf/sample/conf/test/share/weblogic61
                        SerializedSystemIni.dat config.xml
                        fileRealm.properties
  Removed:     sample-servlet/conf/sample/build/j2ee13
                        build-tests-weblogic-61.xml
               sample-servlet/conf/sample/conf/test/j2ee13/weblogic61
                        SerializedSystemIni.dat config.xml
                        fileRealm.properties
  Log:
  also run WL 6.1 tests for J2EE 1.2
  
  Revision  Changes    Path
  1.3       +3 -1      jakarta-cactus/sample-servlet/conf/sample/build/j2ee12/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/sample-servlet/conf/sample/build/j2ee12/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml 21 Apr 2002 12:51:58 -0000      1.2
  +++ build.xml 21 Apr 2002 13:54:01 -0000      1.3
  @@ -11,6 +11,7 @@
       <!ENTITY build-tests-tomcat-40 SYSTEM "file:./build-tests-tomcat-40.xml">
       <!ENTITY build-tests-weblogic-51 SYSTEM "file:./build-tests-weblogic-51.xml">
       <!ENTITY build-tests-enhydra-31 SYSTEM "file:./build-tests-enhydra-31.xml">
  +    <!ENTITY build-tests-weblogic-61 SYSTEM "file:./build-tests-weblogic-61.xml">
   ]>
   
   <!--
  @@ -83,7 +84,7 @@
          ========================================================================
       -->
       <target name="test.all"
  -        
depends="test.resin.20,test.resin.12,test.tomcat.32,test.tomcat.33,test.tomcat.40,test.orion.14,test.orion.15,test.weblogic.51,test.enhydra.31"
  +        
depends="test.resin.20,test.resin.12,test.tomcat.32,test.tomcat.33,test.tomcat.40,test.orion.14,test.orion.15,test.weblogic.51,test.enhydra.31,test.weblogic.61"
           description="Run tests on all defined containers">
       </target>
   
  @@ -96,5 +97,6 @@
       &build-tests-tomcat-40;
       &build-tests-weblogic-51;
       &build-tests-enhydra-31;
  +    &build-tests-weblogic-61;
   
   </project>
  
  
  
  1.1                  
jakarta-cactus/sample-servlet/conf/sample/build/share/build-tests-weblogic-61.xml
  
  Index: build-tests-weblogic-61.xml
  ===================================================================
      <!--
         ========================================================================
           Run WebLogic 6.1 tests
         ========================================================================
      -->
      <target name="test.weblogic.61" depends="prepare.test.weblogic.61"
          if="weblogic.home.61" description="Run tests on WebLogic 6.1">
  
          <!-- Start the servlet engine, wait for it to be started, run the
               unit tests, stop the servlet engine, wait for it to be stopped.
               The servlet engine is stopped if the tests fail for any reason -->
  
          <runservertests 
              
testURL="http://localhost:${test.port}/test/ServletRedirector?Cactus_Service=RUN_TEST";
              startTarget="start.weblogic.61"
              stopTarget="stop.weblogic.61"
              testTarget="test"/>
  
      </target>
  
      <!--
         ========================================================================
           Start WebLogic 6.1
         ========================================================================
      -->
      <target name="start.weblogic.61">
  
          <java classname="weblogic.Server" fork="yes"
              dir="${target.weblogic61.dir}">
  
              <classpath>
                  <pathelement 
location="${weblogic.home.61}/wlserver6.1/lib/weblogic.sp.jar"/>
                  <pathelement 
location="${weblogic.home.61}/wlserver6.1/lib/weblogic.jar"/>
              </classpath>
  
              <jvmarg value="-hotspot"/>
              <jvmarg value="-ms64m"/>
              <jvmarg value="-mx64m"/>
              <jvmarg 
value="-Djava.library.path=${java.library.path};${weblogic.home.61}/wlserver6.1/bin"/>
              <jvmarg value="-Dweblogic.RootDirectory=."/>
              <jvmarg value="-Dweblogic.Domain=testdomain"/>
              <jvmarg value="-Dweblogic.Name=testserver"/>
              <jvmarg value="-Dbea.home=${weblogic.home.61}"/>
              <jvmarg value="-Dweblogic.management.password=password"/>
              <jvmarg value="-Djava.security.policy==./lib/weblogic.policy"/>
  
          </java>
  
      </target>
  
      <!--
         ========================================================================
           Stop WebLogic 6.1
         ========================================================================
      -->
      <target name="stop.weblogic.61">
  
          <java classname="weblogic.Admin" fork="yes">
  
              <classpath>
                  <pathelement 
location="${weblogic.home.61}/wlserver6.1/lib/weblogic.sp.jar"/>
                  <pathelement 
location="${weblogic.home.61}/wlserver6.1/lib/weblogic.jar"/>
              </classpath>
  
              <arg line="-url t3://localhost:${test.port}"/>
              <arg line="-username system"/>
              <arg line="-password password"/>
              <arg value="SHUTDOWN"/>
  
          </java>
  
      </target>
  
      <!--
         ========================================================================
           Display a warning message if the needed servlet engine home property
           is not set
         ========================================================================
      -->
      <target name="check.test.weblogic.61" unless="weblogic.home.61">
  
          <echo message=""/>
          <echo message="******************************************************"/>
          <echo message="WARNING : The 'weblogic.home.61' property has not been"/>
          <echo message="set. No test will be run on that servlet engine."/>
          <echo message="******************************************************"/>
          <echo message=""/>
  
      </target>
  
      <!--
         ========================================================================
           Prepare directories and variables for running the tests
         ========================================================================
      -->
      <target name="prepare.test.weblogic.61"
          depends="check.test.weblogic.61,testwar" if="weblogic.home.61">
  
          <echo message="weblogic.home.61 = ${weblogic.home.61}"/>
  
          <property name="target.weblogic61.dir"
              value="${target.test.dir}/weblogic61"/>
          <property name="conf.weblogic61.dir"
              value="${conf.test.dir}/weblogic61"/>
  
          <mkdir dir="${target.weblogic61.dir}/config/testdomain/applications"/>
  
          <!-- Copy WL 6.1 configuration files -->
          <copy file="${conf.weblogic61.dir}/config.xml"
              todir="${target.weblogic61.dir}/config/testdomain" filtering="on"/>
          <copy file="${conf.weblogic61.dir}/fileRealm.properties"
              todir="${target.weblogic61.dir}/config/testdomain"/>
          <copy file="${conf.weblogic61.dir}/SerializedSystemIni.dat"
              todir="${target.weblogic61.dir}/config/testdomain"/>
  
          <!-- Copy the war file -->
          <copy file="${target.test.dir}/test.war"
              todir="${target.weblogic61.dir}/config/testdomain/applications"/>
  
      </target>
  
  
  
  1.1                  
jakarta-cactus/sample-servlet/conf/sample/conf/test/share/weblogic61/SerializedSystemIni.dat
  
        <<Binary file>>
  
  
  1.1                  
jakarta-cactus/sample-servlet/conf/sample/conf/test/share/weblogic61/config.xml
  
  Index: config.xml
  ===================================================================
  <Domain Name="testdomain">
    <Server Name="testserver" NativeIOEnabled="true" ListenPort="@test.port@"/>
  </Domain>
  
  
  
  1.1                  
jakarta-cactus/sample-servlet/conf/sample/conf/test/share/weblogic61/fileRealm.properties
  
  Index: fileRealm.properties
  ===================================================================
  #Mon Dec 10 17:24:02 GMT 2001
  acl.unlockServer.weblogic.admin=Administrators
  user.system=0xb925d776addde243d018a561318650afadb954cc
  acl.lockServer.weblogic.admin=Administrators
  acl.unlockuser.weblogic.passwordpolicy=Administrators
  acl.shutdown.weblogic.admin=Administrators
  acl.boot.weblogic.server=Administrators,everyone
  group.Administrators=system
  
  
  

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

Reply via email to