01: /*
02: * Copyright 1999-2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 includes[];
39:
40: public JniConfig() {
41: }
42:
43: /** Return include path for JNI
44: */
45: public String[] getIncludes() {
46: return null;
47: }
48:
49: /** Return extra C flags that are needed to compile
50: */
51: public String[] getCflags() {
52: return null;
53: }
54:
55: public void execute() throws BuildException {
56:
57: }
58:
59: }
|