From ba2923a3912f266c8fa1691858db29c2ce597928 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Tue, 10 Dec 2013 15:48:47 -0500 Subject: expose the protoutil for launcher as an executable script Change-Id: Ie990262534d85b118c165589ecee55d64f3a58cc --- util/com/android/launcher3/DecoderRing.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util/com') diff --git a/util/com/android/launcher3/DecoderRing.java b/util/com/android/launcher3/DecoderRing.java index 1d9e0defb..bd0275e5f 100644 --- a/util/com/android/launcher3/DecoderRing.java +++ b/util/com/android/launcher3/DecoderRing.java @@ -49,7 +49,7 @@ class DecoderRing { public static void main(String[ ] args) throws Exception { File source = null; - Class type = Key.class; + Class type = null; int skip = 0; for (int i = 0; i < args.length; i++) { @@ -79,6 +79,9 @@ class DecoderRing { } } + if (type == null) { + usage(args); + } // read in the bytes ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); -- cgit v1.2.3