Hi,
 
I'm trying to use the WLRun task and have the following problem (See Ant target below): WebLogic is started, but the Ant does not continue with the jUnit task. So how do I start WebLogic and after that run the unit tests.
 
According to the documentation the WLRun tasks runs the WebLogic in a separate Thread. However my experience is that Ant waits untill WebLogic is stopped before  it continues with the following tasks.
 
Am I missing something or it is just not possible what I want?
 
[NOTE: I removed the classpaths below to keep the XML readable}
 
    <target name="unittest" depends="compileunittest" >
        <delete>
          <fileset dir="." includes="**/TEST-*.xml" />
        </delete>
        <property name="deploy_properties" file="${deploy_env_dev}"/>
        <wlrun home="C:\weblogic"
               classpath="...."   // removed details
               properties="weblogic.properties"
               name="server"
               policy=".\weblogic.policy"
               jvmargs...." >    // removed details ..
        </wlrun>
 
        <junit printsummary="yes" haltonfailure="yes" >
            <jvmarg value="-Djava.compiler=NONE"/>
            <jvmarg value="-Dunittest.commercepool.driver=${commercePool_driver}" />
            <jvmarg value="-Dunittest.commercepool.url="" />
            <jvmarg value="-Dunittest.deploy_ejblib_dir_dev=${deploy_ejblib_dir_dev}" />
            <jvmarg value="-DWSPort=${WSPort}" />
            <jvmarg value="-Dcomputername=${computername}" />
            <jvmarg value="-Dweblogic.password.system=${weblogic.password.system}" />
            <classpath>
                <pathelement location="${test.dir}/${classes.dir}" />
                <fileset dir="${test.dir}/lib">
                    <include name="*.jar" />
                </fileset>
                <pathelement path="${java.class.path}" />
            </classpath>
            <formatter type="plain" usefile="no" />
            <batchtest fork="yes">
                <fileset dir="${test.dir}/${src.dir}"
                         includesfile="${test.dir}/include_unittest.txt"
                         excludesfile="${test.dir}/exclude_unittest.txt"/>
            </batchtest>
        </junit>
 
        <wlstop
               classpath="..."
               user="system"
               password="weblogic"
               url="">
        </wlstop>
 
Regards,
 
Gero Vermaas

Reply via email to