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

Unified Diff: client/tools/dartserver/bin/dartserver

Issue 8341078: Archive dartserver code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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/dart.gyp ('k') | client/tools/dartserver/build.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/dartserver/bin/dartserver
diff --git a/client/tools/dartserver/bin/dartserver b/client/tools/dartserver/bin/dartserver
deleted file mode 100755
index 6f8a5d95d3f7cf3658866afbe369d4da75526f91..0000000000000000000000000000000000000000
--- a/client/tools/dartserver/bin/dartserver
+++ /dev/null
@@ -1,65 +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.
-
-"""Based on experimental/apps/total/endart/bin/endart.
-TODO(jacobr): there has to be a better way to integrate this with the build.
-"""
-
-import fnmatch
-import glob
-import os
-import subprocess
-import sys
-
-# Add the tools directory so we can find utils.py.
-sys.path.append(os.path.abspath(os.path.join(
- os.path.dirname(__file__),
- "../../../../tools")))
-
-import utils
-
-
-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):
- root = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..'))
- return [os.path.join(root, file)]
-
-def allJars(directory):
- matches = []
- root = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..'))
- for path, dirs, files in os.walk(os.path.join(root, directory)):
- for file in fnmatch.filter(files, '*.jar'):
- matches.append(os.path.normpath(os.path.join(root, path, file)))
- return matches
-
-def classpath(libs):
- return ':'.join(flatten(libs))
-
-def main():
- buildRoot = utils.GetBuildRoot(utils.GuessOS(), "debug", "dartc")
-
- cp = classpath([
- thisJar(os.path.join('../../', buildRoot, 'dartserver/dartserver.jar')),
- thisJar(os.path.join('../../', buildRoot, 'dartserver/libutil.jar')),
- allJars(os.path.join('../../', buildRoot, 'compiler/lib')),
- allJars('../../../third_party/jetty/7.4.4.v20110707'),
- ])
- root = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),
- '../../../../client'))
- subprocess.call([ 'java', '-classpath', cp,
- 'com.google.appstack.tools.dartserver.DartServer'] +
- [root] + sys.argv[1:])
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « client/dart.gyp ('k') | client/tools/dartserver/build.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698