fd6bb9f6a5
Implement a new build system using Buck[1], Facebook's open source clone of Google's internal build system. Pros: - Concise build language - Test and build output is concise - Test failures and stack traces show on terminal - Reliable incrementals; clean is unnecessary - Extensible with simple blocks of Python - Fast buck: clean: 0.452s, full 1m21.083s [*], no-op: 7.145s, mvn: clean: 4.596s, full 2m53.776s, no-op: 59.108s, [*] full build includes downloading all dependencies, time can vary due to remote server performance. Cons: - No Windows support - No native Maven Central support (added by macros) - No native GWT, Prolog, or WAR support (added by macros) - Bootstrap of buck requires Ant Getting started: git clone https://gerrit.googlesource.com/buck cd buck ant Mac OS X: PATH="`pwd`/bin:/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands:$PATH" Linux: PATH="`pwd`/bin:$PATH" Importing into Eclipse: $ time buck build :eclipse 0m48.949s Import existing project from `pwd` Import 'gerrit' (do not import other Maven based projects) Expand 'gerrit' Right click 'buck-out' > Properties Under Attributes check 'Derived' If the code doesn't currently compile but an updated classpath is needed, refresh the configs and obtain missing JARs: $ buck build :eclipse_project :download Running JUnit tests: $ time buck test --all -e slow # skip slow tests 0m19.320s $ time buck test --all # includes acceptance tests 5m17.517s Building WAR: $ buck build :gerrit $ java -jar buck-out/gen/gerrit.war Building release: $ buck test --all && buck build :api :release $ java -jar buck-out/gen/release.war $ ls -lh buck-out/gen/{extension,plugin}-api.jar Downloading dependencies: Dependencies are normally downloaded automatically, but Buck can inspect its graph and download missing dependencies so future compiles can run without the network: $ buck build :download [1] http://facebook.github.io/buck/ Change-Id: I40853b108bd8e153cefa0896a5280a9a5ff81655
62 lines
2.9 KiB
INI
62 lines
2.9 KiB
INI
#Wed Jul 29 11:31:38 PDT 2009
|
|
eclipse.preferences.version=1
|
|
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
|
formatter_profile=_Google Format
|
|
formatter_settings_version=11
|
|
org.eclipse.jdt.ui.ignorelowercasenames=true
|
|
org.eclipse.jdt.ui.importorder=com.google;com;junit;net;org;java;javax;
|
|
org.eclipse.jdt.ui.ondemandthreshold=99
|
|
org.eclipse.jdt.ui.staticondemandthreshold=99
|
|
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
|
|
sp_cleanup.add_default_serial_version_id=true
|
|
sp_cleanup.add_generated_serial_version_id=false
|
|
sp_cleanup.add_missing_annotations=false
|
|
sp_cleanup.add_missing_deprecated_annotations=true
|
|
sp_cleanup.add_missing_methods=false
|
|
sp_cleanup.add_missing_nls_tags=false
|
|
sp_cleanup.add_missing_override_annotations=true
|
|
sp_cleanup.add_serial_version_id=false
|
|
sp_cleanup.always_use_blocks=true
|
|
sp_cleanup.always_use_parentheses_in_expressions=false
|
|
sp_cleanup.always_use_this_for_non_static_field_access=false
|
|
sp_cleanup.always_use_this_for_non_static_method_access=false
|
|
sp_cleanup.convert_to_enhanced_for_loop=false
|
|
sp_cleanup.correct_indentation=false
|
|
sp_cleanup.format_source_code=false
|
|
sp_cleanup.format_source_code_changes_only=false
|
|
sp_cleanup.make_local_variable_final=true
|
|
sp_cleanup.make_parameters_final=true
|
|
sp_cleanup.make_private_fields_final=true
|
|
sp_cleanup.make_type_abstract_if_missing_method=false
|
|
sp_cleanup.make_variable_declarations_final=false
|
|
sp_cleanup.never_use_blocks=false
|
|
sp_cleanup.never_use_parentheses_in_expressions=true
|
|
sp_cleanup.on_save_use_additional_actions=true
|
|
sp_cleanup.organize_imports=false
|
|
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
|
|
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
|
|
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
|
|
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
|
|
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
|
|
sp_cleanup.remove_private_constructors=true
|
|
sp_cleanup.remove_trailing_whitespaces=true
|
|
sp_cleanup.remove_trailing_whitespaces_all=true
|
|
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
|
|
sp_cleanup.remove_unnecessary_casts=false
|
|
sp_cleanup.remove_unnecessary_nls_tags=false
|
|
sp_cleanup.remove_unused_imports=false
|
|
sp_cleanup.remove_unused_local_variables=false
|
|
sp_cleanup.remove_unused_private_fields=true
|
|
sp_cleanup.remove_unused_private_members=false
|
|
sp_cleanup.remove_unused_private_methods=true
|
|
sp_cleanup.remove_unused_private_types=true
|
|
sp_cleanup.sort_members=false
|
|
sp_cleanup.sort_members_all=false
|
|
sp_cleanup.use_blocks=false
|
|
sp_cleanup.use_blocks_only_for_return_and_throw=false
|
|
sp_cleanup.use_parentheses_in_expressions=false
|
|
sp_cleanup.use_this_for_non_static_field_access=false
|
|
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
|
|
sp_cleanup.use_this_for_non_static_method_access=false
|
|
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
|