1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.github.maven_nar.cpptasks.os400;
21
22 import java.util.Vector;
23
24
25
26
27
28
29 public class IccProcessor {
30 public static void addWarningSwitch(final Vector<String> args, final int level) {
31 switch (level) {
32
33
34
35
36
37
38
39
40
41
42
43 }
44 }
45
46 public static String getCommandFileSwitch(final String cmdFile) {
47 final StringBuffer buf = new StringBuffer("@");
48 if (cmdFile.indexOf(' ') >= 0) {
49 buf.append('\"');
50 buf.append(cmdFile);
51 buf.append('\"');
52 } else {
53 buf.append(cmdFile);
54 }
55 return buf.toString();
56 }
57
58 public static String getIncludeDirSwitch(final String includeDir) {
59 return "-I" + includeDir;
60 }
61
62 public static String[] getOutputFileSwitch(final String outPath) {
63 final StringBuffer buf = new StringBuffer("-o ");
64 if (outPath.indexOf(' ') >= 0) {
65 buf.append('\"');
66 buf.append(outPath);
67 buf.append('\"');
68 } else {
69 buf.append(outPath);
70 }
71 final String[] retval = new String[] {
72 buf.toString()
73 };
74 return retval;
75 }
76
77 public static boolean isCaseSensitive() {
78 return true;
79 }
80
81 private IccProcessor() {
82 }
83 }