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

Unified Diff: client/fling/dist/fling

Issue 9314025: Remove fling, deftserver (used only by fling), and commons-codec (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « client/fling/build.xml ('k') | client/fling/dist/runtime/apps/adminz/adminz.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/fling/dist/fling
===================================================================
--- client/fling/dist/fling (revision 3853)
+++ client/fling/dist/fling (working copy)
@@ -1,47 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright (c) 2011, the Dart 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 file.
-
-import fnmatch
-import glob
-import os
-import subprocess
-import sys
-
-ROOT = os.path.abspath(os.path.dirname(sys.argv[0]))
-
-def flatten(iterable):
- it = iter(iterable)
- for e in it:
- if isinstance(e, (list, tuple)):
- for f in flatten(e):
- yield f
- else:
- yield e
-
-def thisJar(file):
- return [os.path.join(ROOT, file)]
-
-def allJars(directory):
- matches = []
- for path, dirs, files in os.walk(os.path.join(ROOT, directory)):
- for file in fnmatch.filter(files, '*.jar'):
- matches.append(os.path.join(ROOT, path, file))
- return matches
-
-def classpath(libs):
- return ':'.join(flatten(libs))
-
-def main():
- cp = classpath([ allJars('runtime') ])
- subprocess.call(['java',
- # TODO(knorton): Make this configurable.
- '-Xmx512M',
- '-Dlogback.configurationFile=%s' % os.path.join(ROOT, 'runtime', 'logback.xml'),
- '-classpath', cp,
- 'com.google.dart.fling.Fling'] + sys.argv[1:])
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « client/fling/build.xml ('k') | client/fling/dist/runtime/apps/adminz/adminz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698