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

Side by Side Diff: editor/tools/compile_analyzer.py

Issue 27551004: More print statements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tools/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 # 5 #
6 # Script to compile the analyzer. 6 # Script to compile the analyzer.
7 # 7 #
8 # Usage: compile_analyzer.py OPTIONS files 8 # Usage: compile_analyzer.py OPTIONS files
9 # 9 #
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 for file in f: 86 for file in f:
87 if file.endswith('.jar'): 87 if file.endswith('.jar'):
88 print >> output, file, 88 print >> output, file,
89 print >> output 89 print >> output
90 90
91 # version 91 # version
92 print >> output, 'Implementation-Version: %s' % GetDartVersion() 92 print >> output, 'Implementation-Version: %s' % GetDartVersion()
93 93
94 def GetJavacPath(): 94 def GetJavacPath():
95 if 'JAVA_HOME' in os.environ: 95 if 'JAVA_HOME' in os.environ:
96 print 'JAVA HOME'
97 print join(os.environ['JAVA_HOME'], 'bin', 'javac' + GetExecutableExtension( ))
98 return join(os.environ['JAVA_HOME'], 'bin', 'javac' + GetExecutableExtension ()) 96 return join(os.environ['JAVA_HOME'], 'bin', 'javac' + GetExecutableExtension ())
99 else: 97 else:
100 print 'returning javac'
101 return "javac" 98 return "javac"
102 99
103 def GetJarToolPath(): 100 def GetJarToolPath():
104 if 'JAVA_HOME' in os.environ: 101 if 'JAVA_HOME' in os.environ:
105 return join(os.environ['JAVA_HOME'], 'bin', 'jar' + GetExecutableExtension() ) 102 return join(os.environ['JAVA_HOME'], 'bin', 'jar' + GetExecutableExtension() )
106 else: 103 else:
107 return "jar" 104 return "jar"
108 105
109 def GetExecutableExtension(): 106 def GetExecutableExtension():
110 id = platform.system() 107 id = platform.system()
(...skipping 14 matching lines...) Expand all
125 os.makedirs(options.output_dir) 122 os.makedirs(options.output_dir)
126 123
127 CopyFiles(options) 124 CopyFiles(options)
128 CreateManifestFile(options) 125 CreateManifestFile(options)
129 CompileAnalyzer(options, args) 126 CompileAnalyzer(options, args)
130 CreateJarFile(options) 127 CreateJarFile(options)
131 128
132 129
133 if __name__ == '__main__': 130 if __name__ == '__main__':
134 main() 131 main()
OLDNEW
« no previous file with comments | « client/tools/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698