From d916996dbd13790397d08e484e5904447ba132a0 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Thu, 17 Nov 2022 11:36:34 +0300 Subject: [PATCH] 1147 Operator: get rid of javax.mail dependency (#1149) * 1147 Operator: get rid of javax.mail dependency --- .../equinox/access/ConsoleInteraction.java | 2 +- .../org.eclipse.passage.lic.mail/.classpath | 7 - bundles/org.eclipse.passage.lic.mail/.project | 39 ------ .../.settings/org.eclipse.jdt.core.prefs | 115 ---------------- .../.settings/org.eclipse.jdt.ui.prefs | 122 ---------------- .../.settings/org.eclipse.pde.api.tools.prefs | 104 -------------- .../org.eclipse.pde.ds.annotations.prefs | 8 -- .../.settings/org.eclipse.pde.prefs | 34 ----- .../META-INF/MANIFEST.MF | 16 --- .../OSGI-INF/l10n/bundle.properties | 24 ---- ...pse.passage.lic.internal.mail.MailImpl.xml | 7 - .../org.eclipse.passage.lic.mail/about.html | 36 ----- .../build.properties | 18 --- .../internal/mail/EmailDescriptorImpl.java | 67 --------- .../passage/lic/internal/mail/MailImpl.java | 115 ---------------- .../META-INF/MANIFEST.MF | 3 +- .../OSGI-INF/l10n/bundle.properties | 4 +- .../ui/wizards/IssueLicenseDetailsPage.java | 61 +------- .../ui/wizards/IssueLicenseWizard.java | 34 +---- .../i18n/IssueLicensePageMessages.properties | 7 +- .../META-INF/MANIFEST.MF | 1 - .../internal/licenses/core/EmailTemplate.java | 119 ---------------- .../.project | 17 --- .../build.properties | 15 -- .../feature.properties | 25 ---- .../feature.xml | 59 -------- ...lipse.passage.loc.operator.product.product | 1 - .../pom.xml | 5 - releng/org.eclipse.passage.parent/pom.xml | 1 - .../org.eclipse.passage.releng/passage.setup | 2 - .../org.eclipse.passage.baseline.target | 1 - .../org.eclipse.passage.target.target | 1 - .../.classpath | 11 -- .../.project | 34 ----- .../.settings/org.eclipse.jdt.core.prefs | 115 ---------------- .../.settings/org.eclipse.jdt.ui.prefs | 122 ---------------- .../.settings/org.eclipse.pde.api.tools.prefs | 104 -------------- .../org.eclipse.pde.ds.annotations.prefs | 8 -- .../.settings/org.eclipse.pde.prefs | 34 ----- .../META-INF/MANIFEST.MF | 15 -- .../OSGI-INF/l10n/bundle.properties | 23 ---- .../build.properties | 18 --- .../passage/lic/mail/tests/MailImplTest.java | 130 ------------------ 43 files changed, 13 insertions(+), 1671 deletions(-) delete mode 100644 bundles/org.eclipse.passage.lic.mail/.classpath delete mode 100644 bundles/org.eclipse.passage.lic.mail/.project delete mode 100644 bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.core.prefs delete mode 100644 bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.api.tools.prefs delete mode 100644 bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.ds.annotations.prefs delete mode 100644 bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.prefs delete mode 100644 bundles/org.eclipse.passage.lic.mail/META-INF/MANIFEST.MF delete mode 100644 bundles/org.eclipse.passage.lic.mail/OSGI-INF/l10n/bundle.properties delete mode 100644 bundles/org.eclipse.passage.lic.mail/OSGI-INF/org.eclipse.passage.lic.internal.mail.MailImpl.xml delete mode 100644 bundles/org.eclipse.passage.lic.mail/about.html delete mode 100644 bundles/org.eclipse.passage.lic.mail/build.properties delete mode 100644 bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/EmailDescriptorImpl.java delete mode 100644 bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/MailImpl.java delete mode 100644 bundles/org.eclipse.passage.loc.licenses.core/src/org/eclipse/passage/loc/internal/licenses/core/EmailTemplate.java delete mode 100644 features/org.eclipse.passage.lic.mail.feature/.project delete mode 100644 features/org.eclipse.passage.lic.mail.feature/build.properties delete mode 100644 features/org.eclipse.passage.lic.mail.feature/feature.properties delete mode 100644 features/org.eclipse.passage.lic.mail.feature/feature.xml delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.classpath delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.project delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.core.prefs delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.api.tools.prefs delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.ds.annotations.prefs delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.prefs delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/META-INF/MANIFEST.MF delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/OSGI-INF/l10n/bundle.properties delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/build.properties delete mode 100644 tests/org.eclipse.passage.lic.mail.tests/src/org/eclipse/passage/lic/mail/tests/MailImplTest.java diff --git a/bundles/org.eclipse.passage.lic.equinox/src/org/eclipse/passage/lic/equinox/access/ConsoleInteraction.java b/bundles/org.eclipse.passage.lic.equinox/src/org/eclipse/passage/lic/equinox/access/ConsoleInteraction.java index 9e3f1dfdd..b83b577bf 100644 --- a/bundles/org.eclipse.passage.lic.equinox/src/org/eclipse/passage/lic/equinox/access/ConsoleInteraction.java +++ b/bundles/org.eclipse.passage.lic.equinox/src/org/eclipse/passage/lic/equinox/access/ConsoleInteraction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2021 ArSysOp + * Copyright (c) 2021, 2022 ArSysOp * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at diff --git a/bundles/org.eclipse.passage.lic.mail/.classpath b/bundles/org.eclipse.passage.lic.mail/.classpath deleted file mode 100644 index eca7bdba8..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.mail/.project b/bundles/org.eclipse.passage.lic.mail/.project deleted file mode 100644 index ede9b85c9..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.mail - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index c0a6a56ce..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,115 +0,0 @@ -eclipse.preferences.version=1 -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=1.8 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 -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.problem.APILeak=warning -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=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -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=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -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=error -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=warning -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=warning -org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning -org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -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.terminalDeprecation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled -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.unlikelyCollectionMethodArgumentType=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled -org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info -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.unstableAutoModuleName=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -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=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=warning -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=warning -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=1.8 diff --git a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 906381876..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,122 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_modifiers=false -cleanup.remove_redundant_semicolons=false -cleanup.remove_redundant_type_arguments=false -cleanup.remove_trailing_whitespaces=false -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=false -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -org.eclipse.jdt.ui.text.custom_code_templates= -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=false -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=false -sp_cleanup.remove_redundant_semicolons=false -sp_cleanup.remove_redundant_type_arguments=false -sp_cleanup.remove_trailing_whitespaces=false -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.passage.lic.mail/.settings/org.eclipse.pde.api.tools.prefs b/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.api.tools.prefs deleted file mode 100644 index 14ef7d2e3..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.api.tools.prefs +++ /dev/null @@ -1,104 +0,0 @@ -ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error -ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error -ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error -API_USE_SCAN_FIELD_SEVERITY=Error -API_USE_SCAN_METHOD_SEVERITY=Error -API_USE_SCAN_TYPE_SEVERITY=Error -CLASS_ELEMENT_TYPE_ADDED_FIELD=Error -CLASS_ELEMENT_TYPE_ADDED_METHOD=Error -CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error -CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error -CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error -CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error -ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error -ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error -ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -FIELD_ELEMENT_TYPE_ADDED_VALUE=Error -FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error -FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error -FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error -FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error -ILLEGAL_EXTEND=Warning -ILLEGAL_IMPLEMENT=Warning -ILLEGAL_INSTANTIATE=Warning -ILLEGAL_OVERRIDE=Warning -ILLEGAL_REFERENCE=Warning -INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error -INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error -INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error -INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error -INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -INVALID_ANNOTATION=Ignore -INVALID_JAVADOC_TAG=Warning -INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning -LEAK_EXTEND=Warning -LEAK_FIELD_DECL=Warning -LEAK_IMPLEMENT=Warning -LEAK_METHOD_PARAM=Warning -LEAK_METHOD_RETURN_TYPE=Warning -METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error -METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -MISSING_EE_DESCRIPTIONS=Warning -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error -UNUSED_PROBLEM_FILTERS=Warning -automatically_removed_unused_problem_filters=false -changed_execution_env=Error -eclipse.preferences.version=1 -incompatible_api_component_version=Error -incompatible_api_component_version_include_major_without_breaking_change=Disabled -incompatible_api_component_version_include_minor_without_api_change=Disabled -incompatible_api_component_version_report_major_without_breaking_change=Error -incompatible_api_component_version_report_minor_without_api_change=Error -invalid_since_tag_version=Error -malformed_since_tag=Error -missing_since_tag=Error -report_api_breakage_when_major_version_incremented=Disabled -report_resolution_errors_api_component=Warning diff --git a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.ds.annotations.prefs b/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.ds.annotations.prefs deleted file mode 100644 index 73a356b6d..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.ds.annotations.prefs +++ /dev/null @@ -1,8 +0,0 @@ -classpath=true -dsVersion=V1_3 -eclipse.preferences.version=1 -enabled=true -generateBundleActivationPolicyLazy=true -path=OSGI-INF -validationErrorLevel=error -validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 47bd5bdfc..000000000 --- a/bundles/org.eclipse.passage.lic.mail/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,34 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=2 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=2 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.no.automatic.module=1 -compilers.p.not-externalized-att=0 -compilers.p.service.component.without.lazyactivation=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/bundles/org.eclipse.passage.lic.mail/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.mail/META-INF/MANIFEST.MF deleted file mode 100644 index 158775341..000000000 --- a/bundles/org.eclipse.passage.lic.mail/META-INF/MANIFEST.MF +++ /dev/null @@ -1,16 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.mail -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.mail -Bundle-Version: 0.2.300.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.eclipse.passage.lic.email;bundle-version="0.0.0";visibility:=reexport -Export-Package: org.eclipse.passage.lic.internal.mail;x-internal=true -Import-Package: javax.activation;version="1.0.0", - javax.mail, - javax.mail.internet -Bundle-ActivationPolicy: lazy -Service-Component: OSGI-INF/*.xml diff --git a/bundles/org.eclipse.passage.lic.mail/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.mail/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 7e85ead83..000000000 --- a/bundles/org.eclipse.passage.lic.mail/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,24 +0,0 @@ -#Properties file for org.eclipse.passage.lic.mail -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Mail -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2019, 2020 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -available under the terms of the Eclipse Public License 2.0\n\ -which is available at https://www.eclipse.org/legal/epl-2.0/\n\ -\n\ -SPDX-License-Identifier: EPL-2.0\n\ - diff --git a/bundles/org.eclipse.passage.lic.mail/OSGI-INF/org.eclipse.passage.lic.internal.mail.MailImpl.xml b/bundles/org.eclipse.passage.lic.mail/OSGI-INF/org.eclipse.passage.lic.internal.mail.MailImpl.xml deleted file mode 100644 index a5d091969..000000000 --- a/bundles/org.eclipse.passage.lic.mail/OSGI-INF/org.eclipse.passage.lic.internal.mail.MailImpl.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.mail/about.html b/bundles/org.eclipse.passage.lic.mail/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.mail/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- 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 http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- 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 http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.mail/build.properties b/bundles/org.eclipse.passage.lic.mail/build.properties deleted file mode 100644 index 1a09806d3..000000000 --- a/bundles/org.eclipse.passage.lic.mail/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/EmailDescriptorImpl.java b/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/EmailDescriptorImpl.java deleted file mode 100644 index 1c75856ce..000000000 --- a/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/EmailDescriptorImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019, 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.mail; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.passage.lic.email.EmailDescriptor; - -/** - * The e-mail descriptor implementation - * - * @since 0.1.0 - * - */ -public class EmailDescriptorImpl implements EmailDescriptor { - - private final String to; - private final String from; - private final String subject; - private final String body; - private final List attachmentPaths = new ArrayList<>(); - - public EmailDescriptorImpl(String to, String from, String subject, String body, Iterable attachments) { - super(); - this.to = to; - this.from = from; - this.subject = subject; - this.body = body; - attachments.forEach(this.attachmentPaths::add); - } - - @Override - public String getTo() { - return to; - } - - @Override - public String getFrom() { - return from; - } - - @Override - public String getSubject() { - return subject; - } - - @Override - public String getBody() { - return body; - } - - @Override - public Iterable getAttachmentPaths() { - return attachmentPaths; - } -} diff --git a/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/MailImpl.java b/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/MailImpl.java deleted file mode 100644 index 38149dd2e..000000000 --- a/bundles/org.eclipse.passage.lic.mail/src/org/eclipse/passage/lic/internal/mail/MailImpl.java +++ /dev/null @@ -1,115 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019, 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.mail; - -import java.io.File; -import java.io.IOException; -import java.io.OutputStream; -import java.util.function.BiConsumer; - -import javax.activation.CommandMap; -import javax.activation.DataHandler; -import javax.activation.MailcapCommandMap; -import javax.activation.URLDataSource; -import javax.mail.Message; -import javax.mail.MessagingException; -import javax.mail.Multipart; -import javax.mail.Part; -import javax.mail.Session; -import javax.mail.internet.AddressException; -import javax.mail.internet.InternetAddress; -import javax.mail.internet.MimeBodyPart; -import javax.mail.internet.MimeMessage; -import javax.mail.internet.MimeMultipart; - -import org.eclipse.passage.lic.email.EmailDescriptor; -import org.eclipse.passage.lic.email.Mailing; -import org.osgi.service.component.annotations.Activate; -import org.osgi.service.component.annotations.Component; - -/** - * The Mailing service implementation based on javax.mail - * - * @since 0.1 - * - */ -@Component -public class MailImpl implements Mailing { - - @Activate - public void activate() { - // it **may** work "out-of-the-box", but let's declare explicitly to know where - // to dig - MailcapCommandMap mc = (MailcapCommandMap) CommandMap.getDefaultCommandMap(); - mc.addMailcap("text/plain;; x-java-content-handler=org.apache.geronimo.mail.handlers.TextHandler"); //$NON-NLS-1$ - mc.addMailcap("text/xml;; x-java-content-handler=org.apache.geronimo.mail.handlers.XMLHandler"); //$NON-NLS-1$ - mc.addMailcap("text/html;; x-java-content-handler=org.apache.geronimo.mail.handlers.HtmlHandler"); //$NON-NLS-1$ - mc.addMailcap("message/rfc822;; x-java-content-handler=org.apache.geronimo.mail.handlers.MessageHandler"); //$NON-NLS-1$ - mc.addMailcap( - "multipart/*;; x-java-content-handler=org.apache.geronimo.mail.handlers.MultipartHandler; x-java-fallback-entry=true"); //$NON-NLS-1$ - } - - @Override - public void writeEml(EmailDescriptor descriptor, OutputStream output, - BiConsumer consumerStatus) { - try { - Message message = createMessage(descriptor); - fulfillMessage(descriptor, message); - message.writeTo(output); - } catch (MessagingException | IOException e) { - consumerStatus.accept(e.getMessage(), e); - } - } - - private Message createMessage(EmailDescriptor descriptor) throws MessagingException, AddressException { - Message message = new MimeMessage(Session.getInstance(System.getProperties())); - message.setFrom(new InternetAddress(descriptor.getFrom())); - message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(descriptor.getTo())); - message.setSubject(descriptor.getSubject()); - return message; - } - - private void fulfillMessage(EmailDescriptor descriptor, Message message) throws MessagingException, IOException { - Multipart multipart = createBody(descriptor.getBody()); - attachFiles(descriptor, multipart); - message.setContent(multipart); - } - - private Multipart createBody(String body) throws MessagingException { - Multipart multipart = new MimeMultipart("mixed"); //$NON-NLS-1$ - MimeBodyPart content = new MimeBodyPart(); - multipart.addBodyPart(content); - content.setText(body, "UTF-8"); //$NON-NLS-1$ - return multipart; - } - - private void attachFiles(EmailDescriptor descriptor, Multipart multipart) throws MessagingException, IOException { - Iterable attachmentPaths = descriptor.getAttachmentPaths(); - for (String path : attachmentPaths) { - final File attache = new File(path); - MimeBodyPart attachment = new MimeBodyPart(); - URLDataSource fds = new URLDataSource(attache.toURI().toURL()); - attachment.setDataHandler(new DataHandler(fds)); - attachment.addHeader("Content-Transfer-Encoding", "base64"); //$NON-NLS-1$ //$NON-NLS-2$ - attachment.setDisposition(Part.ATTACHMENT); - attachment.setFileName(attache.getName()); - multipart.addBodyPart(attachment); - } - } - - @Override - public EmailDescriptor createMail(String to, String from, String subject, String body, - Iterable attachments) { - return new EmailDescriptorImpl(to, from, subject, body, attachments); - } -} diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.loc.dashboard.ui/META-INF/MANIFEST.MF index d1d820074..5137aa225 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Automatic-Module-Name: org.eclipse.passage.loc.dashboard.ui Bundle-ManifestVersion: 2 Bundle-SymbolicName: org.eclipse.passage.loc.dashboard.ui;singleton:=true -Bundle-Version: 1.1.200.qualifier +Bundle-Version: 1.2.0.qualifier Bundle-Name: %Bundle-Name Bundle-Vendor: %Bundle-Vendor Bundle-Copyright: %Bundle-Copyright @@ -15,7 +15,6 @@ Require-Bundle: org.eclipse.e4.core.di.annotations;bundle-version="0.0.0", org.eclipse.emf.ecp.ui.view.swt;bundle-version="0.0.0", org.eclipse.passage.lic.emf;bundle-version="0.0.0", org.eclipse.passage.lic.e4.core;bundle-version="0.0.0", - org.eclipse.passage.lic.email;bundle-version="0.0.0", org.eclipse.passage.lic.licenses.model;bundle-version="0.0.0", org.eclipse.passage.loc.agreements.core;bundle-version="0.1.0", org.eclipse.passage.loc.agreements.ui;bundle-version="0.1.0", diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.loc.dashboard.ui/OSGI-INF/l10n/bundle.properties index 5f72ec4c6..cbab5921f 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/OSGI-INF/l10n/bundle.properties +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/OSGI-INF/l10n/bundle.properties @@ -1,6 +1,6 @@ #Properties file for org.eclipse.passage.loc.dashboard.ui ############################################################################### -# Copyright (c) 2018, 2021 ArSysOp and others +# Copyright (c) 2018, 2022 ArSysOp and others # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at @@ -14,7 +14,7 @@ Bundle-Name = Passage LOC Dashboard Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2021 ArSysOp and others.\n\ +Bundle-Copyright = Copyright (c) 2018, 2022 ArSysOp and others.\n\ \n\ This program and the accompanying materials are made\n\ available under the terms of the Eclipse Public License 2.0\n\ diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseDetailsPage.java b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseDetailsPage.java index 8ff383a35..84517e1ca 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseDetailsPage.java +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseDetailsPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2019, 2020 ArSysOp + * Copyright (c) 2019, 2022 ArSysOp * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -12,37 +12,21 @@ *******************************************************************************/ package org.eclipse.passage.loc.dashboard.ui.wizards; -import java.util.Optional; -import java.util.function.Supplier; -import java.util.stream.Collectors; - -import org.eclipse.e4.core.contexts.IEclipseContext; import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.passage.lic.email.Mailing; -import org.eclipse.passage.lic.licenses.PersonalLicensePackDescriptor; import org.eclipse.passage.loc.internal.dashboard.ui.i18n.IssueLicensePageMessages; -import org.eclipse.passage.loc.internal.licenses.core.EmailTemplate; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Text; -public class IssueLicenseDetailsPage extends WizardPage { - - private final IEclipseContext context; - private final Supplier data; - private Text info; - private Text from; - private String mailFrom = ""; //$NON-NLS-1$ +//TODO: looks empty, fill or kill +public final class IssueLicenseDetailsPage extends WizardPage { - protected IssueLicenseDetailsPage(String pageName, Supplier data, IEclipseContext context) { - super(pageName); - this.context = context; - this.data = data; + protected IssueLicenseDetailsPage(String name) { + super(name); setTitle(IssueLicensePageMessages.IssueLicenseDetailsPage_page_title); setDescription(IssueLicensePageMessages.IssueLicenseDetailsPage_page_description); } @@ -52,43 +36,10 @@ public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); composite.setLayout(new GridLayout()); - info = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.WRAP); + Text info = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.WRAP); info.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - Optional.ofNullable(context// - .get(Mailing.class))// - .ifPresent(m -> createEmlButton(composite)); setControl(composite); Dialog.applyDialogFont(composite); } - private void createEmlButton(Composite parent) { - Group prepareEml = new Group(parent, SWT.CHECK); - prepareEml.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false)); - prepareEml.setText(IssueLicensePageMessages.IssueLicenseDetailsPage_lbl_eml_text); - prepareEml.setLayout(new GridLayout()); - from = new Text(prepareEml, SWT.NONE); - from.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - from.addModifyListener(e -> mailFrom = from.getText().trim()); - } - - @Override - public void setVisible(boolean visible) { - super.setVisible(visible); - if (visible) { - if (info == null || info.isDisposed()) { - return; - } - Mailing mailing = context.get(Mailing.class); - if (mailing == null) { - return; - } - info.setText(new EmailTemplate(mailing).details(data.get()).stream()// - .collect(Collectors.joining(System.lineSeparator()))); - } - } - - public String mailFrom() { - return mailFrom; - } - } diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseWizard.java b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseWizard.java index 5748519aa..8206662a4 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseWizard.java +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/IssueLicenseWizard.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2019, 2021 ArSysOp + * Copyright (c) 2019, 2022 ArSysOp * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -12,18 +12,12 @@ *******************************************************************************/ package org.eclipse.passage.loc.dashboard.ui.wizards; -import java.io.File; -import java.io.IOException; - import org.eclipse.e4.core.contexts.IEclipseContext; import org.eclipse.e4.core.services.events.IEventBroker; -import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.wizard.IWizardPage; import org.eclipse.jface.wizard.Wizard; -import org.eclipse.osgi.util.NLS; import org.eclipse.passage.lic.api.ServiceInvocationResult; import org.eclipse.passage.lic.base.diagnostic.NoSevereErrors; -import org.eclipse.passage.lic.email.Mailing; import org.eclipse.passage.lic.internal.jface.dialogs.licensing.DiagnosticDialog; import org.eclipse.passage.lic.licenses.PersonalLicensePackDescriptor; import org.eclipse.passage.lic.licenses.model.api.PersonalLicensePack; @@ -31,12 +25,8 @@ import org.eclipse.passage.loc.internal.api.IssuedLicense; import org.eclipse.passage.loc.internal.api.OperatorLicenseService; import org.eclipse.passage.loc.internal.dashboard.ui.i18n.IssueLicensePageMessages; -import org.eclipse.passage.loc.internal.licenses.core.EmailTemplate; import org.eclipse.passage.loc.users.ui.UsersUi; import org.eclipse.passage.loc.workbench.LocWokbench; -import org.eclipse.swt.program.Program; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; public class IssueLicenseWizard extends Wizard { @@ -58,7 +48,7 @@ public void addPages() { addPage(request.get()); pack = new IssueLicensePackPage(IssueLicensePackPage.class.getName(), request::request, context); addPage(pack); - info = new IssueLicenseDetailsPage(IssueLicenseDetailsPage.class.getName(), pack::pack, context); + info = new IssueLicenseDetailsPage(IssueLicenseDetailsPage.class.getName()); addPage(info); } @@ -83,31 +73,11 @@ public boolean performFinish() { } else { new WizardInfoBar(this).wipe(); new LicenseIssuedNotification(getShell()).showPersonal(result.data().get()); - String mailFrom = info.mailFrom(); - if (!mailFrom.isEmpty()) { - processingMail(mailFrom, licensePack, result.data().get()); - } broadcast(result.data().get()); return true; } } - private void processingMail(String from, PersonalLicensePackDescriptor licensePack, IssuedLicense result) { - Mailing mailing = context.get(Mailing.class); - EmailTemplate template = new EmailTemplate(mailing); - try { - File eml = template.createEmlFile(from, licensePack, result); - String msg = NLS.bind(IssueLicensePageMessages.IssueLicenseMailRequestDialog_text, eml.getAbsolutePath()); - Display.getDefault().asyncExec(() -> MessageDialog.openInformation(context.get(Shell.class), - IssueLicensePageMessages.IssueLicenseMailRequestDialog_title, msg)); - Program.launch(eml.getAbsolutePath()); - } catch (IOException e) { - Display.getDefault().asyncExec(() -> MessageDialog.openError(context.get(Shell.class), - IssueLicensePageMessages.IssueLicenseMailRequestDialog_title, e.getMessage())); - Program.launch(template.mailTo(licensePack)); - } - } - private void broadcast(IssuedLicense result) { PersonalLicensePack userLicense = result.license(); String perspectiveId = UsersUi.PERSPECTIVE_MAIN; diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties index 203cd1fd0..f2d8ab728 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others +# Copyright (c) 2019, 2022 ArSysOp and others # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at @@ -36,17 +36,12 @@ IssueLicenseRequestPage_lbl_ip=IP Address: IssueLicenseRequestPage_e_no_ip=Please specify valid IP Address for the Floating Server IssueLicenseRequestPage_lbl_generate_floating_configs=Generate floating server connection configuration files for each user: - IssueLicenseRequestPage_valid_from_title=Valid From IssueLicenseRequestPage_valid_until_title=Valid Until IssueLicenseWizard_ok_licensed_title=License Issued IssueLicenseWizard_window_title=Issue License IssueLicenseDetailsPage_page_title=License Details IssueLicenseDetailsPage_page_description=Provide detailed licensing request -IssueLicenseDetailsPage_lbl_eml_text=Prepare and open .eml file (leave blank to skip) -IssueLicenseMailRequestDialog_title=Licensing mail -IssueLicenseMailRequestDialog_text=File for email client was prepared successfully. \nPlease use by path: {0}. -IssueLicensingMailJob_task_text=Processing mail request IssueFloatingLicenseWizard_failure=Floating license issuing failed IssueFloatingLicenseWizard_title=Issue Floating License diff --git a/bundles/org.eclipse.passage.loc.licenses.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.loc.licenses.core/META-INF/MANIFEST.MF index 862a68376..65d388b4c 100644 --- a/bundles/org.eclipse.passage.loc.licenses.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.passage.loc.licenses.core/META-INF/MANIFEST.MF @@ -8,7 +8,6 @@ Bundle-Vendor: %Bundle-Vendor Bundle-Copyright: %Bundle-Copyright Bundle-RequiredExecutionEnvironment: JavaSE-11 Require-Bundle: org.eclipse.passage.lic.base;bundle-version="0.0.0", - org.eclipse.passage.lic.email;bundle-version="0.0.0", org.eclipse.passage.lic.emf;bundle-version="0.0.0", org.eclipse.passage.lic.equinox;bundle-version="0.0.0", org.eclipse.passage.lic.keys.model;bundle-version="0.0.0", diff --git a/bundles/org.eclipse.passage.loc.licenses.core/src/org/eclipse/passage/loc/internal/licenses/core/EmailTemplate.java b/bundles/org.eclipse.passage.loc.licenses.core/src/org/eclipse/passage/loc/internal/licenses/core/EmailTemplate.java deleted file mode 100644 index 96e4b639c..000000000 --- a/bundles/org.eclipse.passage.loc.licenses.core/src/org/eclipse/passage/loc/internal/licenses/core/EmailTemplate.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019, 2021 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.loc.internal.licenses.core; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.function.BiConsumer; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.stream.Collectors; - -import org.eclipse.osgi.util.NLS; -import org.eclipse.passage.lic.email.EmailDescriptor; -import org.eclipse.passage.lic.email.Mailing; -import org.eclipse.passage.lic.licenses.PersonalFeatureGrantDescriptor; -import org.eclipse.passage.lic.licenses.PersonalLicensePackDescriptor; -import org.eclipse.passage.loc.internal.api.IssuedLicense; -import org.eclipse.passage.loc.internal.licenses.core.i18n.LicensesCoreMessages; - -public class EmailTemplate { - - private final String separator = "%0A"; //$NON-NLS-1$ - private final String dotEml = ".eml"; //$NON-NLS-1$ - - private final Mailing mailing; - - public EmailTemplate(Mailing mailing) { - Objects.requireNonNull(mailing); - this.mailing = mailing; - } - - public List details(PersonalLicensePackDescriptor pack) { - List builder = new ArrayList<>(); - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_request_lbl, pack.getLicense().getIdentifier())); - builder.add(""); //$NON-NLS-1$ - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_plan_lbl, pack.getLicense().getPlan())); - Optional.ofNullable(pack.getLicense().getIdentifier())// - .ifPresent(x -> builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_package_lbl, x))); - builder.add(""); //$NON-NLS-1$ - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_product_lbl, - pack.getLicense().getProduct().getIdentifier())); - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_product_version_lbl, - pack.getLicense().getProduct().getVersion())); - for (PersonalFeatureGrantDescriptor grant : pack.getGrants()) { - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_feature_lbl, grant.getFeature().getIdentifier())); - String conditionExpression = grant.getUserAuthentication().getExpression(); - if (conditionExpression != null && !conditionExpression.isEmpty()) { - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_condition_expr_lbl, conditionExpression)); - } - } - builder.add(""); //$NON-NLS-1$ - builder.add( - NLS.bind(LicensesCoreMessages.LicenseRequest_user_lbl, pack.getLicense().getUser().getIdentifier())); - builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_user_name_lbl, pack.getLicense().getUser().getName())); - builder.add(""); //$NON-NLS-1$ - Optional.ofNullable(pack.getLicense().getIssueDate())// - .ifPresent(x -> builder.add(NLS.bind(LicensesCoreMessages.LicenseRequest_issue_date_lbl, x))); - builder.add(""); //$NON-NLS-1$ - return builder; - } - - public String mailTo(PersonalLicensePackDescriptor pack) { - StringBuilder builder = new StringBuilder("mailto:"); //$NON-NLS-1$ - builder.append(pack.getLicense().getUser().getIdentifier()); - builder.append("?subject="); //$NON-NLS-1$ - builder.append(LicensesCoreMessages.LicenseRequest_mailto_subject_lbl); - builder.append("&body="); //$NON-NLS-1$ - builder.append( - NLS.bind(LicensesCoreMessages.LicenseRequest_mailto_appeal_lbl, pack.getLicense().getUser().getName())); - builder.append(separator); - builder.append(LicensesCoreMessages.LicenseRequest_mailto_body_base_lbl); - builder.append(separator).append(separator); - builder.append(LicensesCoreMessages.LicenseRequest_mailto_body_details_lbl); - builder.append(separator); - builder.append(details(pack).stream().collect(Collectors.joining(separator))); - return builder.toString(); - } - - public File createEmlFile(String from, PersonalLicensePackDescriptor licensePack, IssuedLicense result) - throws IOException { - File attachment = result.encrypted().toFile(); - File emlFile = new File(attachment.toString() + dotEml); - try (FileOutputStream stream = new FileOutputStream(emlFile)) { - Mailing service = mailing; - EmailDescriptor descriptor = service.createMail(licensePack.getLicense().getUser().getIdentifier(), from, - LicensesCoreMessages.LicenseRequest_mailto_subject_lbl, // - details(licensePack).stream().collect(Collectors.joining(System.lineSeparator())), // - Collections.singleton(attachment.getPath())); - service.writeEml(descriptor, stream, new BiConsumer() { - @Override - public void accept(String message, Throwable t) { - Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, message, t); - } - }); - - } catch (IOException e) { - Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, e.getMessage(), e); - throw e; - } - return emlFile; - } - -} diff --git a/features/org.eclipse.passage.lic.mail.feature/.project b/features/org.eclipse.passage.lic.mail.feature/.project deleted file mode 100644 index 6a449635a..000000000 --- a/features/org.eclipse.passage.lic.mail.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.mail.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.mail.feature/build.properties b/features/org.eclipse.passage.lic.mail.feature/build.properties deleted file mode 100644 index d010aee01..000000000 --- a/features/org.eclipse.passage.lic.mail.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.mail.feature/feature.properties b/features/org.eclipse.passage.lic.mail.feature/feature.properties deleted file mode 100644 index 7a140f6ea..000000000 --- a/features/org.eclipse.passage.lic.mail.feature/feature.properties +++ /dev/null @@ -1,25 +0,0 @@ -#Properties file for org.eclipse.passage.lic.mail.feature -############################################################################### -# Copyright (c) 2019, 2022 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Mail -providerName=Eclipse Passage -description=Passage Licensing Integration Components for Mail Support -copyright=Copyright (c) 2018, 2022 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -available under the terms of the Eclipse Public License 2.0\n\ -which is available at https://www.eclipse.org/legal/epl-2.0/\n\ -\n\ -SPDX-License-Identifier: EPL-2.0\n\ - diff --git a/features/org.eclipse.passage.lic.mail.feature/feature.xml b/features/org.eclipse.passage.lic.mail.feature/feature.xml deleted file mode 100644 index 0fd745cae..000000000 --- a/features/org.eclipse.passage.lic.mail.feature/feature.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - diff --git a/products/org.eclipse.passage.loc.operator.product/org.eclipse.passage.loc.operator.product.product b/products/org.eclipse.passage.loc.operator.product/org.eclipse.passage.loc.operator.product.product index 5d41b94d6..8a2d60ec6 100644 --- a/products/org.eclipse.passage.loc.operator.product/org.eclipse.passage.loc.operator.product.product +++ b/products/org.eclipse.passage.loc.operator.product/org.eclipse.passage.loc.operator.product.product @@ -50,7 +50,6 @@ - diff --git a/releng/org.eclipse.passage.lic.aggregator/pom.xml b/releng/org.eclipse.passage.lic.aggregator/pom.xml index 2ddbfd3d6..d1a69bac7 100644 --- a/releng/org.eclipse.passage.lic.aggregator/pom.xml +++ b/releng/org.eclipse.passage.lic.aggregator/pom.xml @@ -38,7 +38,6 @@ ../../tests/org.eclipse.passage.lic.base.tests ../../tests/org.eclipse.passage.lic.equinox.tests ../../tests/org.eclipse.passage.lic.equinox.tests.data.requirements - ../../bundles/org.eclipse.passage.lic.bc ../../features/org.eclipse.passage.lic.bc.feature @@ -51,10 +50,6 @@ ../../features/org.eclipse.passage.lic.jetty.feature ../../tests/org.eclipse.passage.lic.net.tests - ../../bundles/org.eclipse.passage.lic.mail - ../../features/org.eclipse.passage.lic.mail.feature - ../../tests/org.eclipse.passage.lic.mail.tests - ../../bundles/org.eclipse.passage.lic.hc ../../features/org.eclipse.passage.lic.hc.feature ../../tests/org.eclipse.passage.lic.hc.tests diff --git a/releng/org.eclipse.passage.parent/pom.xml b/releng/org.eclipse.passage.parent/pom.xml index 6905eb4f9..48e907b2e 100644 --- a/releng/org.eclipse.passage.parent/pom.xml +++ b/releng/org.eclipse.passage.parent/pom.xml @@ -566,7 +566,6 @@ - diff --git a/releng/org.eclipse.passage.releng/passage.setup b/releng/org.eclipse.passage.releng/passage.setup index 31b517aa5..4a2ef6c3e 100644 --- a/releng/org.eclipse.passage.releng/passage.setup +++ b/releng/org.eclipse.passage.releng/passage.setup @@ -120,8 +120,6 @@ name="com.sun.jna.platform"/> - diff --git a/releng/org.eclipse.passage.target/org.eclipse.passage.baseline.target b/releng/org.eclipse.passage.target/org.eclipse.passage.baseline.target index 2fa592ae3..3705f56e5 100644 --- a/releng/org.eclipse.passage.target/org.eclipse.passage.baseline.target +++ b/releng/org.eclipse.passage.target/org.eclipse.passage.baseline.target @@ -98,7 +98,6 @@ - diff --git a/releng/org.eclipse.passage.target/org.eclipse.passage.target.target b/releng/org.eclipse.passage.target/org.eclipse.passage.target.target index 565e789e0..fbc57953f 100644 --- a/releng/org.eclipse.passage.target/org.eclipse.passage.target.target +++ b/releng/org.eclipse.passage.target/org.eclipse.passage.target.target @@ -91,7 +91,6 @@ - diff --git a/tests/org.eclipse.passage.lic.mail.tests/.classpath b/tests/org.eclipse.passage.lic.mail.tests/.classpath deleted file mode 100644 index 3e5654f17..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.mail.tests/.project b/tests/org.eclipse.passage.lic.mail.tests/.project deleted file mode 100644 index f961b2ffc..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.passage.lic.mail.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index c0a6a56ce..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,115 +0,0 @@ -eclipse.preferences.version=1 -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=1.8 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 -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.problem.APILeak=warning -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=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -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=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -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=error -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=warning -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=warning -org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning -org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -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.terminalDeprecation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled -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.unlikelyCollectionMethodArgumentType=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled -org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info -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.unstableAutoModuleName=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -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=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=warning -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=warning -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=1.8 diff --git a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 906381876..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,122 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_modifiers=false -cleanup.remove_redundant_semicolons=false -cleanup.remove_redundant_type_arguments=false -cleanup.remove_trailing_whitespaces=false -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=false -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -org.eclipse.jdt.ui.text.custom_code_templates= -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=false -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=false -sp_cleanup.remove_redundant_semicolons=false -sp_cleanup.remove_redundant_type_arguments=false -sp_cleanup.remove_trailing_whitespaces=false -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/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.api.tools.prefs b/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.api.tools.prefs deleted file mode 100644 index 14ef7d2e3..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.api.tools.prefs +++ /dev/null @@ -1,104 +0,0 @@ -ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error -ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error -ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error -API_USE_SCAN_FIELD_SEVERITY=Error -API_USE_SCAN_METHOD_SEVERITY=Error -API_USE_SCAN_TYPE_SEVERITY=Error -CLASS_ELEMENT_TYPE_ADDED_FIELD=Error -CLASS_ELEMENT_TYPE_ADDED_METHOD=Error -CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error -CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error -CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error -CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error -ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error -ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error -ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -FIELD_ELEMENT_TYPE_ADDED_VALUE=Error -FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error -FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error -FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error -FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error -ILLEGAL_EXTEND=Warning -ILLEGAL_IMPLEMENT=Warning -ILLEGAL_INSTANTIATE=Warning -ILLEGAL_OVERRIDE=Warning -ILLEGAL_REFERENCE=Warning -INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error -INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error -INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error -INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error -INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -INVALID_ANNOTATION=Ignore -INVALID_JAVADOC_TAG=Warning -INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning -LEAK_EXTEND=Warning -LEAK_FIELD_DECL=Warning -LEAK_IMPLEMENT=Warning -LEAK_METHOD_PARAM=Warning -LEAK_METHOD_RETURN_TYPE=Warning -METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error -METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -MISSING_EE_DESCRIPTIONS=Warning -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error -UNUSED_PROBLEM_FILTERS=Warning -automatically_removed_unused_problem_filters=false -changed_execution_env=Error -eclipse.preferences.version=1 -incompatible_api_component_version=Error -incompatible_api_component_version_include_major_without_breaking_change=Disabled -incompatible_api_component_version_include_minor_without_api_change=Disabled -incompatible_api_component_version_report_major_without_breaking_change=Error -incompatible_api_component_version_report_minor_without_api_change=Error -invalid_since_tag_version=Error -malformed_since_tag=Error -missing_since_tag=Error -report_api_breakage_when_major_version_incremented=Disabled -report_resolution_errors_api_component=Warning diff --git a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.ds.annotations.prefs b/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.ds.annotations.prefs deleted file mode 100644 index 73a356b6d..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.ds.annotations.prefs +++ /dev/null @@ -1,8 +0,0 @@ -classpath=true -dsVersion=V1_3 -eclipse.preferences.version=1 -enabled=true -generateBundleActivationPolicyLazy=true -path=OSGI-INF -validationErrorLevel=error -validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 47bd5bdfc..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,34 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=2 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=2 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.no.automatic.module=1 -compilers.p.not-externalized-att=0 -compilers.p.service.component.without.lazyactivation=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.passage.lic.mail.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.passage.lic.mail.tests/META-INF/MANIFEST.MF deleted file mode 100644 index bb677a44b..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,15 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.mail.tests -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.mail.tests -Bundle-Version: 0.2.100.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Fragment-Host: org.eclipse.passage.lic.mail -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.junit;bundle-version="4.12.0" -Bundle-ActivationPolicy: lazy -Export-Package: org.eclipse.passage.lic.mail.tests -Import-Package: javax.activation;version="1.1.0", - javax.mail;version="1.4.0" diff --git a/tests/org.eclipse.passage.lic.mail.tests/OSGI-INF/l10n/bundle.properties b/tests/org.eclipse.passage.lic.mail.tests/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index b3cc29300..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,23 +0,0 @@ -#Properties file for org.eclipse.passage.lic.mail.tests -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Mail Tests -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2020 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -available under the terms of the Eclipse Public License 2.0\n\ -which is available at https://www.eclipse.org/legal/epl-2.0/\n\ -\n\ -SPDX-License-Identifier: EPL-2.0\n\ diff --git a/tests/org.eclipse.passage.lic.mail.tests/build.properties b/tests/org.eclipse.passage.lic.mail.tests/build.properties deleted file mode 100644 index 44565f399..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/ diff --git a/tests/org.eclipse.passage.lic.mail.tests/src/org/eclipse/passage/lic/mail/tests/MailImplTest.java b/tests/org.eclipse.passage.lic.mail.tests/src/org/eclipse/passage/lic/mail/tests/MailImplTest.java deleted file mode 100644 index 3869f749d..000000000 --- a/tests/org.eclipse.passage.lic.mail.tests/src/org/eclipse/passage/lic/mail/tests/MailImplTest.java +++ /dev/null @@ -1,130 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019, 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ - -package org.eclipse.passage.lic.mail.tests; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.fail; -import static org.junit.Assume.assumeNoException; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.nio.file.StandardOpenOption; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import javax.activation.CommandMap; -import javax.activation.MailcapCommandMap; -import javax.mail.internet.AddressException; - -import org.eclipse.passage.lic.email.EmailDescriptor; -import org.eclipse.passage.lic.email.Mailing; -import org.eclipse.passage.lic.internal.mail.MailImpl; -import org.junit.BeforeClass; -import org.junit.Test; - -public class MailImplTest { - - private static final String MAIL_TO = "to.user@to.com"; //$NON-NLS-1$ - private static final String MAIL_FROM = "from.user@from.com"; //$NON-NLS-1$ - private static final String MAIL_SUBJECT = "mail.subject"; //$NON-NLS-1$ - private static final String MAIL_BODY = "The body mail content"; //$NON-NLS-1$ - private static final String MAIL_ATTACHMENT = "mail.attachment"; //$NON-NLS-1$ - private static final String MAIL_FILE_OUT = "test.file"; //$NON-NLS-1$ - private static final String MAIL_ATTACHMENT_CONTENT = "Content by TimeStamp:"; //$NON-NLS-1$ - - private static String resolveOutputDirName() { - return System.getProperty("project.build.directory", //$NON-NLS-1$ - System.getProperty("user.dir") + File.separator + "target"); //$NON-NLS-1$ //$NON-NLS-2$ - } - - @BeforeClass - public static void initialize() { - // need this extra setup to avoid java.lang.AssertionError: no object DCH for - // MIME type multipart/mixed; - MailImpl mailing = new MailImpl(); - mailing.activate(); - System.out.println("multipart/*" + ' ' //$NON-NLS-1$ - + ((MailcapCommandMap) CommandMap.getDefaultCommandMap()).createDataContentHandler("multipart/*")); //$NON-NLS-1$ - } - - @Test - public void shouldCreateEmlByParametersPositiveTest() { - MailImpl mailing = new MailImpl(); - String attachment = createAttachment(); - assertFalse(attachment.isEmpty()); - EmailDescriptor mailDescriptor = mailing.createMail(MAIL_TO, MAIL_FROM, MAIL_SUBJECT, MAIL_BODY, - Collections.singleton(attachment)); - assertNotNull(mailDescriptor); - try (FileOutputStream fileOutput = new FileOutputStream( - Paths.get(resolveOutputDirName(), MAIL_FILE_OUT).toFile())) { - mailing.writeEml(mailDescriptor, fileOutput, (m, t) -> failure(m, t)); - } catch (IOException e) { - assumeNoException(e); - } - } - - private void failure(String message, Throwable t) { - t.printStackTrace(); - fail(message); - } - - @Test - public void shouldCreateEmlByParametersNegativeTest() { - MailImpl mailing = new MailImpl(); - String attachment = createAttachment(); - assertFalse(attachment.isEmpty()); - EmailDescriptor mailDescriptor = mailing.createMail("", "", "", "", Collections.singleton(attachment)); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$ - assertNotNull(mailDescriptor); - try (FileOutputStream fileOutput = new FileOutputStream( - Paths.get(resolveOutputDirName(), MAIL_FILE_OUT).toFile())) { - mailing.writeEml(mailDescriptor, fileOutput, (m, t) -> assertEquals(AddressException.class, t.getClass())); - } catch (IOException e) { - assumeNoException(e); - } - } - - @Test - public void shouldFailWithNullAttachmentTest() { - Mailing mailing = new MailImpl(); - try { - mailing.createMail("", "", "", "", null); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$ - fail(); - } catch (Exception e) { - assertEquals(NullPointerException.class, e.getClass()); - } - } - - private String createAttachment() { - String userDir = resolveOutputDirName(); - try { - Path createFile = Files.createFile(Paths.get(userDir, MAIL_ATTACHMENT)); - List content = new ArrayList<>(); - String attachmentContent = new String(MAIL_ATTACHMENT_CONTENT + System.currentTimeMillis()); - content.add(attachmentContent); - return Files.write(createFile, content, StandardCharsets.UTF_8, StandardOpenOption.WRITE).toString(); - } catch (IOException e) { - assumeNoException(e); - } - return ""; //$NON-NLS-1$ - } - -}