1 | boolean isFileManagedBinary(File file) {↵ | | 1 | boolean isFileManagedBinary(File file) {↵
|
2 | String filename = file.toString().toLowerCase();↵ | | 2 | String filename = file.toString().toLowerCase();↵
|
3 | return filename.endsWith(".exe") || filename.endsWith(".dll")↵ | | 3 | return filename.endsWith(".exe") || filename.endsWith(".dll")↵
|
4 | || filename.endsWith(".netmodule");↵ | | 4 | || filename.endsWith(".netmodule");↵
|
5 | }↵ | | 5 | }↵
|
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * Target types to build.↵ | | 7 | * Target types to build.↵
|
8 | * valid build types are exe|library|module|winexe↵ | | 8 | * valid build types are exe|library|module|winexe↵
|
9 | */↵ | | 9 | */↵
|
10 | public static class TargetTypes extends EnumeratedAttribute {↵ | | 10 | public static class TargetTypes extends EnumeratedAttribute {↵
|
11 | /** {@inheritDoc}. */↵ | | 11 | /** {@inheritDoc}. */↵
|
12 | public String[] getValues() {↵ | | 12 | public String[] getValues() {↵
|
13 | return new String[] {↵ | | 13 | return new String[]{↵
|
14 | "exe",↵ | | 14 | "exe",↵
|
15 | "library",↵ | | 15 | "library",↵
|
16 | "module",↵ | | |
|
17 | "winexe"↵ | | |
|
18 | };↵ | | 16 | };↵
|
19 | }↵ | | 17 | }↵
|
20 | | | 18 |
|