| Index: samples/simple_todo/java/SimpleTodo.java
|
| diff --git a/samples/simple_todo/java/SimpleTodo.java b/samples/simple_todo/java/SimpleTodo.java
|
| deleted file mode 100644
|
| index 0eab6433e9d82622fecffd89666bd109c7649e02..0000000000000000000000000000000000000000
|
| --- a/samples/simple_todo/java/SimpleTodo.java
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE.md file.
|
| -
|
| -import dartino.*;
|
| -
|
| -import java.io.FileInputStream;
|
| -import java.io.FileNotFoundException;
|
| -import java.io.IOException;
|
| -
|
| -class SimpleTodo {
|
| -
|
| - public static void main(String args[]) {
|
| - // Expecting a snapshot of the dart service code on the command line.
|
| - if (args.length != 1) {
|
| - System.out.println("Usage: java SimpleTodo <snapshot>");
|
| - System.exit(1);
|
| - }
|
| -
|
| - // Load libdartino.so.
|
| - System.loadLibrary("dartino");
|
| -
|
| - // Setup Dartino.
|
| - DartinoApi.Setup();
|
| - DartinoServiceApi.Setup();
|
| - DartinoApi.AddDefaultSharedLibrary("libdartino.so");
|
| -
|
| - try {
|
| - // Load snapshot and start dart code on a separate thread.
|
| - FileInputStream snapshotStream = new FileInputStream(args[0]);
|
| - int available = snapshotStream.available();
|
| - byte[] snapshot = new byte[available];
|
| - snapshotStream.read(snapshot);
|
| - Thread dartThread = new Thread(new SnapshotRunner(snapshot));
|
| - dartThread.start();
|
| - } catch (FileNotFoundException e) {
|
| - System.err.println("Failed loading snapshot: file not found.");
|
| - System.exit(1);
|
| - } catch (IOException e) {
|
| - System.err.println("Failed loading snapshot: unknown error.");
|
| - System.exit(1);
|
| - }
|
| -
|
| - TodoController.InteractWithService();
|
| - }
|
| -}
|
|
|