]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/os390/OS390Processor.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / Cpptasks / net / sf / antcontrib / cpptasks / os390 / OS390Processor.java
CommitLineData
878ddf1f 1/*\r
2 * \r
3 * Copyright 2002-2004 The Ant-Contrib project\r
4 *\r
5 * Licensed under the Apache License, Version 2.0 (the "License");\r
6 * you may not use this file except in compliance with the License.\r
7 * You may obtain a copy of the License at\r
8 *\r
9 * http://www.apache.org/licenses/LICENSE-2.0\r
10 *\r
11 * Unless required by applicable law or agreed to in writing, software\r
12 * distributed under the License is distributed on an "AS IS" BASIS,\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 * See the License for the specific language governing permissions and\r
15 * limitations under the License.\r
16 */\r
17package net.sf.antcontrib.cpptasks.os390;\r
18import java.util.Vector;\r
19/**\r
20 * A add-in class for IBM (r) OS/390 compilers and linkers\r
21 * \r
22 * @author Hiram Chirino (cojonudo14@hotmail.com)\r
23 */\r
24public class OS390Processor {\r
25 public static void addWarningSwitch(Vector args, int level) {\r
26 switch (level) {\r
27 /*\r
28 * case 0: args.addElement("/W0"); break;\r
29 * \r
30 * case 1: args.addElement("/W1"); break;\r
31 * \r
32 * case 2: break;\r
33 * \r
34 * case 3: args.addElement("/W3"); break;\r
35 * \r
36 * case 4: args.addElement("/W4"); break;\r
37 */\r
38 }\r
39 }\r
40 public static String getCommandFileSwitch(String cmdFile) {\r
41 StringBuffer buf = new StringBuffer("@");\r
42 if (cmdFile.indexOf(' ') >= 0) {\r
43 buf.append('\"');\r
44 buf.append(cmdFile);\r
45 buf.append('\"');\r
46 } else {\r
47 buf.append(cmdFile);\r
48 }\r
49 return buf.toString();\r
50 }\r
51 public static String getIncludeDirSwitch(String includeDir) {\r
52 return "-I" + includeDir;\r
53 }\r
54 public static String[] getOutputFileSwitch(String outPath) {\r
55 StringBuffer buf = new StringBuffer("-o ");\r
56 if (outPath.indexOf(' ') >= 0) {\r
57 buf.append('\"');\r
58 buf.append(outPath);\r
59 buf.append('\"');\r
60 } else {\r
61 buf.append(outPath);\r
62 }\r
63 String[] retval = new String[]{buf.toString()};\r
64 return retval;\r
65 }\r
66 public static boolean isCaseSensitive() {\r
67 return true;\r
68 }\r
69 private OS390Processor() {\r
70 }\r
71}\r