Bug 571007 - Move copyright tool to buildtools repository
Move releng tools tests to buildtools repo in new bundle.
Migrate to JUnit 5 while at it.
Do not skip tests by default in parent pom.
Change-Id: Ibac028e15040ede42e18a18e664c75bae7c7c102
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.releng.tools.tests/.classpath b/bundles/org.eclipse.releng.tools.tests/.classpath
new file mode 100644
index 0000000..4a00bec
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.classpath
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
+ <attributes>
+ <attribute name="module" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/org.eclipse.releng.tools.tests/.gitignore b/bundles/org.eclipse.releng.tools.tests/.gitignore
new file mode 100644
index 0000000..f08c220
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.gitignore
@@ -0,0 +1,2 @@
+*~
+/*.jpage
diff --git a/bundles/org.eclipse.releng.tools.tests/.project b/bundles/org.eclipse.releng.tools.tests/.project
new file mode 100644
index 0000000..0167ecd
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.project
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.releng.tools.tests</name>
+ <comment></comment>
+ <projects>
+ <project>org.eclipse.core.runtime</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..99f26c0
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.runtime.prefs b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..c444abe
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,447 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.builder.cleanOutputFolder=clean
+org.eclipse.jdt.core.builder.duplicateResourceTask=warning
+org.eclipse.jdt.core.builder.invalidClasspath=abort
+org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore
+org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch
+org.eclipse.jdt.core.circularClasspath=error
+org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
+org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
+org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
+org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
+org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
+org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
+org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
+org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
+org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
+org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
+org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=11
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=error
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
+org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
+org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
+org.eclipse.jdt.core.compiler.problem.nullReference=error
+org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
+org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=error
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=11
+org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
+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_bitwise_operator=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=16
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0
+org.eclipse.jdt.core.formatter.alignment_for_logical_operator=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_module_statements=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator=16
+org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0
+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_string_concatenation=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_type_arguments=0
+org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0
+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_lambda_body=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.align_tags_descriptions_grouped=true
+org.eclipse.jdt.core.formatter.comment.align_tags_names_descriptions=false
+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.count_line_length_from_starting_position=true
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+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=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=false
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+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=false
+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=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert
+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_after_type_annotation=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_additive_operator=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_bitwise_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not 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_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_logical_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_multiplicative_operator=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_relational_operator=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_shift_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_additive_operator=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_bitwise_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_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_logical_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_multiplicative_operator=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_relational_operator=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_shift_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_string_concatenation=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.parentheses_positions_in_annotation=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines
+org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_additive_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false
+org.eclipse.jdt.core.formatter.wrap_before_bitwise_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_logical_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_multiplicative_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_before_string_concatenation=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+org.eclipse.jdt.core.incompatibleJDKLevel=ignore
+org.eclipse.jdt.core.incompleteClasspath=error
+org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter
diff --git a/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..00449fd
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,62 @@
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=org.eclipse.jdt.ui.default.eclipse_profile
+formatter_settings_version=14
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+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_missing_override_annotations_interface_methods=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_functional_interfaces=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=true
+sp_cleanup.insert_inferred_type_arguments=false
+sp_cleanup.make_local_variable_final=true
+sp_cleanup.make_parameters_final=false
+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=true
+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_redundant_modifiers=true
+sp_cleanup.remove_redundant_type_arguments=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=true
+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_anonymous_class_creation=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_lambda=true
+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
diff --git a/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.wst.xml.core.prefs b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.wst.xml.core.prefs
new file mode 100644
index 0000000..c49d584
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/.settings/org.eclipse.wst.xml.core.prefs
@@ -0,0 +1,18 @@
+attributeHasNoValue=2
+eclipse.preferences.version=1
+endTagWithAttributes=2
+honourAllSchemaLocations=true
+indicateNoGrammar=-1
+indiciateNoDocumentElement=2
+markupValidation=true
+missingClosingBracket=2
+missingClosingQuote=2
+missingEndTag=2
+missingQuotes=2
+missingStartTag=2
+missingTagName=2
+namespaceInPITarget=2
+use-project-settings=true
+whitespaceAtStart=2
+whitespaceBeforeTagName=2
+xinclude=false
diff --git a/bundles/org.eclipse.releng.tools.tests/META-INF/MANIFEST.MF b/bundles/org.eclipse.releng.tools.tests/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..8d1eb86
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,19 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Plugin.name
+Bundle-SymbolicName: org.eclipse.releng.tools.tests;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Eclipse-BundleShape: dir
+Bundle-Vendor: %Plugin.providerName
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.junit,
+ org.junit.jupiter.api,
+ org.eclipse.jgit;bundle-version="3.0.0";resolution:=optional,
+ org.eclipse.core.resources,
+ org.eclipse.egit.core;bundle-version="3.0.0";resolution:=optional,
+ org.eclipse.releng.tools;bundle-version="3.6.100"
+Export-Package: org.eclipse.releng.tests.tools
+Bundle-RequiredExecutionEnvironment: JavaSE-11
+Bundle-ClassPath: .
+Automatic-Module-Name: org.eclipse.releng.tools.tests
diff --git a/bundles/org.eclipse.releng.tools.tests/about.html b/bundles/org.eclipse.releng.tools.tests/about.html
new file mode 100644
index 0000000..164f781
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/about.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>About</title>
+</head>
+<body lang="EN-US">
+ <h2>About This Content</h2>
+
+ <p>November 30, 2017</p>
+ <h3>License</h3>
+
+ <p>
+ The Eclipse Foundation makes available all content in this plug-in
+ ("Content"). Unless otherwise indicated below, the Content
+ is provided to you under the terms and conditions of the Eclipse
+ Public License Version 2.0 ("EPL"). A copy of the EPL is
+ available at <a href="http://www.eclipse.org/legal/epl-2.0">http://www.eclipse.org/legal/epl-2.0</a>.
+ For purposes of the EPL, "Program" will mean the Content.
+ </p>
+
+ <p>
+ If you did not receive this Content directly from the Eclipse
+ Foundation, the Content is being redistributed by another party
+ ("Redistributor") and different terms and conditions may
+ apply to your use of any object code in the Content. Check the
+ Redistributor's license that was provided with the Content. If no such
+ license exists, contact the Redistributor. Unless otherwise indicated
+ below, the terms and conditions of the EPL still apply to any source
+ code in the Content and such source code may be obtained at <a
+ href="http://www.eclipse.org/">http://www.eclipse.org</a>.
+ </p>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/bundles/org.eclipse.releng.tools.tests/bin/.gitignore b/bundles/org.eclipse.releng.tools.tests/bin/.gitignore
new file mode 100644
index 0000000..cf1db2e
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/bin/.gitignore
@@ -0,0 +1 @@
+/org/
diff --git a/bundles/org.eclipse.releng.tools.tests/build.properties b/bundles/org.eclipse.releng.tools.tests/build.properties
new file mode 100644
index 0000000..1aeb928
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/build.properties
@@ -0,0 +1,18 @@
+###############################################################################
+# Copyright (c) 2000, 2011 IBM Corporation and others.
+#
+# This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License 2.0
+# which accompanies this distribution, and is available at
+# https://www.eclipse.org/legal/epl-2.0/
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+bin.includes = META-INF/,\
+ plugin.properties,\
+ about.html,\
+ .
+source.. = src/
diff --git a/bundles/org.eclipse.releng.tools.tests/plugin.properties b/bundles/org.eclipse.releng.tools.tests/plugin.properties
new file mode 100644
index 0000000..1670e2c
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/plugin.properties
@@ -0,0 +1,24 @@
+###############################################################################
+# Copyright (c) 2000, 2011 IBM Corporation and others.
+#
+# This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License 2.0
+# which accompanies this distribution, and is available at
+# https://www.eclipse.org/legal/epl-2.0/
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+
+Plugin.name= Eclipse Releng Tests
+Plugin.providerName= Eclipse.org
+TestLabelDecorator.label= JDT UI Test Decorator
+TestLightweightLabelDecorator.label= JDT UI Test Lightweight Decorator
+
+AddTestMarkersAction.label= Add Test Markers
+AddTestMarkersAction.tooltip= Add Test Markers
+
+exampleQuickFixProcessor.name= Example Quick Fix Processor
+exampleQuickAssistProcessor.name= Example Quick Assist Processor
diff --git a/bundles/org.eclipse.releng.tools.tests/pom.xml b/bundles/org.eclipse.releng.tools.tests/pom.xml
new file mode 100644
index 0000000..b3a383f
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/pom.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2012, 2019 Eclipse Foundation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Distribution License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/org/documents/edl-v10.php
+
+ Contributors:
+ Igor Fedorenko - initial implementation
+ Lars Vogel <Lars.Vogel@vogella.com> - Bug 485612
+ Paul Pazderski - Bug 546468: Enable releng tools tests on automatic builds
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.eclipse.platform</groupId>
+ <artifactId>bundles</artifactId>
+ <version>1.0.101-SNAPSHOT</version>
+ </parent>
+ <groupId>org.eclipse.releng</groupId>
+ <artifactId>org.eclipse.releng.tools.tests</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
diff --git a/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/AdvancedCopyrightCommentTests.java b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/AdvancedCopyrightCommentTests.java
new file mode 100644
index 0000000..e02659e
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/AdvancedCopyrightCommentTests.java
@@ -0,0 +1,420 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Leo Ufimtsev and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Leo Ufimtsev - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.releng.tests.tools;
+
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.eclipse.releng.tools.AdvancedCopyrightComment;
+import org.eclipse.releng.tools.BlockComment;
+import org.eclipse.releng.tools.CopyrightComment;
+import org.junit.jupiter.api.Test;
+
+
+/**
+ * <h1> Parse Tests </h1>
+ *
+ * <p> Test that year is updated correctly by the comment parser. <br>
+ * This can be ran as a standard Junit4 test or as a Plugin Test </p>
+ */
+public class AdvancedCopyrightCommentTests {
+
+ /**
+ * verify that standard comment will have the new year appended to it
+ */
+ @Test
+ public void singleYearComment() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //Last year updated to 2015
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000, 2015 IBM Corporation and others. \n" + //<<<< Note appended 2015
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+
+ /**
+ * verify standard two year comments work correctly 2000, 2014
+ */
+ @Test
+ public void twoYearCommentCommaSeperated() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000, 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //Last year updated to 2015
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000, 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * verify standard two year comments work correctly 2000 - 2014 <br>
+ * It should also handle dashes as well as commas.
+ */
+ @Test
+ public void twoYearCommentDashSeperated() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000 - 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //Last year updated to 2015
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000 - 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+
+
+ /**
+ * Verify that comments with multiple years are handled correctly.
+ */
+ @Test
+ public void multiYearComment() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000, 2011-2012, 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //Last year updated to 2015
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000, 2011-2012, 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+
+ /**
+ * Verify that newline at the end is copied across to the new comment correctly.
+ */
+ @Test
+ public void multiYearCommentNewlinePost() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000, 2011-2012, 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->\n"; // NOTE new line char here.
+
+ //
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000, 2011-2012, 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->\n";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * Verify that newline at the beginning is copied across to the new comment correctly.
+ */
+ @Test
+ public void multiYearCommentNewlinePre() {
+ String original = "\n<!--\n" + // NOTE new line char here.
+ " Copyright (c) 2000, 2011-2012, 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //
+ String expectedOut = "\n<!--\n" +
+ " Copyright (c) 2000, 2011-2012, 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+
+ /**
+ * Check with Unix delimiters.
+ */
+ @Test
+ public void unixDelimiters() {
+ String original = "<!--\n" +
+ " Copyright (c) 2000, 2014 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ //Last year updated to 2015
+ String expectedOut = "<!--\n" +
+ " Copyright (c) 2000, 2015 IBM Corporation and others. \n" +
+ " All rights reserved. This program and the accompanying materials\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\n" +
+ " which accompanies this distribution, and is available at\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\n" +
+ " \n" +
+ " Contributors:\n" +
+ " IBM Corporation - initial API and implementation\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * Check with windows delimiters. {@code \r\n}
+ */
+ @Test
+ public void windowsDelimiters() {
+ String original = "<!--\r\n" + // NOTE new line char here.
+ " Copyright (c) 2000, 2014 IBM Corporation and others. \r\n" +
+ " All rights reserved. This program and the accompanying materials \r\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\r\n" +
+ " which accompanies this distribution, and is available at\r\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\r\n" +
+ " \r\n" +
+ " Contributors:\r\n" +
+ " IBM Corporation - initial API and implementation\r\n" +
+ " -->";
+
+ String expectedOut = "<!--\r\n" + // NOTE new line char here.
+ " Copyright (c) 2000, 2015 IBM Corporation and others. \r\n" +
+ " All rights reserved. This program and the accompanying materials \r\n" +
+ " are made available under the terms of the Eclipse Public License v1.0\r\n" +
+ " which accompanies this distribution, and is available at\r\n" +
+ " http://www.eclipse.org/legal/epl-v10.html\r\n" +
+ " \r\n" +
+ " Contributors:\r\n" +
+ " IBM Corporation - initial API and implementation\r\n" +
+ " -->";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * the tool should work with the official header.
+ * https://www.eclipse.org/legal/copyrightandlicensenotice.php
+ */
+ @Test
+ public void eclipseCopyrightComment() {
+ String original =
+ " /*******************************************************************************\n" +
+ " * Copyright (c) 2000 {INITIAL COPYRIGHT OWNER} {OTHER COPYRIGHT OWNERS}.\n" +
+ " * All rights reserved. This program and the accompanying materials\n" +
+ " * are made available under the terms of the Eclipse Public License v1.0\n" +
+ " * which accompanies this distribution, and is available at\n" +
+ " * http://www.eclipse.org/legal/epl-v10.html\n" +
+ " *\n" +
+ " * Contributors:\n" +
+ " * {INITIAL AUTHOR} - initial API and implementation and/or initial documentation\n" +
+ " *******************************************************************************/";
+
+ String expectedOut =
+ " /*******************************************************************************\n" +
+ " * Copyright (c) 2000, 2015 {INITIAL COPYRIGHT OWNER} {OTHER COPYRIGHT OWNERS}.\n" +
+ " * All rights reserved. This program and the accompanying materials\n" +
+ " * are made available under the terms of the Eclipse Public License v1.0\n" +
+ " * which accompanies this distribution, and is available at\n" +
+ " * http://www.eclipse.org/legal/epl-v10.html\n" +
+ " *\n" +
+ " * Contributors:\n" +
+ " * {INITIAL AUTHOR} - initial API and implementation and/or initial documentation\n" +
+ " *******************************************************************************/";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * the tool should work with IBM headers.
+ * https://www.eclipse.org/legal/copyrightandlicensenotice.php
+ */
+ @Test
+ public void ibmCopyrightComment() {
+ String original =
+ "Copyright (c) 2000, 2010 IBM Corporation. \n" +
+ "All rights reserved. This program and the accompanying materials \n" +
+ "are made available under the terms of the Eclipse Public License v1.0 \n" +
+ "which accompanies this distribution, and is available at \n" +
+ "http://www.eclipse.org/legal/epl-v10.html \n" +
+ "\n" +
+ "Contributors: \n" +
+ " IBM Corporation - initial API and implementation";
+
+ String expectedOut =
+ "Copyright (c) 2000, 2015 IBM Corporation. \n" +
+ "All rights reserved. This program and the accompanying materials \n" +
+ "are made available under the terms of the Eclipse Public License v1.0 \n" +
+ "which accompanies this distribution, and is available at \n" +
+ "http://www.eclipse.org/legal/epl-v10.html \n" +
+ "\n" +
+ "Contributors: \n" +
+ " IBM Corporation - initial API and implementation";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+
+
+ /**
+ * the tool should work with non-IBM copy right comments as well. <br>.
+ * for the purpose, a random realistic comment was extracted.
+ */
+ @Test
+ public void redHatCopyrightComment() {
+ String original =
+ " /*******************************************************************************\n" +
+ " * Copyright (c) 2004, 2008, 2009, 2012 Red Hat, Inc. and others\n" +
+ " * All rights reserved. This program and the accompanying materials\n" +
+ " * are made available under the terms of the Eclipse Public License v1.0\n" +
+ " * which accompanies this distribution, and is available at\n" +
+ " * http://www.eclipse.org/legal/epl-v10.html\n" +
+ " *\n" +
+ " * Contributors:\n" +
+ " * Kent Sebastian <ksebasti@redhat.com> - initial API and implementation\n" +
+ " * Keith Seitz <keiths@redhat.com> - setup code in launch the method, initially\n" +
+ " * written in the now-defunct OprofileSession class\n" +
+ " * QNX Software Systems and others - the section of code marked in the launch\n" +
+ " * method, and the exec method\n" +
+ " * Lev Ufimtsev <lufimtse@redhat.com> --Added automatical enablement of options\n" +
+ " * if thery are not set.\n" +
+ " * Red Hat Inc. - modification of OProfileLaunchConfigurationDelegate to here\n" +
+ " *******************************************************************************/";
+
+ String expectedOut =
+ " /*******************************************************************************\n" +
+ " * Copyright (c) 2004, 2008, 2009, 2015 Red Hat, Inc. and others\n" +
+ " * All rights reserved. This program and the accompanying materials\n" +
+ " * are made available under the terms of the Eclipse Public License v1.0\n" +
+ " * which accompanies this distribution, and is available at\n" +
+ " * http://www.eclipse.org/legal/epl-v10.html\n" +
+ " *\n" +
+ " * Contributors:\n" +
+ " * Kent Sebastian <ksebasti@redhat.com> - initial API and implementation\n" +
+ " * Keith Seitz <keiths@redhat.com> - setup code in launch the method, initially\n" +
+ " * written in the now-defunct OprofileSession class\n" +
+ " * QNX Software Systems and others - the section of code marked in the launch\n" +
+ " * method, and the exec method\n" +
+ " * Lev Ufimtsev <lufimtse@redhat.com> --Added automatical enablement of options\n" +
+ " * if thery are not set.\n" +
+ " * Red Hat Inc. - modification of OProfileLaunchConfigurationDelegate to here\n" +
+ " *******************************************************************************/";
+
+ proccessAndCompare(original, 2015, expectedOut);
+ }
+
+ /**
+ * We test the AdvancedCopyrightComment parse(..) function.
+ *
+ * @param original original comment
+ * @param reviseTo year to which it should be updated to
+ * @param expected expected updated comment.
+ * @return true if modified original matches expected.
+ */
+ private void proccessAndCompare(String original, int reviseTo, String expected) {
+
+ //For our purposes, start/end line & start/end comment don't matter.
+ BlockComment commentBlock = new BlockComment(0, 0, original, null, null);
+
+ //Proccess input string.
+ AdvancedCopyrightComment advComment = AdvancedCopyrightComment.parse(commentBlock,CopyrightComment.XML_COMMENT);
+
+ advComment.setRevisionYear(reviseTo);
+
+ //get updated comment.
+ String actual = advComment.getCopyrightComment();
+
+ assertEquals(expected, actual, original);
+ }
+}
diff --git a/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/GitCopyrightAdapterTest.java b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/GitCopyrightAdapterTest.java
new file mode 100644
index 0000000..63a6718
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/GitCopyrightAdapterTest.java
@@ -0,0 +1,154 @@
+/*******************************************************************************
+ * Copyright (c) 2013, 2016 Tomasz Zarna and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Tomasz Zarna <tzarna@gmail.com> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.releng.tests.tools;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.egit.core.op.ConnectProviderOperation;
+import org.eclipse.jgit.api.Git;
+import org.eclipse.jgit.lib.Constants;
+import org.eclipse.jgit.lib.PersonIdent;
+import org.eclipse.jgit.lib.Repository;
+import org.eclipse.jgit.util.FileUtils;
+import org.eclipse.releng.tools.git.GitCopyrightAdapter;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+
+public class GitCopyrightAdapterTest extends LocalGitRepositoryTestData {
+
+ private static final IProgressMonitor NULL_MONITOR = new NullProgressMonitor();
+
+ private static final String PROJECT_NAME = "Project";
+
+ private static final String FILE1_NAME = "Foo.java";
+
+ private static final String FILE2_NAME = "Bar.java";
+
+ private Repository db;
+
+ private File trash;
+
+ private File gitDir;
+
+ private IProject project;
+
+ private IFile file1;
+
+ @Override
+ @BeforeEach
+ public void setUp() throws Exception {
+ super.setUp();
+ db = createWorkRepository();
+ trash = db.getWorkTree();
+ gitDir = new File(trash, Constants.DOT_GIT);
+ project = createProject(PROJECT_NAME);
+ file1 = project.getFile(FILE1_NAME);
+ connect();
+ }
+
+ @Override
+ @AfterEach
+ public void tearDown() throws Exception {
+ if (project.exists())
+ project.delete(true, true, NULL_MONITOR);
+ if (gitDir.exists())
+ FileUtils.delete(gitDir, FileUtils.RECURSIVE | FileUtils.RETRY);
+ super.tearDown();
+ }
+
+ @Test
+ public void testLastModifiedYear() throws Exception {
+
+ try (final Git git = new Git(db)) {
+ git.add().addFilepattern(PROJECT_NAME + "/" + FILE1_NAME).call();
+ final PersonIdent committer2011 = new PersonIdent(committer, getDateForYear(2011));
+ git.commit().setMessage("old commit").setCommitter(committer2011).call();
+ git.add().addFilepattern(PROJECT_NAME + "/" + FILE2_NAME).call();
+ git.commit().setMessage("new commit").call();
+ }
+
+ final GitCopyrightAdapter adapter = new GitCopyrightAdapter(
+ new IResource[] { project });
+ adapter.initialize(NULL_MONITOR);
+ final int lastModifiedYear = adapter.getLastModifiedYear(file1,
+ NULL_MONITOR);
+
+ assertEquals(2011, lastModifiedYear);
+ }
+
+ @Test
+ public void testCopyrightUpdateComment() throws Exception {
+
+ try (final Git git = new Git(db)) {
+ git.add().addFilepattern(PROJECT_NAME + "/" + FILE1_NAME).call();
+ git.commit().setMessage("copyright update").call();
+ }
+ final GitCopyrightAdapter adapter = new GitCopyrightAdapter(
+ new IResource[] { project });
+ adapter.initialize(NULL_MONITOR);
+ final int lastModifiedYear = adapter.getLastModifiedYear(file1,
+ NULL_MONITOR);
+
+ assertEquals(0, lastModifiedYear);
+ }
+
+ private IProject createProject(String name) throws Exception {
+ final IProject project = ResourcesPlugin.getWorkspace().getRoot()
+ .getProject(name);
+ if (project.exists())
+ project.delete(true, null);
+ final IProjectDescription desc = ResourcesPlugin.getWorkspace()
+ .newProjectDescription(name);
+ desc.setLocation(new Path(new File(db.getWorkTree(), name).getPath()));
+ project.create(desc, null);
+ project.open(null);
+
+ final IFile file1 = project.getFile(FILE1_NAME);
+ file1.create(
+ new ByteArrayInputStream("Hello, world".getBytes(project
+ .getDefaultCharset())), false, null);
+
+ final IFile file2 = project.getFile(FILE2_NAME);
+ file2.create(
+ new ByteArrayInputStream("Hi there".getBytes(project
+ .getDefaultCharset())), false, null);
+ return project;
+ }
+
+ private void connect() throws CoreException {
+ new ConnectProviderOperation(project, gitDir).execute(null);
+ }
+
+ private Date getDateForYear(int year) throws ParseException {
+ final SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
+ return formatter.parse(Integer.toString(year) + "/6/30");
+ }
+
+}
\ No newline at end of file
diff --git a/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/LocalGitRepositoryTestData.java b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/LocalGitRepositoryTestData.java
new file mode 100644
index 0000000..3c701ef
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools.tests/src/org/eclipse/releng/tests/tools/LocalGitRepositoryTestData.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright (C) 2009-2010, Google Inc.
+ * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
+ * Copyright (C) 2007, Shawn O. Pearce <spearce@spearce.org>
+ * and other copyright owners as documented in the project's IP log.
+ *
+ * This class was originally copied from
+ * org.eclipse.jgit.junit.LocalDiskRepositoryTest
+ * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=378047
+ *
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Distribution License v1.0 which
+ * accompanies this distribution, is reproduced below, and is
+ * available at http://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided
+ * with the distribution.
+ *
+ * - Neither the name of the Eclipse Foundation, Inc. nor the
+ * names of its contributors may be used to endorse or promote
+ * products derived from this software without specific prior
+ * written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.eclipse.releng.tests.tools;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.jgit.lib.Constants;
+import org.eclipse.jgit.lib.PersonIdent;
+import org.eclipse.jgit.lib.Repository;
+import org.eclipse.jgit.lib.RepositoryCache;
+import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeAll;
+
+/**
+ * This class is a modified version of org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
+ * <p>
+ * Base class for tests requiring a local Git repository for testing.
+ * </p>
+ */
+public abstract class LocalGitRepositoryTestData {
+ private static int testCount;
+ protected PersonIdent committer;
+ private final File trash = new File(new File("target"), "trash");
+
+ @BeforeAll
+ public void setUp() throws Exception {
+ committer = new PersonIdent("J. Committer", "jcommitter@example.com");
+ }
+
+ @AfterEach
+ public void tearDown() throws Exception {
+ RepositoryCache.clear();
+ }
+
+ /**
+ * Creates a new empty repository within a new empty working directory.
+ *
+ * @return the newly created repository, opened for access
+ * @throws IOException
+ * the repository could not be created in the temporary area
+ */
+ protected Repository createWorkRepository() throws IOException {
+ return createRepository(false /* not bare */);
+ }
+
+ /**
+ * Creates a new empty repository.
+ *
+ * @param bare
+ * true to create a bare repository; false to make a repository
+ * within its working directory
+ * @return the newly created repository, opened for access
+ * @throws IOException
+ * the repository could not be created in the temporary area
+ */
+ private Repository createRepository(boolean bare) throws IOException {
+ File gitdir = createUniqueTestGitDir(bare);
+ assertFalse(gitdir.exists());
+ FileRepositoryBuilder repositoryBuilder = new FileRepositoryBuilder();
+ repositoryBuilder.setMustExist(false);
+ repositoryBuilder.setGitDir(gitdir);
+ Repository db = repositoryBuilder.build();
+ db.create();
+ return db;
+ }
+
+ /**
+ * Creates a new unique directory for a test repository
+ *
+ * @param bare
+ * true for a bare repository; false for a repository with a
+ * working directory
+ * @return a unique directory for a test repository
+ * @throws IOException
+ */
+ protected File createUniqueTestGitDir(boolean bare) throws IOException {
+ String gitdirName = createUniqueTestFolderPrefix();
+ if (!bare)
+ gitdirName += "/";
+ gitdirName += Constants.DOT_GIT;
+ File gitdir = new File(trash, gitdirName);
+ return gitdir.getCanonicalFile();
+ }
+
+ private String createUniqueTestFolderPrefix() {
+ return "test" + (System.currentTimeMillis() + "_" + (testCount++));
+ }
+}
diff --git a/bundles/org.eclipse.releng.tools/.gitignore b/bundles/org.eclipse.releng.tools/.gitignore
new file mode 100644
index 0000000..ae3c172
--- /dev/null
+++ b/bundles/org.eclipse.releng.tools/.gitignore
@@ -0,0 +1 @@
+/bin/
diff --git a/bundles/org.eclipse.releng.tools/pom.xml b/bundles/org.eclipse.releng.tools/pom.xml
index 07cd769..bf605f7 100644
--- a/bundles/org.eclipse.releng.tools/pom.xml
+++ b/bundles/org.eclipse.releng.tools/pom.xml
@@ -15,7 +15,6 @@
<groupId>org.eclipse.platform</groupId>
<artifactId>bundles</artifactId>
<version>1.0.101-SNAPSHOT</version>
-
</parent>
<groupId>org.eclipse.releng</groupId>
<artifactId>org.eclipse.releng.tools</artifactId>
diff --git a/bundles/pom.xml b/bundles/pom.xml
index 1004a94..dc6bbdf 100644
--- a/bundles/pom.xml
+++ b/bundles/pom.xml
@@ -18,6 +18,7 @@
<module>org.eclipse.releng.build.tools.comparator</module>
<module>org.eclipse.test.performance.ui</module>
<module>org.eclipse.releng.tools</module>
+ <module>org.eclipse.releng.tools.tests</module>
</modules>
<build>
<plugins>
diff --git a/pom.xml b/pom.xml
index 4a6bd63..91acd8d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,6 @@
<buildType>I</buildType>
<buildId>${buildType}${buildTimestamp}</buildId>
- <maven.test.skip>true</maven.test.skip>
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
<buildTimestamp>${maven.build.timestamp}</buildTimestamp>
<buildType>I</buildType>