Description
With the recent changes to the distribution build files, I've been running the test distribution locally; while the NetUI tests run fine, the controls tests never execute because the VM is still holding onto the "netui.log" file.
While it seems like log4j / Ant should be cooperating to close this log file correctly, that doesn't seem to be happening, and in order to get clea test distribution runs, we need to work around this problem somehow.
Below is Ant that exhibits this problem:
<target name="run.test.dist" description="Run the beehive tests against the archive files">
<property name="test.home" location="d:/tmp/beehive-test"/>
<property name="dist.home" location="${basedir}/build/dist/apache-beehive-incubating-svn-snapshot"/>
<property name="test.dist.home" location="${basedir}/build/tmp/test-dist/beehive-test-dist"/>
<delete file="${os.CATALINA_HOME}/conf/Catalina/localhost/coreWeb.xml"/>
<delete dir="${os.CATALINA_HOME}/work/Catalina/localhost/coreWeb"/>
<delete dir="${test.home}"/>
<mkdir dir="${test.home}"/>
<copy todir="${test.home}/beehive-test-dist">
<fileset dir="${test.dist.home}"/>
</copy>
<copy todir="${test.home}/apache-beehive-incubating-svn-snapshot">
<fileset dir="${dist.home}"/>
</copy>
<ant dir="${test.home}/beehive-test-dist" antfile="build.xml" target="run.tests" inheritAll="false"/>
</target>