Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: samples/simple_todo/java/SimpleTodo.java

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/simple_todo/compile.sh ('k') | samples/simple_todo/java/SnapshotRunner.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
- }
-}
« no previous file with comments | « samples/simple_todo/compile.sh ('k') | samples/simple_todo/java/SnapshotRunner.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698