KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jk > ant > JniConfig


1 /*
2  * Copyright 1999-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 package org.apache.jk.ant;
18
19 import org.apache.tools.ant.BuildException;
20
21 /* Base task for 'config guessers'.
22  * Each guesser will set properties based on OS, environment,
23  * properties, well-known locations, other programs.
24  *
25  * Examples:
26  * - set the required include files for JNI compilation
27  * - use apxs to detect apache directories and flags
28  *
29  * XXX Should be usable at top-level as well as in <so>
30  */

31
32 /**
33  * Set preferences for compiling Jni .so files.
34  *
35  * @author Costin Manolache
36  */

37 public class JniConfig {
38     String JavaDoc includes[];
39     
40     public JniConfig() {
41     }
42
43     /** Return include path for JNI
44      */

45     public String JavaDoc[] getIncludes() {
46     return null;
47     }
48
49     /** Return extra C flags that are needed to compile
50      */

51     public String JavaDoc[] getCflags() {
52     return null;
53     }
54     
55     public void execute() throws BuildException {
56     
57     }
58     
59 }
60
Popular Tags