Joerg Heinicke wrote:

On 19.11.2003 14:34, Ugo Cei wrote:

...wait a minute: shouldn't our build system be using the versions
from the endorsed dir???



Of course, but cocoon.sh explicitly does:


ENDORSED_LIBS="$COCOON_HOME/lib/endorsed"
ENDORSED="-Djava.endorsed.dirs=$ENDORSED_LIBS"

whereas build.sh does:

ANT_OPTS=-Djava.endorsed.dirs=lib/endorsed
export ANT_OPTS

Probably the latter is not enough, sincerely I don't know.


AFAICS the above would be enough, if the JVM were not forked (test-build.xml).

So the problem was in the generated block-build.xml


 <junit fork="yes" haltonfailure="yes" printsummary="yes">
  <classpath>
   <path refid="test.classpath"/>
   <path refid="fop.classpath"/>
   <pathelement location="${build.test}"/>
   <pathelement location="${build.blocks}/fop/test"/>
  </classpath>
  <formatter usefile="no" type="plain"/>
  <batchtest>
   <fileset dir="${build.blocks}/fop/test">
    <include name="**/*TestCase.class"/>
    <include name="**/*Test.class"/>
    <exclude name="**/AllTest.class"/>
    <exclude name="**/*$$*Test.class"/>
    <exclude name="**/Abstract*.class"/>
   </fileset>
 </batchtest>
</junit>

The junit fork missed the

<jvmarg value="-Djava.endorsed.dirs=..."/>

So the woody tests are fine now :)
But the XMidiGeneratorTestCase still fails :(

Plus I guess in the block-anteater-tests the
the following line might be wrong, too:

<jvmarg value="-Djava.endorsed.dirs=${anteater.home}/lib"/>

cheers
--
Torsten



Reply via email to