1 //
2 // ========================================================================
3 // Copyright (c) 1995-2012 Sabre Holdings.
4 // ------------------------------------------------------------------------
5 // All rights reserved. This program and the accompanying materials
6 // are made available under the terms of the Eclipse Public License v1.0
7 // and Apache License v2.0 which accompanies this distribution.
8 //
9 // The Eclipse Public License is available at
10 // http://www.eclipse.org/legal/epl-v10.html
11 //
12 // The Apache License v2.0 is available at
13 // http://www.opensource.org/licenses/apache2.0.php
14 //
15 // You may elect to redistribute this code under either of these licenses.
16 // ========================================================================
17 //
18
19 package org.eclipse.jetty.ant;
20
21 import java.io.File;
22 import java.util.List;
23
24 import org.eclipse.jetty.util.log.Log;
25 import org.eclipse.jetty.util.log.Logger;
26 import org.eclipse.jetty.webapp.WebXmlConfiguration;
27
28
29 /**
30 * This configuration object provides additional way to inject application
31 * properties into the configured web application. The list of classpath files,
32 * the application base directory and web.xml file could be specified in this
33 * way.
34 */
35 public class AntWebXmlConfiguration extends WebXmlConfiguration
36 {
37 private static final Logger LOG = Log.getLogger(WebXmlConfiguration.class);
38
39
40
41 /** List of classpath files. */
42 private List classPathFiles;
43
44 /** Web application root directory. */
45 private File webAppBaseDir;
46
47
48 public AntWebXmlConfiguration()
49 {
50 super();
51 }
52
53 public void setClassPathFiles(List classPathFiles)
54 {
55 this.classPathFiles = classPathFiles;
56 }
57
58 public void setWebAppBaseDir(File webAppBaseDir)
59 {
60 this.webAppBaseDir = webAppBaseDir;
61 }
62
63
64
65 }