summaryrefslogtreecommitdiffstats
path: root/tools/integrate/Modules.java
blob: 2475852f5d5550446420e41b2a73452d50db0402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * Copyright (C) 2009 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Constants that define modules shared by Harmony and Dalvik.
 */
public class Modules {

    private static final String SVN_ROOT
            = "http://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk/modules";

    public static final Module ARCHIVE = new Module.Builder(SVN_ROOT, "archive")
            .mapDirectory("archive/src/main/native/archive/shared",
                    "archive/src/main/native")
            .mapDirectory("archive/src/main/native/zip/shared",
                    "archive/src/main/native")
            .build();

    public static final Module CRYPTO = new Module.Builder(SVN_ROOT, "crypto")
            .mapDirectory("crypto/src/test/api/java.injected/javax",
                    "crypto/src/test/java/org/apache/harmony/crypto/tests/javax")
            .mapDirectory("crypto/src/test/api/java",
                    "crypto/src/test/java")
            .mapDirectory("crypto/src/test/resources/serialization",
                    "crypto/src/test/java/serialization")
            .mapDirectory("crypto/src/test/support/common/java",
                    "crypto/src/test/java")
            .build();

    public static final Module REGEX
            = new Module.Builder(SVN_ROOT, "regex").build();

    public static final Module SECURITY = new Module.Builder(SVN_ROOT, "security")
            .mapDirectory("security/src/main/java/common",
                    "security/src/main/java")
            .mapDirectory("security/src/main/java/unix/org",
                    "security/src/main/java/org")
            .mapDirectory("security/src/test/api/java",
                    "security/src/test/java")
            .build();

    public static final Module TEXT
            = new Module.Builder(SVN_ROOT, "text").build();

    public static final Module X_NET
            = new Module.Builder(SVN_ROOT, "x-net").build();

    // TODO: add the other modules
}