diff --git a/sisu-osgi/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/DefaultEquinoxInstallationDescription.java b/sisu-osgi/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/DefaultEquinoxInstallationDescription.java index f5b2fb20b1..fe17a30304 100644 --- a/sisu-osgi/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/DefaultEquinoxInstallationDescription.java +++ b/sisu-osgi/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/DefaultEquinoxInstallationDescription.java @@ -26,7 +26,7 @@ import java.util.TreeMap; import org.eclipse.osgi.internal.framework.EquinoxContainer; -import org.eclipse.tycho.artifacts.DependencyArtifacts; +import org.eclipse.tycho.DependencyArtifacts; import org.osgi.framework.Version; public class DefaultEquinoxInstallationDescription implements EquinoxInstallationDescription { diff --git a/tycho-bundles/org.eclipse.tycho.core.shared/src/main/java/org/eclipse/tycho/artifacts/DependencyArtifacts.java b/tycho-bundles/org.eclipse.tycho.embedder.shared/src/main/java/org/eclipse/tycho/DependencyArtifacts.java similarity index 96% rename from tycho-bundles/org.eclipse.tycho.core.shared/src/main/java/org/eclipse/tycho/artifacts/DependencyArtifacts.java rename to tycho-bundles/org.eclipse.tycho.embedder.shared/src/main/java/org/eclipse/tycho/DependencyArtifacts.java index 1d1ff735f9..c42f364955 100644 --- a/tycho-bundles/org.eclipse.tycho.core.shared/src/main/java/org/eclipse/tycho/artifacts/DependencyArtifacts.java +++ b/tycho-bundles/org.eclipse.tycho.embedder.shared/src/main/java/org/eclipse/tycho/DependencyArtifacts.java @@ -11,7 +11,7 @@ * Sonatype Inc. - initial API and implementation * Christoph Läubrich - Issue #626 - Classpath computation must take fragments into account *******************************************************************************/ -package org.eclipse.tycho.artifacts; +package org.eclipse.tycho; import java.io.File; import java.util.Collection; @@ -20,9 +20,6 @@ import java.util.Set; import org.eclipse.equinox.p2.metadata.IInstallableUnit; -import org.eclipse.tycho.ArtifactDescriptor; -import org.eclipse.tycho.ArtifactKey; -import org.eclipse.tycho.ReactorProject; /** * DependencyArtifacts is a collection of artifacts and their corresponding metadata. diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/DependencyResolver.java b/tycho-core/src/main/java/org/eclipse/tycho/core/DependencyResolver.java index 9409cd35e7..63777c50a7 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/DependencyResolver.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/DependencyResolver.java @@ -18,9 +18,9 @@ import org.apache.maven.execution.MavenSession; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetPlatform; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.AbstractTychoProject; import org.eclipse.tycho.p2.target.facade.PomDependencyCollector; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProject.java b/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProject.java index 3747534ebe..4471ecdddd 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProject.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProject.java @@ -18,10 +18,10 @@ import org.apache.maven.artifact.Artifact; import org.apache.maven.project.MavenProject; import org.eclipse.tycho.ArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.IArtifactFacade; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; /** * tycho-specific behavior associated with MavenProject instances. stateless. diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyInjector.java b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyInjector.java index 3fa395d210..1d70b1ea5a 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyInjector.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/MavenDependencyInjector.java @@ -47,12 +47,12 @@ import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; import org.eclipse.tycho.BuildProperties; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.MavenArtifactRepositoryReference; import org.eclipse.tycho.MavenDependencyDescriptor; import org.eclipse.tycho.PackagingType; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.BundleReader; import org.eclipse.tycho.core.osgitools.DefaultReactorProject; import org.eclipse.tycho.core.osgitools.OsgiManifestParserException; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoWorkspaceReader.java b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoWorkspaceReader.java index 107db30ee7..940378b39c 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoWorkspaceReader.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/maven/TychoWorkspaceReader.java @@ -33,10 +33,10 @@ import org.eclipse.aether.repository.WorkspaceRepository; import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.MavenDependencyDescriptor; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.DefaultReactorProject; import org.eclipse.tycho.core.resolver.P2ResolverFactory; import org.eclipse.tycho.core.utils.TychoProjectUtils; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactDependencyWalker.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactDependencyWalker.java index 1c53181c78..c6c67144f8 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactDependencyWalker.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractArtifactDependencyWalker.java @@ -26,10 +26,10 @@ import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.PlatformPropertiesUtils; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.ArtifactDependencyVisitor; import org.eclipse.tycho.core.ArtifactDependencyWalker; import org.eclipse.tycho.core.PluginDescription; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractTychoProject.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractTychoProject.java index 33566aa026..fa72595e7c 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractTychoProject.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/AbstractTychoProject.java @@ -30,11 +30,11 @@ import org.codehaus.plexus.logging.AbstractLogEnabled; import org.eclipse.aether.collection.DependencyCollectionException; import org.eclipse.aether.resolution.DependencyResolutionException; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.IArtifactFacade; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetEnvironment; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.TargetPlatformConfiguration; import org.eclipse.tycho.core.TychoProject; import org.eclipse.tycho.core.ee.shared.ExecutionEnvironmentConfiguration; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EquinoxResolver.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EquinoxResolver.java index cc44a05285..3715a55b89 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EquinoxResolver.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/EquinoxResolver.java @@ -57,9 +57,9 @@ import org.eclipse.osgi.util.ManifestElement; import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactType; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.TargetPlatformConfiguration; import org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils; import org.eclipse.tycho.core.ee.StandardExecutionEnvironment; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiBundleProject.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiBundleProject.java index 1d4b238295..db94374331 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiBundleProject.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/OsgiBundleProject.java @@ -53,6 +53,7 @@ import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; import org.eclipse.tycho.DefaultArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.DependencyResolutionException; import org.eclipse.tycho.IllegalArtifactReferenceException; import org.eclipse.tycho.PackagingType; @@ -62,7 +63,6 @@ import org.eclipse.tycho.TargetEnvironment; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.artifacts.configuration.DeclarativeServiceConfigurationReader; import org.eclipse.tycho.classpath.ClasspathEntry; import org.eclipse.tycho.classpath.ClasspathEntry.AccessRule; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/ArtifactCollection.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/ArtifactCollection.java index 76c561232f..dfc100dee0 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/ArtifactCollection.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/ArtifactCollection.java @@ -35,9 +35,9 @@ import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; import org.eclipse.tycho.DefaultArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.PackagingType; import org.eclipse.tycho.ReactorProject; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.DefaultArtifactDescriptor; import org.osgi.framework.Version; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/DefaultDependencyArtifacts.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/DefaultDependencyArtifacts.java index fe530159f9..e4a26e0fee 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/DefaultDependencyArtifacts.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/DefaultDependencyArtifacts.java @@ -27,8 +27,8 @@ import org.eclipse.equinox.p2.metadata.IInstallableUnit; import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.DefaultArtifactDescriptor; public class DefaultDependencyArtifacts extends ArtifactCollection implements DependencyArtifacts { diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/LocalDependencyResolver.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/LocalDependencyResolver.java index d13a9a5158..fcf02e6432 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/LocalDependencyResolver.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/LocalDependencyResolver.java @@ -39,10 +39,10 @@ import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; import org.eclipse.tycho.DefaultArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.ArtifactDependencyVisitor; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.DependencyResolverConfiguration; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/MultiEnvironmentDependencyArtifacts.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/MultiEnvironmentDependencyArtifacts.java index 5857526a66..3c4d1cd8f8 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/MultiEnvironmentDependencyArtifacts.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/targetplatform/MultiEnvironmentDependencyArtifacts.java @@ -20,9 +20,9 @@ import java.util.Map; import org.eclipse.tycho.ArtifactDescriptor; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; public class MultiEnvironmentDependencyArtifacts extends DefaultDependencyArtifacts { public Map platforms = new LinkedHashMap<>(); diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoResolver.java b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoResolver.java index 5eac0d74f2..a1aeb39a78 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoResolver.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoResolver.java @@ -28,12 +28,12 @@ import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.logging.Logger; import org.eclipse.tycho.ArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.OptionalResolutionAction; import org.eclipse.tycho.PlatformPropertiesUtils; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.BundleProject; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.DependencyResolverConfiguration; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoProjectUtils.java b/tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoProjectUtils.java index b7edb448ca..e1baec6e62 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoProjectUtils.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/utils/TychoProjectUtils.java @@ -16,10 +16,10 @@ import java.util.List; import java.util.Optional; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.TargetPlatformConfiguration; import org.eclipse.tycho.core.ee.shared.ExecutionEnvironmentConfiguration; import org.eclipse.tycho.core.resolver.shared.DependencySeed; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/P2DependencyResolver.java b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/P2DependencyResolver.java index caa13539aa..aff69021e2 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/P2DependencyResolver.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/P2DependencyResolver.java @@ -56,6 +56,7 @@ import org.eclipse.tycho.BuildFailureException; import org.eclipse.tycho.BuildProperties; import org.eclipse.tycho.DefaultArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.IDependencyMetadata; import org.eclipse.tycho.IDependencyMetadata.DependencyMetadataType; import org.eclipse.tycho.IllegalArtifactReferenceException; @@ -66,7 +67,6 @@ import org.eclipse.tycho.TargetEnvironment; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.DependencyResolverConfiguration; import org.eclipse.tycho.core.TargetPlatformConfiguration; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/PomUnits.java b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/PomUnits.java index 280ac0d98b..be439a4f7c 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/PomUnits.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2resolver/PomUnits.java @@ -27,10 +27,10 @@ import org.eclipse.equinox.p2.query.IQueryable; import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor; import org.eclipse.tycho.ArtifactKey; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.IArtifactFacade; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.TargetPlatformConfiguration; import org.eclipse.tycho.core.TychoProject; import org.eclipse.tycho.core.TychoProjectManager; diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2tools/RepositoryReferenceTool.java b/tycho-core/src/main/java/org/eclipse/tycho/p2tools/RepositoryReferenceTool.java index 65ec28ca05..0e7cb088cd 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2tools/RepositoryReferenceTool.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2tools/RepositoryReferenceTool.java @@ -26,10 +26,10 @@ import org.codehaus.plexus.component.annotations.Requirement; import org.eclipse.equinox.p2.metadata.IInstallableUnit; import org.eclipse.tycho.ArtifactDescriptor; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.DependencyResolverConfiguration; import org.eclipse.tycho.core.TargetPlatformConfiguration; diff --git a/tycho-core/src/test/java/org/eclipse/tycho/core/test/ArtifactDependencyWalkerTest.java b/tycho-core/src/test/java/org/eclipse/tycho/core/test/ArtifactDependencyWalkerTest.java index d9fd48b400..ce0b1e9d53 100644 --- a/tycho-core/src/test/java/org/eclipse/tycho/core/test/ArtifactDependencyWalkerTest.java +++ b/tycho-core/src/test/java/org/eclipse/tycho/core/test/ArtifactDependencyWalkerTest.java @@ -26,7 +26,7 @@ import org.apache.maven.project.MavenProject; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.eclipse.aether.DefaultRepositorySystemSession; -import org.eclipse.tycho.artifacts.DependencyArtifacts; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.core.ArtifactDependencyVisitor; import org.eclipse.tycho.core.ArtifactDependencyWalker; import org.eclipse.tycho.core.DependencyResolver; diff --git a/tycho-core/src/test/java/org/eclipse/tycho/core/test/DependencyComputerTest.java b/tycho-core/src/test/java/org/eclipse/tycho/core/test/DependencyComputerTest.java index 3ce9453419..3df64db4eb 100644 --- a/tycho-core/src/test/java/org/eclipse/tycho/core/test/DependencyComputerTest.java +++ b/tycho-core/src/test/java/org/eclipse/tycho/core/test/DependencyComputerTest.java @@ -32,9 +32,9 @@ import org.apache.maven.project.MavenProject; import org.eclipse.osgi.container.ModuleContainer; import org.eclipse.osgi.container.ModuleRevision; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; import org.eclipse.tycho.TychoConstants; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.classpath.ClasspathEntry.AccessRule; import org.eclipse.tycho.core.ee.CustomExecutionEnvironment; import org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils; diff --git a/tycho-core/src/test/java/org/eclipse/tycho/core/test/LocalDependencyResolverTest.java b/tycho-core/src/test/java/org/eclipse/tycho/core/test/LocalDependencyResolverTest.java index 64cd60d1f1..3486efb49c 100644 --- a/tycho-core/src/test/java/org/eclipse/tycho/core/test/LocalDependencyResolverTest.java +++ b/tycho-core/src/test/java/org/eclipse/tycho/core/test/LocalDependencyResolverTest.java @@ -29,7 +29,7 @@ import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactKey; import org.eclipse.tycho.ArtifactType; -import org.eclipse.tycho.artifacts.DependencyArtifacts; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.osgitools.DefaultReactorProject; import org.eclipse.tycho.core.osgitools.targetplatform.LocalDependencyResolver; diff --git a/tycho-core/src/test/java/org/eclipse/tycho/core/test/TychoTest.java b/tycho-core/src/test/java/org/eclipse/tycho/core/test/TychoTest.java index b5699ff16b..00db74276b 100644 --- a/tycho-core/src/test/java/org/eclipse/tycho/core/test/TychoTest.java +++ b/tycho-core/src/test/java/org/eclipse/tycho/core/test/TychoTest.java @@ -22,8 +22,8 @@ import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.eclipse.tycho.ArtifactType; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.classpath.ClasspathEntry; import org.eclipse.tycho.core.TargetPlatformConfiguration; import org.eclipse.tycho.core.TychoProject; diff --git a/tycho-p2/tycho-p2-plugin/src/main/java/org/eclipse/tycho/plugins/p2/DependenciesTreeMojo.java b/tycho-p2/tycho-p2-plugin/src/main/java/org/eclipse/tycho/plugins/p2/DependenciesTreeMojo.java index fe4d41d006..f327dbc19b 100644 --- a/tycho-p2/tycho-p2-plugin/src/main/java/org/eclipse/tycho/plugins/p2/DependenciesTreeMojo.java +++ b/tycho-p2/tycho-p2-plugin/src/main/java/org/eclipse/tycho/plugins/p2/DependenciesTreeMojo.java @@ -37,8 +37,8 @@ import org.eclipse.equinox.p2.metadata.IInstallableUnit; import org.eclipse.equinox.p2.metadata.IRequirement; import org.eclipse.tycho.ArtifactDescriptor; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.ReactorProject; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.osgitools.DefaultReactorProject; import org.eclipse.tycho.core.utils.TychoProjectUtils; import org.eclipse.tycho.p2maven.InstallableUnitGenerator; diff --git a/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java b/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java index 5faf93300b..a2531ea874 100644 --- a/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java +++ b/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java @@ -26,11 +26,11 @@ import org.codehaus.plexus.archiver.UnArchiver; import org.eclipse.tycho.ArtifactDescriptor; import org.eclipse.tycho.ArtifactType; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.Interpolator; import org.eclipse.tycho.PackagingType; import org.eclipse.tycho.PlatformPropertiesUtils; import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.TychoProject; import org.eclipse.tycho.core.maven.TychoInterpolator; import org.eclipse.tycho.core.osgitools.EclipseRepositoryProject; diff --git a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/AbstractTychoPackagingMojo.java b/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/AbstractTychoPackagingMojo.java index a97449e163..f824ead9dd 100644 --- a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/AbstractTychoPackagingMojo.java +++ b/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/AbstractTychoPackagingMojo.java @@ -32,7 +32,7 @@ import org.codehaus.plexus.archiver.util.DefaultFileSet; import org.codehaus.plexus.util.AbstractScanner; import org.eclipse.tycho.BuildProperties; -import org.eclipse.tycho.artifacts.DependencyArtifacts; +import org.eclipse.tycho.DependencyArtifacts; import org.eclipse.tycho.core.TychoProject; import org.eclipse.tycho.core.osgitools.DefaultReactorProject; diff --git a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/ProductAssembler.java b/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/ProductAssembler.java deleted file mode 100644 index 2a4c965b2e..0000000000 --- a/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/packaging/ProductAssembler.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008, 2020 Sonatype Inc. and others. - * This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Sonatype Inc. - initial API and implementation - *******************************************************************************/ -package org.eclipse.tycho.packaging; - -import java.io.File; - -import org.codehaus.plexus.PlexusContainer; -import org.eclipse.tycho.TargetEnvironment; -import org.eclipse.tycho.core.PluginDescription; -import org.eclipse.tycho.core.osgitools.BundleReader; -import org.eclipse.tycho.core.osgitools.OsgiManifest; -import org.eclipse.tycho.model.PluginRef; - -public class ProductAssembler extends UpdateSiteAssembler { - - private final TargetEnvironment environment; - - private boolean includeSources; - - private final BundleReader manifestReader; - - public ProductAssembler(PlexusContainer plexus, BundleReader manifestReader, File target, - TargetEnvironment environment) { - super(plexus, target); - this.manifestReader = manifestReader; - setUnpackPlugins(true); - setUnpackFeatures(true); - this.environment = environment; - } - - @Override - public void visitPlugin(PluginDescription plugin) { - if (!matchEntivonment(plugin)) { - return; - } - - if (!includeSources && isSourceBundle(plugin)) { - return; - } - - super.visitPlugin(plugin); - } - - private boolean isSourceBundle(PluginDescription plugin) { - OsgiManifest mf = manifestReader.loadManifest(plugin.getLocation(true)); - return mf.getValue("Eclipse-SourceBundle") != null; - } - - @Override - protected boolean isDirectoryShape(PluginDescription plugin, File location) { - if (super.isDirectoryShape(plugin, location)) { - return true; - } - - OsgiManifest mf = manifestReader.loadManifest(location); - - return mf.isDirectoryShape(); - } - - protected boolean matchEntivonment(PluginDescription plugin) { - PluginRef ref = plugin.getPluginRef(); - return ref == null || environment == null || environment.match(ref.getOs(), ref.getWs(), ref.getArch()); - } - - public void setIncludeSources(boolean includeSources) { - this.includeSources = includeSources; - } - -} diff --git a/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractTestMojo.java b/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractTestMojo.java index 4d14a0e493..8ac279471e 100644 --- a/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractTestMojo.java +++ b/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractTestMojo.java @@ -73,7 +73,6 @@ import org.eclipse.sisu.equinox.launching.LaunchConfiguration; import org.eclipse.sisu.equinox.launching.internal.EquinoxLaunchConfiguration; import org.eclipse.tycho.*; -import org.eclipse.tycho.artifacts.DependencyArtifacts; import org.eclipse.tycho.core.BundleProject; import org.eclipse.tycho.core.DependencyResolver; import org.eclipse.tycho.core.DependencyResolverConfiguration;