source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJImportServlet.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 2.0 KB
Line 
1/*
2 * Copyright 2001-2002,2004 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.apache.tools.ant.taskdefs.optional.ide;
19
20import java.io.File;
21
22
23/**
24 * A Remote Access to Tools Servlet to import a Project
25 * from files into the Repository. The following
26 * table describes the servlet parameters.
27 *
28 * <table>
29 * <tr>
30 * <td>Parameter</td>
31 * <td>Description</td>
32 * </tr>
33 * <tr>
34 * <td>project</td>
35 * <td>The name of the project where you want the imported
36 * items to go.
37 * </td>
38 * </tr>
39 * <tr>
40 * <td>dir</td>
41 * <td>The directory you want to import from.</td>
42 * </tr>
43 * </table>
44 *
45 */
46public class VAJImportServlet extends VAJToolsServlet {
47 /**
48 * Respond to a request to import files to the Repository
49 */
50 protected void executeRequest() {
51 getUtil().importFiles(
52 getFirstParamValueString(PROJECT_NAME_PARAM),
53 new File(getFirstParamValueString(DIR_PARAM)),
54 getParamValues(INCLUDE_PARAM),
55 getParamValues(EXCLUDE_PARAM),
56 getBooleanParam(CLASSES_PARAM, false),
57 getBooleanParam(RESOURCES_PARAM, true),
58 getBooleanParam(SOURCES_PARAM, true),
59 false);
60 // no default excludes, because they
61 // are already added on client side
62 // getBooleanParam(DEFAULT_EXCLUDES_PARAM, true)
63
64 }
65}
Note: See TracBrowser for help on using the repository browser.