summaryrefslogtreecommitdiffstats
path: root/tools/integrate/Modules.java
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2009-09-14 11:23:39 -0700
committerJesse Wilson <jessewilson@google.com>2009-09-15 14:02:30 -0700
commit0ad6047ce9518a68af5b103f8cb4a55e1565d7f7 (patch)
treef1a2f5c38ea802a325c4650a1ee5daf88bb5ead0 /tools/integrate/Modules.java
parentc3400414d2ace90f4bffe1245b6310d9bcdf9bc0 (diff)
downloadlibcore-0ad6047ce9518a68af5b103f8cb4a55e1565d7f7.zip
libcore-0ad6047ce9518a68af5b103f8cb4a55e1565d7f7.tar.gz
libcore-0ad6047ce9518a68af5b103f8cb4a55e1565d7f7.tar.bz2
First cut at a tool to perform automated syncs from Harmony to Dalvik.
Much of the work of the tool is managing three versions of our code: - the current Harmony code - the current Dalvik code - the common ancestor, an older version of Harmony The tool calls out to the command line to perform the actual filesystem work. Eventually I'd like to support all of our modules, and also gathering diffs to send upstream to Harmony.
Diffstat (limited to 'tools/integrate/Modules.java')
-rw-r--r--tools/integrate/Modules.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/tools/integrate/Modules.java b/tools/integrate/Modules.java
new file mode 100644
index 0000000..2475852
--- /dev/null
+++ b/tools/integrate/Modules.java
@@ -0,0 +1,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
+}