cmlenz 2003/03/18 03:00:15
Modified: integration/ant build.xml
Added: integration/ant/src/java/org/apache/cactus/ant
RunServerTestsTask.java
Log:
Add a RunServerTestsTask in the old package structure, to provide
backwards compatibility with current Cactus 1.4.x based build files.
Revision Changes Path
1.1
jakarta-cactus/integration/ant/src/java/org/apache/cactus/ant/RunServerTestsTask.java
Index: RunServerTestsTask.java
===================================================================
/*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Cactus" and "Apache Software
* Foundation" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.cactus.ant;
import org.apache.tools.ant.BuildException;
/**
* Task to automate running in-container unit test. It has the following
* syntax when used in Ant:
* <code><pre>
* <runservertests testURL="&t;url>"
* startTarget="<start target name>"
* stopTarget="<stop target name>"
* testTarget="<test target name>"/>
* </pre></code>
* where <code><url></code> is the URL that is used by this task to
* ensure that the server is running. Indeed, the algorithm is as follow :
* <ul>
* <li>Checks if server is running by trying to open an HTTP connection to
* the URL,</li>
* <li>If it fails, call the start target and loop until the HTTP connection
* the URL can be established,</li>
* <li>Call the test target. This target is supposed to start the test,
* usually by running the junit Ant task,</li>
* <li>When the tests are finished, call the stop target to stop the server.
* Note: The stop target is called only if the server was not already running
* when this task was executed.</li>
* </ul>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
*
* @version $Id: RunServerTestsTask.java,v 1.1 2003/03/18 11:00:15 cmlenz Exp $
*
* @deprecated The implementation of this task has moved to
* [EMAIL PROTECTED] org.apache.cactus.integration.ant}.
*/
public class RunServerTestsTask
extends org.apache.cactus.integration.ant.RunServerTestsTask
{
/**
* @see org.apache.tools.ant.Task#execute()
*/
public void execute() throws BuildException
{
log("The task '" + this.getClass().getName() + "' is deprecated. Use '"
+ super.getClass().getName() + " instead");
super.execute();
}
}
1.8 +2 -1 jakarta-cactus/integration/ant/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/ant/build.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- build.xml 17 Mar 2003 14:55:45 -0000 1.7
+++ build.xml 18 Mar 2003 11:00:15 -0000 1.8
@@ -237,7 +237,8 @@
<javadoc
sourcepath="${src.java.dir}"
- packagenames="org.apache.cactus.integration.ant.*"
+ packagenames="org.apache.cactus.ant.*,
+ org.apache.cactus.integration.ant.*"
destdir="${target.doc.api.dir}"
author="true"
public="true"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]