From: Ryan C. <rca...@jb...> - 2005-07-19 14:18:05
|
User: rcampbell Date: 05/07/19 10:17:05 Modified: jbosstest build.xml Log: put the server manager taskdefs in a target so they aren't evaluated until classes are compiled Revision Changes Path 1.476 +19 -11 jbosstest/build.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.475 retrieving revision 1.476 diff -u -b -r1.475 -r1.476 --- build.xml 19 Jul 2005 03:42:01 -0000 1.475 +++ build.xml 19 Jul 2005 14:17:04 -0000 1.476 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.475 2005/07/19 03:42:01 rcampbell Exp $ --> +<!-- $Id: build.xml,v 1.476 2005/07/19 14:17:04 rcampbell Exp $ --> <project default="main" name="JBoss/Testsuite" xmlns:server="http://jboss.org/ns/test/ant/server"> @@ -1444,17 +1444,25 @@ <!-- Tests of Java2 permissions. The JBoss server must be running with a security manager for this test --> - <target name="tests-security-manager" + <target name="tests-security-manager" depends="serverTaskdefs" description="Tests run against a jboss server with a security manager"> - <start-securitymgr/> - <mkdir dir="${build.reports}"/> - <mkdir dir="${build.testlog}"/> - <waitfor maxwait="60" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="startup.timeout"> - <http url="http://${node0}:8080/"/> - </waitfor> - <fail message="Timeout waiting for server to start" if="startup.timeout"/> + <echo message="Starting default with policy ${build.resources}/securitymgr/server.policy" /> + <echo message="jboss.home.dir=${jboss.dist}" /> + <echo message="jboss.server.home.dir=${jboss.dist}/server/default" /> + + <server:config javaHome="${env.JAVA_HOME}" jbossHome="${jboss.dist}"> + <server name="securitymgr" config="default" host="${node0}"> + <jvmarg value="${jpda.cmdline}" /> + <jvmarg value="-Xmx64m" /> + <jvmarg value="-Djboss.home.dir=${jboss.dist}" /> + <jvmarg value="-Djboss.server.home.dir=${jboss.dist}/server/default" /> + <jvmarg value="-Djava.security.manager"/> + <jvmarg value="-Djava.security.policy==${build.resources}/securitymgr/server.policy"/> + <jvmarg value="-Djava.security.debug=failure"/> + </server> + </server:config> + <server:start name="securitymgr"/> <junit dir="${module.output}" printsummary="true" @@ -1500,7 +1508,7 @@ </fileset> </batchtest> </junit> - + <echo>Waiting for server to shutdown...</echo> <server:stop name="securitymgr"/> </target> |