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

Side by Side Diff: dart/tools/create_editor.py

Issue 84963005: Add update.properties file to com.google.dart.tools.core_*.jar file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to create a build of the editor. 7 # A script which will be invoked from gyp to create a build of the editor.
8 # 8 #
9 # Usage: ./tools/create_editor.py 9 # Usage: ./tools/create_editor.py
10 # [--mode <mode>] [--arch <arch>] [--out <output>] [--build <build>] 10 # [--mode <mode>] [--arch <arch>] [--out <output>] [--build <build>]
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 join('third_party', 'bzip2', 'bzip2.jar'), 187 join('third_party', 'bzip2', 'bzip2.jar'),
188 '-Dbuild.out=' + OUTPUT, 188 '-Dbuild.out=' + OUTPUT,
189 '-Dbuild.configs=' + buildConfig, 189 '-Dbuild.configs=' + buildConfig,
190 '-Dbuild.revision=' + utils.GetSVNRevision(), 190 '-Dbuild.revision=' + utils.GetSVNRevision(),
191 '-Ddart.version.full=' + utils.GetVersion(), 191 '-Ddart.version.full=' + utils.GetVersion(),
192 '-Dbuild.root=' + GetEclipseBuildRoot(), 192 '-Dbuild.root=' + GetEclipseBuildRoot(),
193 '-Dbuild.downloads=' + GetDownloadCache(), 193 '-Dbuild.downloads=' + GetDownloadCache(),
194 '-Dbuild.source=' + os.path.abspath('editor'), 194 '-Dbuild.source=' + os.path.abspath('editor'),
195 '-Dbuild.dart.sdk=' + GetSdkPath(), 195 '-Dbuild.dart.sdk=' + GetSdkPath(),
196 '-Dbuild.no.properties=true', 196 '-Dbuild.no.properties=true',
197 '-Dbuild.channel=' + utils.GetChannel(),
197 '-buildfile', 198 '-buildfile',
198 buildScript] 199 buildScript]
199 print build_cmd 200 print build_cmd
200 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows()) 201 buildRcpStatus = subprocess.call(build_cmd, shell=utils.IsWindows())
201 202
202 if buildRcpStatus != 0: 203 if buildRcpStatus != 0:
203 sys.exit(buildRcpStatus) 204 sys.exit(buildRcpStatus)
204 205
205 # build_rcp.xml will put the built editor archive in the OUTPUT directory 206 # build_rcp.xml will put the built editor archive in the OUTPUT directory
206 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a 207 # (dart-editor-macosx.cocoa.x86.zip). It contains the editor application in a
207 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It 208 # dart/ subdirectory. We unzip the contents of the archive into OUTPUT. It
208 # will use the ../dart-sdk directory as its SDK. 209 # will use the ../dart-sdk directory as its SDK.
209 archives = glob.glob(join(OUTPUT, '*.zip')) 210 archives = glob.glob(join(OUTPUT, '*.zip'))
210 211
211 if archives: 212 if archives:
212 ProcessEditorArchive(arch, archives[0], OUTPUT) 213 ProcessEditorArchive(arch, archives[0], OUTPUT)
213 214
214 if os.path.exists(GetEditorTemp()): 215 if os.path.exists(GetEditorTemp()):
215 shutil.rmtree(GetEditorTemp()) 216 shutil.rmtree(GetEditorTemp())
216 217
217 print('\nEditor build successful') 218 print('\nEditor build successful')
218 219
219 220
220 if __name__ == '__main__': 221 if __name__ == '__main__':
221 sys.exit(Main()) 222 sys.exit(Main())
OLDNEW
« no previous file with comments | « dart/editor/tools/plugins/com.google.dart.tools.core/update.properties ('k') | dart/tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698