From 87c2c1acaaeb91379a950ff56dd4808049ed4d40 Mon Sep 17 00:00:00 2001 From: dswitkin Date: Mon, 17 Dec 2007 18:59:03 +0000 Subject: [PATCH] Put back the buildwithoutj2me target. git-svn-id: https://zxing.googlecode.com/svn/trunk@119 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- build.xml | 5 +++++ .../src/com/google/zxing/client/j2se/CommandLineRunner.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.xml b/build.xml index 0f0d6654c..9fde32ce9 100644 --- a/build.xml +++ b/build.xml @@ -25,6 +25,11 @@ + + + + + diff --git a/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java b/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java index c908f0e1c..a57b1ebb2 100644 --- a/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java +++ b/javase/src/com/google/zxing/client/j2se/CommandLineRunner.java @@ -62,7 +62,8 @@ public final class CommandLineRunner { return false; } try { - String result = new MultiFormatReader().decode(new BufferedImageMonochromeBitmapSource(image)).getText(); + BufferedImageMonochromeBitmapSource source = new BufferedImageMonochromeBitmapSource(image); + String result = new MultiFormatReader().decode(source).getText(); System.out.println(uri.toString() + ": " + result); return true; } catch (ReaderException e) {