-
1. Re: Ant Tasks for controlling server instances
ryan.campbell Jul 19, 2005 12:08 AM (in response to ryan.campbell)Features:
+ stderr & stdout logged to server/config/log/output.log and server/config/log/error.log.
+ A shutdown hook is registered with the VM to kill remaining jboss instances on shutdown.
+ If server does not respond to Shutdown request, the java.lang.Process is destroyed.
+ Supports nested java task arguments: jvmarg, arg, sysproperty
+ Core functionality is pure j2se code in test module; no dependencies on Ant or JBoss classes.
+ I have a schema for configuration with JBossXB, which could allow for shared configurations between the Ant testsuite and an eclipse plugin. However, Ant's xerces is incompatible with JbossXB.
TODO:
+ Replace all start-jboss usage with server:start
+ Document usage
+ throw exception if server fails to stop instead of silently destroying process
+ possbily extend to controlling standalone tomcat instances? -
2. Re: Ant Tasks for controlling server instances
ryan.campbell Jul 25, 2005 11:44 PM (in response to ryan.campbell)The server tasks have been fully deployed to jboss-head/testsuite. Next week, I will be migrating this to jboss-4.0 so that we can have valid test runs for that branch as well.
Also, I moved these tasks to the test project so that they may be used by other projects like ejb3 (and potentially external ones, too).
Note:There still may be something wrong with the server shutdown (under cruisecontrol) which these tasks may mask. If the server fails to shutdown, it's process is destroyed. Really, if a server fails to shutdown, there should be a build failure -
3. Re: Ant Tasks for controlling server instances
ryan.campbell Aug 18, 2005 6:32 PM (in response to ryan.campbell)These tasks are now documented here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ServerControllerTasks -
4. Re: Ant Tasks for controlling server instances
adrian.brock Aug 18, 2005 7:05 PM (in response to ryan.campbell)Related to the STDERR/STDOUT would it be possible to
allow the name of log/server.log to be overridden for each start/stop
and collected by the cruisecontrol process?
And the same for testsuite/output/log/test.log
That way, we can see more detail why a test failed without having to
try to reproduce it locally which might not always be possible? -
5. Re: Ant Tasks for controlling server instances
ryan.campbell Aug 18, 2005 7:09 PM (in response to ryan.campbell)Yes, we are planning to do this:
http://jira.jboss.com/jira/browse/JBQA-142
This is planned for cruisecontrol-1.4 which should be released ~ Sept 9th. -
6. Re: Ant Tasks for controlling server instances
clebert.suconic Aug 18, 2005 10:33 PM (in response to ryan.campbell)Ant-JRunit already supports output for System.out and System.err for individual tests.
Maybe we should modify our XSL to support such thing.
Did we disable System.out and System.err for tests for any reason? -
7. Re: Ant Tasks for controlling server instances
ryan.campbell Aug 19, 2005 12:15 PM (in response to ryan.campbell)The AntRunner already captures system.out & system.err from testcases, doesn't it? I see it in the testuite/output/reports/TEST-*.xml files.
We are talking about system.out & err from the servers under test, not the test cases. -
8. Re: Ant Tasks for controlling server instances
ryan.campbell Aug 22, 2005 7:59 PM (in response to ryan.campbell)Ok, I'm going to merge these Ant tasks in to 4.0 as they seem to be holding up well enough in head.
-
9. Re: Ant Tasks for controlling server instances
sethladd1 Sep 26, 2005 6:17 PM (in response to ryan.campbell)Hello,
If we wanted to use these tasks in our own Ant scripts, what JAR would contain the tasks?
Also, are the compatible with 4.0.0 ?
Thanks,
Seth -
10. Re: Ant Tasks for controlling server instances
ryan.campbell Sep 28, 2005 11:10 AM (in response to ryan.campbell)This is not included in the jboss dist. You will need to compile 4.0.x.
http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository
http://docs.jboss.org/jbossas/jboss4guide/r3/html/apc.html
It will be under test/output/lib/jboss-test.jar. At the moment, it requires no other depedencies.