diff --git a/tycho-api/src/main/java/org/eclipse/tycho/IArtifactFileProvider.java b/tycho-api/src/main/java/org/eclipse/tycho/IArtifactFileProvider.java index 6c652f069e..d8b31f2eb7 100644 --- a/tycho-api/src/main/java/org/eclipse/tycho/IArtifactFileProvider.java +++ b/tycho-api/src/main/java/org/eclipse/tycho/IArtifactFileProvider.java @@ -21,7 +21,7 @@ * *

* Over {@link IArtifactProvider}, this interface adds a method for obtaining the artifacts as files - * in the local file system. (With the IArtifactProvider interface, artifacts can only be + * in the local file system. (With the IArtifactProvider interface, artifacts can only be * obtained as stream.) *

*/ diff --git a/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactFileProvider.java b/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactFileProvider.java index 9994af0f48..ef970ae30e 100644 --- a/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactFileProvider.java +++ b/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactFileProvider.java @@ -21,13 +21,13 @@ * *

* Over {@link IArtifactFileProvider}, this interface adds methods for obtaining artifacts in raw - * formats. (With the IArtifactFileProvider interface, artifacts can only be obtained in + * formats. (With the IArtifactFileProvider interface, artifacts can only be obtained in * the canonical format, i.e. the format in which the artifact can be used directly without * additional decompression.) *

*

* Over {@link IRawArtifactProvider}, this interface adds a method for obtaining the artifacts as - * files in the local file system. (With the IRawArtifactProvider interface, artifacts can + * files in the local file system. (With the IRawArtifactProvider interface, artifacts can * only be obtained as stream.) *

*/ diff --git a/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactProvider.java b/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactProvider.java index 3e7c3fcc7f..c9b1b3cb68 100644 --- a/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactProvider.java +++ b/tycho-api/src/main/java/org/eclipse/tycho/IRawArtifactProvider.java @@ -22,7 +22,7 @@ * *

* Over {@link IArtifactProvider}, this interface adds methods for obtaining artifacts in raw - * formats. (With the IArtifactProvider interface, artifacts can only be obtained in the + * formats. (With the IArtifactProvider interface, artifacts can only be obtained in the * canonical format, i.e. the format in which the artifact can be used directly without additional * decompression.) *

diff --git a/tycho-api/src/main/java/org/eclipse/tycho/TargetPlatform.java b/tycho-api/src/main/java/org/eclipse/tycho/TargetPlatform.java index ffbb72eb09..dbc68ee319 100644 --- a/tycho-api/src/main/java/org/eclipse/tycho/TargetPlatform.java +++ b/tycho-api/src/main/java/org/eclipse/tycho/TargetPlatform.java @@ -73,7 +73,7 @@ ArtifactKey resolveArtifact(String type, String id, String versionRef) * Returns the file system location of the given target platform artifact. * * @return the location of the given artifact, or null if the artifact does not - * exist in the target platform, or if the given ArtifactKey refers to an + * exist in the target platform, or if the given ArtifactKey refers to an * metadata-only "artifact" e.g. a product definition. */ File getArtifactLocation(ArtifactKey artifact); diff --git a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java index b3daec6d0c..64ad0ab32a 100644 --- a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java +++ b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java @@ -183,10 +183,10 @@ public abstract class AbstractCompilerMojo extends AbstractMojo { private String executable; /** - * If only is specified, the annotation processors will run but no compilation will be - * performed. If none is specified, annotation processors will not be discovered or + * If only is specified, the annotation processors will run but no compilation will be + * performed. If none is specified, annotation processors will not be discovered or * run; compilation will proceed as if no annotation processors were found. By default the - * compiler must search the classpath for annotation processors, so specifying none may + * compiler must search the classpath for annotation processors, so specifying none may * speed compilation if annotation processing is not required. This parameter requires a 1.6 VM * or above and is used only if the compliance is 1.6 * diff --git a/tycho-compiler-plugin/src/main/java/org/eclipse/tycho/compiler/AbstractOsgiCompilerMojo.java b/tycho-compiler-plugin/src/main/java/org/eclipse/tycho/compiler/AbstractOsgiCompilerMojo.java index a169332e78..d5e0569940 100644 --- a/tycho-compiler-plugin/src/main/java/org/eclipse/tycho/compiler/AbstractOsgiCompilerMojo.java +++ b/tycho-compiler-plugin/src/main/java/org/eclipse/tycho/compiler/AbstractOsgiCompilerMojo.java @@ -167,7 +167,7 @@ public abstract class AbstractOsgiCompilerMojo extends AbstractCompilerMojo impl * * * The default value of the bootclasspath used for compilation is - * <jdkHome>/lib/*;<jdkHome>/lib/ext/*;<jdkHome>/lib/endorsed/* . + * <jdkHome>/lib/*;<jdkHome>/lib/ext/*;<jdkHome>/lib/endorsed/* . * * For JDKs with different filesystem layouts, the bootclasspath can be specified explicitly in * the configuration section. diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProjectManager.java b/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProjectManager.java index 5abc26e29e..1a62e62630 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProjectManager.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/TychoProjectManager.java @@ -59,6 +59,7 @@ import org.eclipse.tycho.core.osgitools.OsgiManifest; import org.eclipse.tycho.core.osgitools.OsgiManifestParserException; import org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader; +import org.eclipse.tycho.core.resolver.shared.IncludeSourceMode; import org.eclipse.tycho.helper.PluginRealmHelper; import org.eclipse.tycho.model.project.EclipseProject; import org.eclipse.tycho.targetplatform.TargetDefinition; @@ -161,6 +162,10 @@ private Map getProfileProperties(TargetEnvironment environment, TargetPlatformConfiguration configuration) { Map properties = environment.toFilterProperties(); properties.put("org.eclipse.update.install.features", "true"); + IncludeSourceMode sourceMode = configuration.getTargetDefinitionIncludeSourceMode(); + if (sourceMode == IncludeSourceMode.force || sourceMode == IncludeSourceMode.honor) { + properties.put("org.eclipse.update.install.sources", "true"); + } properties.putAll(configuration.getProfileProperties()); return properties; } diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/ee/impl/InvalidEENameException.java b/tycho-core/src/main/java/org/eclipse/tycho/core/ee/impl/InvalidEENameException.java index 14fd4dc3c0..d927ad3e71 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/ee/impl/InvalidEENameException.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/ee/impl/InvalidEENameException.java @@ -15,7 +15,7 @@ /** * Thrown if a custom execution environment name does not comply to format - * <name>-<version>, with name not containing dashes (-) and version being a + * <name>-<version>, with name not containing dashes (-) and version being a * valid OSGi version. */ public class InvalidEENameException extends RuntimeException { diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java index c9cd9d6863..dceb0cc3ac 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java @@ -332,7 +332,7 @@ private void setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, Xp /** * Take the constraints of the configured execution environment into account when resolving * dependencies or target definitions. These constraints include the list of system packages and - * the Bundle-RequiredExecutionEnvironment header. When set to true, the + * the Bundle-RequiredExecutionEnvironment header. When set to true, the * dependency resolution verifies that the bundle and all required bundles can be used in an * OSGi container with the configured execution environment. */ diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2/repository/MirroringArtifactProvider.java b/tycho-core/src/main/java/org/eclipse/tycho/p2/repository/MirroringArtifactProvider.java index 055afd5751..0bb2945664 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2/repository/MirroringArtifactProvider.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2/repository/MirroringArtifactProvider.java @@ -61,7 +61,7 @@ * repository. * *

- * Note that a MirroringArtifactProvider is not a transparent cache of the remote + * Note that a MirroringArtifactProvider is not a transparent cache of the remote * providers. The content provided by this instance differs from the remote providers' content in * the following ways: *