KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > taskdefs > optional > ide > VAJUtil


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
18 package org.apache.tools.ant.taskdefs.optional.ide;
19
20 import java.io.File JavaDoc;
21 import java.util.Vector JavaDoc;
22
23 /**
24  * Helper interface for VAJ tasks. Encapsulates
25  * the interface to the VAJ tool API.
26  *
27  */

28 interface VAJUtil {
29     // log levels
30
static final int MSG_DEBUG = 4;
31     static final int MSG_ERR = 0;
32     static final int MSG_INFO = 2;
33     static final int MSG_VERBOSE = 3;
34     static final int MSG_WARN = 1;
35
36     /**
37      * export the array of Packages
38      */

39     void exportPackages(
40         File JavaDoc dest,
41         String JavaDoc[] includePatterns, String JavaDoc[] excludePatterns,
42         boolean exportClasses, boolean exportDebugInfo,
43         boolean exportResources, boolean exportSources,
44         boolean useDefaultExcludes, boolean overwrite);
45
46     /**
47      * Do the import.
48      */

49     void importFiles(
50         String JavaDoc importProject, File JavaDoc srcDir,
51         String JavaDoc[] includePatterns, String JavaDoc[] excludePatterns,
52         boolean importClasses, boolean importResources,
53         boolean importSources, boolean useDefaultExcludes);
54
55     /**
56      * Load specified projects.
57      */

58     void loadProjects(Vector JavaDoc projectDescriptions);
59
60     /**
61      * Logs a message with the specified log level.
62      */

63     void log(String JavaDoc msg, int level);
64 }
65
Popular Tags