|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| CactusWar.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* ========================================================================
|
|
| 3 |
*
|
|
| 4 |
* Copyright 2005 The Apache Software Foundation.
|
|
| 5 |
*
|
|
| 6 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
| 7 |
* you may not use this file except in compliance with the License.
|
|
| 8 |
* You may obtain a copy of the License at
|
|
| 9 |
*
|
|
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
| 11 |
*
|
|
| 12 |
* Unless required by applicable law or agreed to in writing, software
|
|
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
| 14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
| 15 |
* See the License for the specific language governing permissions and
|
|
| 16 |
* limitations under the License.
|
|
| 17 |
*
|
|
| 18 |
* ========================================================================
|
|
| 19 |
*/
|
|
| 20 |
package org.apache.cactus.integration.ant;
|
|
| 21 |
|
|
| 22 |
/**
|
|
| 23 |
* Implements the nested element cactuswar of the cactifyear task.
|
|
| 24 |
* This element can be configured exactly as the cactifywar task
|
|
| 25 |
* with som additions as context within the ear file.
|
|
| 26 |
*
|
|
| 27 |
*
|
|
| 28 |
* @version $Id: CactusWar.java 239162 2005-04-26 09:57:59Z grimsell $
|
|
| 29 |
*/
|
|
| 30 |
public class CactusWar extends CactifyWarTask |
|
| 31 |
{
|
|
| 32 |
/**
|
|
| 33 |
* Name of the generated web app file
|
|
| 34 |
*/
|
|
| 35 |
private static final String FILE_NAME = "cactus.war"; |
|
| 36 |
|
|
| 37 |
/**
|
|
| 38 |
* Context of the cactus web application
|
|
| 39 |
*/
|
|
| 40 |
private String context;
|
|
| 41 |
|
|
| 42 |
/**
|
|
| 43 |
* @return Returns the context.
|
|
| 44 |
*/
|
|
| 45 | 3 |
public String getContext()
|
| 46 |
{
|
|
| 47 | 3 |
return context;
|
| 48 |
} |
|
| 49 |
|
|
| 50 |
/**
|
|
| 51 |
* @param theContext The context to set.
|
|
| 52 |
*/
|
|
| 53 | 2 |
public void setContext(String theContext) |
| 54 |
{
|
|
| 55 | 2 |
context = theContext; |
| 56 |
} |
|
| 57 |
|
|
| 58 |
/**
|
|
| 59 |
*
|
|
| 60 |
* @return the name of the web app file
|
|
| 61 |
*/
|
|
| 62 | 6 |
public String getFileName()
|
| 63 |
{
|
|
| 64 | 6 |
return FILE_NAME;
|
| 65 |
} |
|
| 66 |
} |
|
| 67 |
|
|
||||||||||