1 | /** This */ | | 1 | /** |
2 | private String[] getCompileOptionsAsArray() { | | 2 | * process included file |
3 | Vector options = new Vector(); | | 3 | * @param name path of the file relative to the directory of the fileset |
4 | | | 4 | */ |
5 | options.addElement(binary ? "-binary" : "-nobinary"); | | 5 | private void accountForIncludedFile(String name) { |
6 | options.addElement(comments ? "-comments" : "-nocomments"); | | 6 | if (!filesIncluded.contains(name) |
7 | options.addElement(compile ? "-compile" : "-nocompile"); | | 7 | && !filesExcluded.contains(name)) { |
8 | options.addElement(compact ? "-compact" : "-nocompact"); | | 8 | |
9 | options.addElement(console ? "-console" : "-noconsole"); | | 9 | if (isIncluded(name)) { |
10 | options.addElement(crossref ? "-crossref" : "-nocrossref"); | | 10 | if (!isExcluded(name)) { |
11 | options.addElement(decimal ? "-decimal" : "-nodecimal"); | | 11 | filesIncluded.addElement(name); |
12 | options.addElement(diag ? "-diag" : "-nodiag"); | | 12 | } else { |
13 | options.addElement(explicit ? "-explicit" : "-noexplicit"); | | 13 | filesExcluded.addElement(name); |
14 | options.addElement(format ? "-format" : "-noformat"); | | 14 | } |
15 | options.addElement(keep ? "-keep" : "-nokeep"); | | 15 | } else { |
16 | options.addElement(logo ? "-logo" : "-nologo"); | | 16 | filesNotIncluded.addElement(name); |
17 | options.addElement(replace ? "-replace" : "-noreplace"); | | 17 | } |
18 | options.addElement(savelog ? "-savelog" : "-nosavelog"); | | 18 | } |
19 | options.addElement(sourcedir ? "-sourcedir" : "-nosourcedir"); | | 19 | } |
20 | options.addElement(strictargs ? "-strictargs" : "-nostrictargs"); | | | |
21 | options.addElement(strictassign ? "-strictassign" : "-nostrictassign"); | | | |
22 | options.addElement(strictcase ? "-strictcase" : "-nostrictcase"); | | | |
23 | options.addElement(strictimport ? "-strictimport" : "-nostrictimport"); | | | |
24 | options.addElement(strictprops ? "-strictprops" : "-nostrictprops"); | | | |
25 | options.addElement(strictsignal ? "-strictsignal" : "-nostrictsignal"); | | | |
26 | options.addElement(symbols ? "-symbols" : "-nosymbols"); | | | |
27 | options.addElement(time ? "-time" : "-notime"); | | | |
28 | options.addElement("-" + trace); | | | |
29 | options.addElement(utf8 ? "-utf8" : "-noutf8"); | | | |
30 | options.addElement("-" + verbose); | | | |
31 | | | | |
32 | String[] results = new String[options.size()]; | | | |
33 | | | | |
34 | options.copyInto(results); | | | |
35 | return results; | | | |
36 | } | | | |