1 | public static JavahAdapter getAdapter(String choice,↵ | | 1 | public static Native2AsciiAdapter getAdapter(String choice,↵
|
2 | ProjectComponent log)↵ | | 2 | ProjectComponent log)↵
|
3 | throws BuildException {↵ | | 3 | throws BuildException {↵
|
4 | if ((JavaEnvUtils.isKaffe() && choice == null)↵ | | 4 | if ((JavaEnvUtils.isKaffe() && choice == null)↵
|
5 | || Kaffeh.IMPLEMENTATION_NAME.equals(choice)) {↵ | | 5 | || KaffeNative2Ascii.IMPLEMENTATION_NAME.equals(choice)) {↵
|
6 | return new Kaffeh();↵ | | 6 | return new KaffeNative2Ascii();↵
|
7 | } else if (SunJavah.IMPLEMENTATION_NAME.equals(choice)) {↵ | | 7 | } else if (SunNative2Ascii.IMPLEMENTATION_NAME.equals(choice)) {↵
|
8 | return new SunJavah();↵ | | 8 | return new SunNative2Ascii();↵
|
9 | } else if (choice != null) {↵ | | 9 | } else if (choice != null) {↵
|
10 | return resolveClassName(choice);↵ | | 10 | return resolveClassName(choice);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | // This default has been good enough until Ant 1.6.3, so stick↵ | | 12 | // This default has been good enough until Ant 1.6.3, so stick↵
|
13 | // with it↵ | | 13 | // with it↵
|
14 | return new SunJavah();↵ | | 14 | return new SunNative2Ascii();↵
|
15 | | | 15 |
|