Jesse Wilson | 0ad6047 | 2009-09-14 11:23:39 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /** |
| 18 | * Constants that define modules shared by Harmony and Dalvik. |
| 19 | */ |
| 20 | public class Modules { |
| 21 | |
| 22 | private static final String SVN_ROOT |
| 23 | = "http://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk/modules"; |
| 24 | |
| 25 | public static final Module ARCHIVE = new Module.Builder(SVN_ROOT, "archive") |
| 26 | .mapDirectory("archive/src/main/native/archive/shared", |
| 27 | "archive/src/main/native") |
| 28 | .mapDirectory("archive/src/main/native/zip/shared", |
| 29 | "archive/src/main/native") |
| 30 | .build(); |
| 31 | |
| 32 | public static final Module CRYPTO = new Module.Builder(SVN_ROOT, "crypto") |
| 33 | .mapDirectory("crypto/src/test/api/java.injected/javax", |
| 34 | "crypto/src/test/java/org/apache/harmony/crypto/tests/javax") |
| 35 | .mapDirectory("crypto/src/test/api/java", |
| 36 | "crypto/src/test/java") |
| 37 | .mapDirectory("crypto/src/test/resources/serialization", |
| 38 | "crypto/src/test/java/serialization") |
| 39 | .mapDirectory("crypto/src/test/support/common/java", |
| 40 | "crypto/src/test/java") |
| 41 | .build(); |
| 42 | |
| 43 | public static final Module REGEX |
| 44 | = new Module.Builder(SVN_ROOT, "regex").build(); |
| 45 | |
| 46 | public static final Module SECURITY = new Module.Builder(SVN_ROOT, "security") |
| 47 | .mapDirectory("security/src/main/java/common", |
| 48 | "security/src/main/java") |
| 49 | .mapDirectory("security/src/main/java/unix/org", |
| 50 | "security/src/main/java/org") |
| 51 | .mapDirectory("security/src/test/api/java", |
| 52 | "security/src/test/java") |
| 53 | .build(); |
| 54 | |
| 55 | public static final Module TEXT |
| 56 | = new Module.Builder(SVN_ROOT, "text").build(); |
| 57 | |
| 58 | public static final Module X_NET |
| 59 | = new Module.Builder(SVN_ROOT, "x-net").build(); |
| 60 | |
| 61 | // TODO: add the other modules |
| 62 | } |