You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2013/12/24 12:22:53 UTC
svn commit: r1553265 [1/2] - in
/ant/sandbox/antdsl/branches/import-experiment:
org.apache.ant.antdsl.tests/.settings/
org.apache.ant.antdsl.tests/META-INF/ org.apache.ant.antdsl/.settings/
org.apache.ant.antdsl/META-INF/services/ org.apache.ant.antdsl...
Author: hibou
Date: Tue Dec 24 11:22:52 2013
New Revision: 1553265
URL: http://svn.apache.org/r1553265
Log:
Add predefined Ant target rather than special command line arguments
Added:
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.core.prefs
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.ui.prefs
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.ui.prefs
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/ResolveBuildTask.java (with props)
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/UpdateBuildTask.java (with props)
Modified:
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/META-INF/MANIFEST.MF
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.core.prefs
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/META-INF/services/org.apache.tools.ant.ArgumentProcessor
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AbstractAntDslProjectHelper.java
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSLArgProcessor.java
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntPathManager.java
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/OSGiFrameworkManager.java
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/antlr/AntDslAntlrProjectHelper.java
ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/xtext/AntDslXTextProjectHelper.java
Added: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.core.prefs?rev=1553265&view=auto
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.core.prefs (added)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.core.prefs Tue Dec 24 11:22:52 2013
@@ -0,0 +1,287 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=true
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
Added: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.ui.prefs?rev=1553265&view=auto
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.ui.prefs (added)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/.settings/org.eclipse.jdt.ui.prefs Tue Dec 24 11:22:52 2013
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+formatter_profile=_AntDsl
+formatter_settings_version=12
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/META-INF/MANIFEST.MF?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/META-INF/MANIFEST.MF (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl.tests/META-INF/MANIFEST.MF Tue Dec 24 11:22:52 2013
@@ -12,7 +12,8 @@ Require-Bundle: org.apache.ant.antdsl,
org.eclipse.xtext.junit4,
org.eclipse.xtext.ui.junit,
org.junit4,
- org.eclipse.ui.workbench;resolution:=optional
+ org.eclipse.ui.workbench;resolution:=optional,
+ org.apache.ant;bundle-version="1.8.3"
Import-Package: org.apache.log4j,
org.apache.commons.logging,
org.junit.runner;version="4.5.0",
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.core.prefs?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.core.prefs (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.core.prefs Tue Dec 24 11:22:52 2013
@@ -9,3 +9,283 @@ org.eclipse.jdt.core.compiler.debug.sour
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=true
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
Added: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.ui.prefs?rev=1553265&view=auto
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.ui.prefs (added)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/.settings/org.eclipse.jdt.ui.prefs Tue Dec 24 11:22:52 2013
@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+formatter_profile=_AntDsl
+formatter_settings_version=12
+eclipse.preferences.version=1
+formatter_profile=_AntDsl
+formatter_settings_version=12
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/META-INF/services/org.apache.tools.ant.ArgumentProcessor
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/META-INF/services/org.apache.tools.ant.ArgumentProcessor?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/META-INF/services/org.apache.tools.ant.ArgumentProcessor (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/META-INF/services/org.apache.tools.ant.ArgumentProcessor Tue Dec 24 11:22:52 2013
@@ -1 +0,0 @@
-org.apache.ant.antdsl.AntDSLArgProcessor
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AbstractAntDslProjectHelper.java
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AbstractAntDslProjectHelper.java?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AbstractAntDslProjectHelper.java (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AbstractAntDslProjectHelper.java Tue Dec 24 11:22:52 2013
@@ -21,11 +21,10 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.net.MalformedURLException;
import java.net.URL;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
-import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
@@ -52,7 +51,6 @@ import org.apache.tools.ant.UnknownEleme
import org.apache.tools.ant.helper.AntXMLContext;
import org.apache.tools.ant.taskdefs.Taskdef;
import org.apache.tools.ant.taskdefs.condition.Condition;
-import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.types.resources.FileProvider;
import org.apache.tools.ant.types.resources.URLProvider;
@@ -63,18 +61,18 @@ import org.osgi.framework.BundleExceptio
public abstract class AbstractAntDslProjectHelper extends ProjectHelper {
- private static final String REFID_CONTEXT = "antdsl.parsingcontext";
+ private static final String REFID_CONTEXT = "antdsl.parsingcontext";
public static final String REFID_FUNCTION_REGISTRY = "antdsl.function.registry";
public static final String REFID_OSGI_FRAMEWORK_MANAGER = "antdsl.osgi.framework.manager";
+ public static final String REFID_RELOAD_BUNDLES = "antdsl.reload.bundles";
+
public static final String REFID_CLASSLOADER_STACK = "antdsl.classloader.stack";
public static final String REFID_ANT_PATH = "antdsl.path";
- private AntPathManager antPathManager = new AntPathManager();
-
public String getDefaultBuildFile() {
return "build.ant";
}
@@ -128,6 +126,24 @@ public abstract class AbstractAntDslProj
} else {
// top level file
context.setCurrentTargets(new HashMap<String, Target>());
+
+ // introduce our two special target to resolve and update the build
+ Target resolveBuildTarget = new Target();
+ context.setCurrentTarget(resolveBuildTarget);
+ mapCommonTarget(resolveBuildTarget, project, context, "resolve-build", "launch a resolve of the ant path from the ivy.xml of the build", null, null, null);
+ ResolveBuildTask resolveBuildTask = new ResolveBuildTask();
+ mapCommonTask(project, context, resolveBuildTask);
+ resolveBuildTarget.addTask(resolveBuildTask);
+
+ Target updateBuildTarget = new Target();
+ context.setCurrentTarget(updateBuildTarget);
+ mapCommonTarget(updateBuildTarget, project, context, "update-build", "launch an update of the ant path from the ivy-fixed.xml of the build", null, null, null);
+ UpdateBuildTask updateBuildTask = new UpdateBuildTask();
+ mapCommonTask(project, context, updateBuildTask);
+ updateBuildTarget.addTask(updateBuildTask);
+
+ context.setCurrentTarget(context.getImplicitTarget());
+
parse(project, source, context);
// Execute the top-level target
@@ -140,7 +156,8 @@ public abstract class AbstractAntDslProj
OnMissingExtensionPoint missingBehaviour = OnMissingExtensionPoint.valueOf(extensionInfo[2]);
Hashtable<String, Target> projectTargets = project.getTargets();
if (!projectTargets.containsKey(tgName)) {
- String message = "can't add target " + name + " to extension-point " + tgName + " because the extension-point is unknown.";
+ String message = "can't add target " + name + " to extension-point " + tgName
+ + " because the extension-point is unknown.";
if (missingBehaviour == OnMissingExtensionPoint.FAIL) {
throw new BuildException(message);
} else if (missingBehaviour == OnMissingExtensionPoint.WARN) {
@@ -225,7 +242,8 @@ public abstract class AbstractAntDslProj
}
- abstract protected void doParse(InputStream in, String buildFileName, Project project, AntDslContext context) throws IOException;
+ abstract protected void doParse(InputStream in, String buildFileName, Project project, AntDslContext context)
+ throws IOException;
public void setupProject(Project project, AntDslContext context, String name, String basedir, String def) {
boolean nameAttributeSet = false;
@@ -259,7 +277,8 @@ public abstract class AbstractAntDslProj
try {
dupFile = new URL(dup);
} catch (java.net.MalformedURLException mue) {
- throw new BuildException("failed to parse " + dup + " as URL while looking" + " at a duplicate project" + " name.", mue);
+ throw new BuildException("failed to parse " + dup + " as URL while looking"
+ + " at a duplicate project" + " name.", mue);
}
contextFile = context.getBuildFileURL();
} else {
@@ -268,8 +287,8 @@ public abstract class AbstractAntDslProj
}
if (context.isIgnoringProjectTag() && !dupFile.equals(contextFile)) {
- project.log("Duplicated project name in import. Project " + context.getCurrentProjectName() + " defined first in " + dup
- + " and again in " + contextFile, Project.MSG_WARN);
+ project.log("Duplicated project name in import. Project " + context.getCurrentProjectName()
+ + " defined first in " + dup + " and again in " + contextFile, Project.MSG_WARN);
}
}
if (nameAttributeSet) {
@@ -286,17 +305,6 @@ public abstract class AbstractAntDslProj
return;
}
- OSGiFrameworkManager osgiFrameworkManager = project.getReference(REFID_OSGI_FRAMEWORK_MANAGER);
- if (osgiFrameworkManager == null) {
- try {
- osgiFrameworkManager = new OSGiFrameworkManager(project.getBaseDir());
- } catch (BundleException e) {
- throw new BuildException("Unable to boot the OSGi framwork (" + e.getMessage() + ")", e);
- }
- project.addReference(REFID_OSGI_FRAMEWORK_MANAGER, osgiFrameworkManager);
- }
- getClassloaderStack(project).push(osgiFrameworkManager.getGodClassLoader());
-
// set explicitly before starting ?
if (project.getProperty("basedir") != null) {
project.setBasedir(project.getProperty("basedir"));
@@ -315,59 +323,29 @@ public abstract class AbstractAntDslProj
}
project.addTarget("", context.getImplicitTarget());
context.setCurrentTarget(context.getImplicitTarget());
- }
- private String getTargetPrefix(AntXMLContext context) {
- String prefix = getCurrentTargetPrefix();
- if (prefix != null && prefix.length() == 0) {
- return null;
- }
- return prefix;
- }
+ List<File> antPath = new ArrayList<File>();
+ boolean update = AntPathManager.readAntPath(project, antPath);
- protected void setupAntpath(Project project, AntDslContext context, List<InnerElement> antpathElements) {
- OSGiFrameworkManager osgiFrameworkManager = getOSGiFrameworkManager(project);
+ OSGiFrameworkManager osgiFrameworkManager = project.getReference(REFID_OSGI_FRAMEWORK_MANAGER);
+ if (osgiFrameworkManager == null) {
+ try {
+ osgiFrameworkManager = new OSGiFrameworkManager(project.getBaseDir(), update);
+ } catch (BundleException e) {
+ throw new BuildException("Unable to boot the OSGi framwork (" + e.getMessage() + ")", e);
+ }
+ project.addReference(REFID_OSGI_FRAMEWORK_MANAGER, osgiFrameworkManager);
+ }
+ getClassloaderStack(project).push(osgiFrameworkManager.getGodClassLoader());
- Path antPath = project.getReference(REFID_ANT_PATH);
- if (antPath == null) {
- antPath = new Path(project);
- }
-
- antPathManager.readAntPath(project, antPath);
-
- if (!antpathElements.isEmpty()) {
- UnknownElement element = new UnknownElement("path");
- element.setProject(project);
- RuntimeConfigurable wrapper = new RuntimeConfigurable(element, element.getTaskName());
- context.pushWrapper(wrapper);
- for (InnerElement antpathElement : antpathElements) {
- UnknownElement child = mapUnknown(project, context, antpathElement, false);
- element.addChild(child);
- }
- context.popWrapper();
- element.configure(antPath);
- }
-
- Iterator<Resource> itResources = antPath.iterator();
- while (itResources.hasNext()) {
- Resource resource = itResources.next();
- String url;
- if (resource instanceof URLProvider) {
- url = ((URLProvider) resource).getURL().toExternalForm();
- } else if (resource instanceof FileProvider) {
+ if (update) {
+ for (File file : antPath) {
try {
- url = ((FileProvider) resource).getFile().toURI().toURL().toExternalForm();
- } catch (MalformedURLException e) {
- throw new BuildException("Unable to get url of " + resource, e);
+ osgiFrameworkManager.install(file);
+ } catch (BundleException e) {
+ throw new BuildException("Unable to install the bundle " + file.getAbsolutePath() + " ("
+ + e.getMessage() + ")", e);
}
- } else {
- // very speculative, but let's try
- url = resource.getName();
- }
- try {
- osgiFrameworkManager.install(url);
- } catch (BundleException e) {
- throw new BuildException("Unable to install the bundle " + resource.getName() + " (" + e.getMessage() + ")", e);
}
}
@@ -378,8 +356,17 @@ public abstract class AbstractAntDslProj
}
}
+ private String getTargetPrefix(AntXMLContext context) {
+ String prefix = getCurrentTargetPrefix();
+ if (prefix != null && prefix.length() == 0) {
+ return null;
+ }
+ return prefix;
+ }
+
protected void importAntlib(Project project, AntDslContext context, String name, String resource) {
- // TODO maybe we can do some caching here, each time a build module import the exact same antlib, it is reloaded
+ // TODO maybe we can do some caching here, each time a build module
+ // import the exact same antlib, it is reloaded
String fqn = context.addFQNPrefix(name, resource);
@@ -455,9 +442,8 @@ public abstract class AbstractAntDslProj
context.setIgnoreProjectTag(oldIgnoringProjectTag);
}
- public void mapCommonTarget(
- Target target, Project project, AntDslContext context, String name, String description, List<Pair<String, String>> depends,
- List<Pair<String, String>> extensionsOf, String onMiss) {
+ public void mapCommonTarget(Target target, Project project, AntDslContext context, String name, String description,
+ List<Pair<String, String>> depends, List<Pair<String, String>> extensionsOf, String onMiss) {
OnMissingExtensionPoint extensionPointMissing = null;
if (onMiss != null) {
extensionPointMissing = OnMissingExtensionPoint.valueOf(onMiss.toUpperCase(Locale.ENGLISH));
@@ -494,7 +480,9 @@ public abstract class AbstractAntDslProj
}
if (extensionPointMissing != null && extensionsOf == null) {
- throw new BuildException("onMissingExtensionPoint attribute cannot be specified unless extensionOf is specified", target.getLocation());
+ throw new BuildException(
+ "onMissingExtensionPoint attribute cannot be specified unless extensionOf is specified",
+ target.getLocation());
}
if (extensionsOf != null) {
ProjectHelper helper = context.getProject().getReference(ProjectHelper.PROJECTHELPER_REFERENCE);
@@ -503,14 +491,15 @@ public abstract class AbstractAntDslProj
if (extensionOf.first == null) {
extensionName = fqnPrefix + extensionOf.second;
} else {
- extensionName = context.getFQNPrefix(extensionOf.first) + getCurrentPrefixSeparator() + extensionOf.second;
+ extensionName = context.getFQNPrefix(extensionOf.first) + getCurrentPrefixSeparator()
+ + extensionOf.second;
}
if (extensionPointMissing == null) {
extensionPointMissing = OnMissingExtensionPoint.FAIL;
}
// defer extensionpoint resolution until the full
// import stack has been processed
- helper.getExtensionStack().add(new String[] {extensionName, name, extensionPointMissing.name()});
+ helper.getExtensionStack().add(new String[] { extensionName, name, extensionPointMissing.name() });
}
}
}
@@ -520,7 +509,8 @@ public abstract class AbstractAntDslProj
task.setOwningTarget(context.getCurrentTarget());
}
- public UnknownElement mapUnknown(Project project, AntDslContext context, InnerElement innerElement, boolean innerUnknown) {
+ public UnknownElement mapUnknown(Project project, AntDslContext context, InnerElement innerElement,
+ boolean innerUnknown) {
RuntimeConfigurable parentWrapper = (RuntimeConfigurable) context.currentWrapper();
Object parent = null;
@@ -674,7 +664,8 @@ public abstract class AbstractAntDslProj
}
// first remove the quotes
s = s.substring(1, s.length() - 1);
- // code copied from org.eclipse.xtext.util.Strings.convertFromJavaString(String, boolean)
+ // code copied from
+ // org.eclipse.xtext.util.Strings.convertFromJavaString(String, boolean)
char[] in = s.toCharArray();
int off = 0;
int len = s.length();
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSL.g Tue Dec 24 11:22:52 2013
@@ -19,6 +19,22 @@ grammar AntDSL;
@lexer::header {
package org.apache.ant.antdsl.antlr;
+
+import java.util.ArrayList;
+}
+
+@lexer::members {
+ private List<String> errors = new ArrayList<String>();
+
+ public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
+ String hdr = getErrorHeader(e);
+ String msg = getErrorMessage(e, tokenNames);
+ errors.add(hdr + " " + msg);
+ }
+
+ public List<String> getErrors() {
+ return errors;
+ }
}
@parser::header {
@@ -35,6 +51,7 @@ import org.apache.tools.ant.*;
import org.apache.tools.ant.taskdefs.*;
import org.apache.tools.ant.taskdefs.condition.*;
import java.util.LinkedHashMap;
+import java.util.ArrayList;
}
@parser::members {
@@ -44,6 +61,8 @@ import java.util.LinkedHashMap;
private AntDslAntlrProjectHelper projectHelper;
+ private List<String> errors = new ArrayList<String>();
+
public void setProject(Project project) {
this.project = project;
}
@@ -55,6 +74,17 @@ import java.util.LinkedHashMap;
public void setProjectHelper(AntDslAntlrProjectHelper projectHelper) {
this.projectHelper = projectHelper;
}
+
+ public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
+ String hdr = getErrorHeader(e);
+ String msg = getErrorMessage(e, tokenNames);
+ errors.add(hdr + " " + msg);
+ }
+
+ public List<String> getErrors() {
+ return errors;
+ }
+
}
project:
@@ -66,11 +96,18 @@ project:
{ projectHelper.setupProject(project, context, name, basedir, def); }
( 'namespaces' '{' ( ns=namespace { context.addFQNPrefix(ns.first, ns.second); } )* '}')?
tl=taskList?
- { for (Task t : tl) { context.getImplicitTarget().addTask(t); } }
+ {
+ if (tl != null) {
+ for (Task t : tl) {
+ context.getImplicitTarget().addTask(t);
+ }
+ }
+ }
( target
| extensionPoint
| funcdef
)*
+ EOF
;
namespace returns [Pair<String, String> ns = new Pair<String, String>()]:
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSLArgProcessor.java
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSLArgProcessor.java?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSLArgProcessor.java (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntDSLArgProcessor.java Tue Dec 24 11:22:52 2013
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.ant.antdsl;
-
-import java.io.PrintStream;
-import java.util.List;
-
-import org.apache.tools.ant.ArgumentProcessor;
-import org.apache.tools.ant.Project;
-
-public class AntDSLArgProcessor implements ArgumentProcessor {
-
- public int readArguments(String[] args, int pos) {
- if (args[pos].equals("-update-build")) {
- return pos + 1;
- }
- return -1;
- }
-
- public boolean handleArg(List<String> extraArgs) {
- return false;
- }
-
- public void prepareConfigure(Project project, List<String> extraArgs) {
- project.addReference(AntPathManager.REFID_UPDATE_BUILD, true);
- }
-
- public boolean handleArg(Project project, List<String> arg) {
- return true;
- }
-
- public void printUsage(PrintStream writer) {
- writer.println(" -update-build launch a resolve of the ant path");
- }
-
-}
Modified: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntPathManager.java
URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntPathManager.java?rev=1553265&r1=1553264&r2=1553265&view=diff
==============================================================================
--- ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntPathManager.java (original)
+++ ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/src/org/apache/ant/antdsl/AntPathManager.java Tue Dec 24 11:22:52 2013
@@ -18,12 +18,15 @@
package org.apache.ant.antdsl;
import java.io.File;
+import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
-import java.io.FileReader;
import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.text.ParseException;
+import java.util.ArrayList;
import java.util.List;
import org.apache.ivy.Ivy;
@@ -38,87 +41,121 @@ import org.apache.ivy.util.filter.Filter
import org.apache.ivy.util.filter.FilterHelper;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
-import org.apache.tools.ant.types.Path;
+import org.apache.tools.ant.Task;
import org.apache.tools.ant.util.FileUtils;
class AntPathManager {
private static final String IVY_XML_LOCATION = "ant/ivy.xml";
- private static final String IVY_FIXED_XML_LOCATION = "ant/ivy-fixed.xml";
+ private static final String IVY_FIXED_XML_LOCATION = "ant/ivy-fixed.xml";
- private static final String ANT_PATH_LOCATION = "ant/ant.path";
+ private static final String ANT_PATH_LOCATION = "ant/ant.path";
static final String OSGI_STORAGE_LOCATION = "ant/osgi-storage";
- public static final String REFID_UPDATE_BUILD = "antdsl.update-build";
-
private static final Charset UTF8 = Charset.forName("UTF-8");
- void readAntPath(Project project, Path antPath) {
+ private AntPathManager() {
+ // Utility class
+ }
+
+ static boolean readAntPath(Project project, List<File> antPath) {
File ivyFile = new File(project.getBaseDir(), IVY_XML_LOCATION);
if (!ivyFile.exists()) {
- // no ivy file, just an empty path then
- return;
+ log(project, null, "No ivy build found at " + ivyFile.getAbsolutePath(), Project.MSG_VERBOSE);
+ // no ivy file, just an empty path then
+ return true;
}
File ivyFixFile = new File(project.getBaseDir(), IVY_FIXED_XML_LOCATION);
- Boolean updateBuild = (Boolean) project.getReference(REFID_UPDATE_BUILD);
- if (Boolean.TRUE.equals(updateBuild) || !ivyFixFile.exists() || ivyFixFile.lastModified() < ivyFile.lastModified()) {
- updateBuild(project, antPath);
- return;
+ if (!ivyFixFile.exists()) {
+ log(project, null, "No ivy fixed build file found at '" + ivyFixFile.getAbsolutePath() + "'",
+ Project.MSG_ERR);
+ throw new BuildException("");
}
File antPathFile = new File(project.getBaseDir(), ANT_PATH_LOCATION);
- if (!antPathFile.exists() || antPathFile.lastModified() < ivyFixFile.lastModified()) {
- Ivy ivy = configureBuildIvy(project);
- ResolveReport report = resolveBuild(project, ivyFixFile, ivy);
- Path ivyPath = getIvyBuildPath(project, report);
- writePath(project, ivyPath);
- antPath.add(ivyPath);
- return;
+ boolean update = false;
+ if (!antPathFile.exists()) {
+ log(project, null, "The serialized ant path '" + antPathFile + "' was not found", Project.MSG_INFO);
+ update = true;
+ } else if (antPathFile.lastModified() < ivyFixFile.lastModified()) {
+ log(project, null, "The serialized ant path '" + antPathFile.getAbsolutePath() + "' is not up to date",
+ Project.MSG_INFO);
+ update = true;
+ } else {
+ log(project, null, "The serialized ant path '" + antPathFile.getAbsolutePath() + "' is up to date",
+ Project.MSG_VERBOSE);
+ }
+ if (update) {
+ updateBuild(project, null, antPath, ivyFixFile);
+ return true;
}
String path;
try {
- path = FileUtils.readFully(new FileReader(antPathFile));
+ path = FileUtils.readFully(new InputStreamReader(new FileInputStream(antPathFile), UTF8));
} catch (FileNotFoundException e) {
- throw new BuildException("The cached ant path " + antPathFile + " has been deleted juste before reading it", e);
+ throw new BuildException("The cached ant path '" + antPathFile
+ + "' has been deleted juste before reading it", e);
} catch (IOException e) {
- throw new BuildException("The cached ant path " + antPathFile + " cannot be read", e);
+ throw new BuildException("The cached ant path '" + antPathFile + "' cannot be read", e);
+ }
+ if (path != null) {
+ for (String file : path.split("\n")) {
+ antPath.add(new File(file));
+ }
}
- antPath.createPathElement().setPath(path);
+ return false;
+ }
+
+ static void updateBuild(Project project, Task task) {
+ updateBuild(project, task, new ArrayList<File>(), new File(project.getBaseDir(), IVY_FIXED_XML_LOCATION));
}
- private Path getIvyBuildPath(Project project, ResolveReport report) {
+ private static void updateBuild(Project project, Task task, List<File> antPath, File ivyFixFile) {
+ log(project, task, "Launching an update of the ant path", Project.MSG_INFO);
+ Ivy ivy = configureBuildIvy(project);
+ log(project, task, "Launching a resolve of the ivy fixed build file '" + ivyFixFile.getAbsolutePath() + "'",
+ Project.MSG_INFO);
+ ResolveReport report = resolve(project, ivyFixFile, ivy);
+ populateAntPath(project, report, antPath);
+ writePath(project, task, antPath);
+ }
+
+ private static List<File> populateAntPath(Project project, ResolveReport report, List<File> antPath) {
// TODO make it configurable
boolean uncompress = true;
boolean osgi = true;
- Filter artifactfilter = FilterHelper.getArtifactTypeFilter(new String[] {"bundle", "jar"});
+ Filter artifactfilter = FilterHelper.getArtifactTypeFilter(new String[] { "bundle", "jar" });
- Path ivyPath = new Path(project);
for (ArtifactDownloadReport adr : report.getAllArtifactsReports()) {
if (artifactfilter.accept(adr.getArtifact())) {
File f = adr.getLocalFile();
if (uncompress && adr.getUncompressedLocalDir() != null) {
f = adr.getUncompressedLocalDir();
}
- addToPath(ivyPath, f, osgi);
+ addToPath(antPath, f, osgi);
}
}
- return ivyPath;
+ return antPath;
}
- private void writePath(Project project, Path ivyPath) {
+ private static void writePath(Project project, Task task, List<File> antPath) {
File antPathFile = new File(project.getBaseDir(), ANT_PATH_LOCATION);
- FileOutputStream out;
+ log(project, task, "Serializing the ant path to '" + antPathFile.getAbsolutePath() + "'", Project.MSG_INFO);
+ OutputStreamWriter out;
try {
- out = new FileOutputStream(antPathFile);
+ out = new OutputStreamWriter(new FileOutputStream(antPathFile), UTF8);
} catch (FileNotFoundException e) {
- throw new BuildException("The cached ant path " + antPathFile + "could not be written", e);
+ throw new BuildException("The cached ant path '" + antPathFile + "' could not be written", e);
}
try {
- out.write(ivyPath.toString().getBytes(UTF8.name()));
+ for (File file : antPath) {
+ out.write(file.getAbsolutePath());
+ out.write('\n');
+ }
} catch (IOException e) {
- throw new BuildException("The cached ant path " + antPathFile + "could not be written", e);
+ throw new BuildException("The cached ant path '" + antPathFile + "' could not be written", e);
} finally {
try {
out.close();
@@ -128,75 +165,74 @@ class AntPathManager {
}
}
- private void addToPath(Path path, File f, boolean osgi) {
+ private static void addToPath(List<File> antPath, File f, boolean osgi) {
if (!osgi || !f.isDirectory()) {
- path.createPathElement().setLocation(f);
+ antPath.add(f);
return;
}
File manifest = new File(f, "META-INF/MANIFEST.MF");
if (!manifest.exists()) {
- path.createPathElement().setLocation(f);
+ antPath.add(f);
return;
}
BundleInfo bundleInfo;
try {
bundleInfo = ManifestParser.parseManifest(manifest);
} catch (IOException e) {
- throw new BuildException("The manifest " + manifest + " could not be read", e);
+ throw new BuildException("The manifest '" + manifest + "' could not be read", e);
} catch (ParseException e) {
- throw new BuildException("The manifest " + manifest + " could not be parsed", e);
+ throw new BuildException("The manifest '" + manifest + "' could not be parsed", e);
}
@SuppressWarnings("unchecked")
List<String> cp = bundleInfo.getClasspath();
if (cp == null) {
- path.createPathElement().setLocation(f);
+ antPath.add(f);
return;
}
for (int i = 0; i < cp.size(); i++) {
String p = (String) cp.get(i);
if (p.equals(".")) {
- path.createPathElement().setLocation(f);
+ antPath.add(f);
} else {
- path.createPathElement().setLocation(new File(f, p));
+ antPath.add(new File(f, p));
}
}
}
- private void updateBuild(Project project, Path antPath) {
+ static void resolveBuild(Project project, Task task) {
File ivyFile = new File(project.getBaseDir(), IVY_XML_LOCATION);
- if (!ivyFile.exists()) {
- return;
- }
-
Ivy ivy = configureBuildIvy(project);
- ResolveReport report = resolveBuild(project, ivyFile, ivy);
- writeIvyFixed(project, ivy, report);
- Path ivyPath = getIvyBuildPath(project, report);
- writePath(project, ivyPath);
- antPath.add(ivyPath);
+ log(project, task, "Launching a resolve of the ivy build file '" + ivyFile.getAbsolutePath() + "'",
+ Project.MSG_INFO);
+ ResolveReport report = resolve(project, ivyFile, ivy);
+ writeIvyFixed(project, task, ivy, report);
+ List<File> antPath = new ArrayList<File>();
+ populateAntPath(project, report, antPath);
+ writePath(project, task, antPath);
}
- private void writeIvyFixed(Project project, Ivy ivy, ResolveReport report) {
+ private static void writeIvyFixed(Project project, Task task, Ivy ivy, ResolveReport report) {
File ivyFixFile = new File(project.getBaseDir(), IVY_FIXED_XML_LOCATION);
+ log(project, task, "Writing the ivy fixed file to '" + ivyFixFile.getAbsolutePath() + "'", Project.MSG_INFO);
ModuleDescriptor md = report.toFixedModuleDescriptor(ivy.getSettings(), null);
try {
XmlModuleDescriptorWriter.write(md, ivyFixFile);
} catch (IOException e) {
- throw new BuildException("Failed to write into the file " + ivyFixFile + " (" + e.getMessage() + ")", e);
+ throw new BuildException("Failed to write into the file '" + ivyFixFile + "' (" + e.getMessage() + ")", e);
}
}
- private ResolveReport resolveBuild(Project project, File ivyFile, Ivy ivy) {
+ private static ResolveReport resolve(Project project, File ivyFile, Ivy ivy) {
ResolveReport report;
try {
ResolveOptions options = new ResolveOptions();
options.setUncompress(true);
report = ivy.resolve(ivyFile, options);
} catch (ParseException e) {
- throw new BuildException("The ivy file " + ivyFile + " could not be parsed", e);
+ throw new BuildException("The ivy file '" + ivyFile + "' could not be parsed", e);
} catch (IOException e) {
- throw new BuildException("The ivy file " + ivyFile + " could not be read", e);
+ throw new BuildException("The ivy file '" + ivyFile + "' could not be read", e);
}
if (report.hasError()) {
@SuppressWarnings("unchecked")
@@ -204,12 +240,12 @@ class AntPathManager {
for (String error : errors) {
project.log(error, Project.MSG_ERR);
}
- throw new BuildException("Resolve of the build path failed");
+ throw new BuildException("Resolve failed");
}
return report;
}
- private Ivy configureBuildIvy(Project project) {
+ private static Ivy configureBuildIvy(Project project) {
Ivy ivy = Ivy.newInstance();
File ivysettingsFile = new File(project.getBaseDir(), "ant/ivysettings.xml");
@@ -217,9 +253,9 @@ class AntPathManager {
try {
ivy.configure(ivysettingsFile);
} catch (ParseException e) {
- throw new BuildException("The ivysettings file " + ivysettingsFile + " could not be parsed", e);
+ throw new BuildException("The ivysettings file '" + ivysettingsFile + "' could not be parsed", e);
} catch (IOException e) {
- throw new BuildException("The ivysettings file " + ivysettingsFile + " could not be read", e);
+ throw new BuildException("The ivysettings file '" + ivysettingsFile + "' could not be read", e);
}
} else {
try {
@@ -233,4 +269,11 @@ class AntPathManager {
return ivy;
}
+ private static void log(Project project, Task task, String message, int level) {
+ if (task == null) {
+ project.log("== Ant Path Manager == " + message, level);
+ } else {
+ project.log(task, message, level);
+ }
+ }
}