summaryrefslogtreecommitdiffstats
path: root/luni/src/test/etc/loading-test-jar/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'luni/src/test/etc/loading-test-jar/build.sh')
-rwxr-xr-xluni/src/test/etc/loading-test-jar/build.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/luni/src/test/etc/loading-test-jar/build.sh b/luni/src/test/etc/loading-test-jar/build.sh
new file mode 100755
index 0000000..f14f27e
--- /dev/null
+++ b/luni/src/test/etc/loading-test-jar/build.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -e
+#
+# Copyright (C) 2011 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.
+
+rm -rf classes
+rm -rf classes.dex
+rm -rf loading-test.jar
+
+mkdir classes
+javac -d classes *.java
+dx --dex --output=classes.dex classes
+jar cf loading-test.jar classes.dex
+
+rm -rf classes
+rm -rf classes.dex