01: /*
02: * ========================================================================
03: *
04: * Copyright 2005 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
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: * Name of the generated web app file
33: */
34: private static final String FILE_NAME = "cactus.war";
35:
36: /**
37: * Context of the cactus web application
38: */
39: private String context;
40:
41: /**
42: * @return Returns the context.
43: */
44: public String getContext() {
45: return context;
46: }
47:
48: /**
49: * @param theContext The context to set.
50: */
51: public void setContext(String theContext) {
52: context = theContext;
53: }
54:
55: /**
56: *
57: * @return the name of the web app file
58: */
59: public String getFileName() {
60: return FILE_NAME;
61: }
62: }
|