Skip to content

Commit

Permalink
[m2e] Add the missed goal 'testCompile' that is covered by the m2e pl…
Browse files Browse the repository at this point in the history
…ugin.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Feb 10, 2020
1 parent 846b411 commit 967eff4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Expand Up @@ -9,6 +9,7 @@
<goal>clean</goal>
<goal>initialize</goal>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
Expand Down
Expand Up @@ -23,7 +23,10 @@

import org.osgi.framework.Bundle;

import com.google.inject.Injector;

import io.sarl.eclipse.SARLEclipseExecutableExtensionFactory;
import io.sarl.lang.ui.internal.LangActivator;

/** Factory for injecting SARL instances.
*
Expand All @@ -38,5 +41,13 @@ public class SARLMavenExecutableExtensionFactory extends SARLEclipseExecutableEx
protected Bundle getBundle() {
return SARLMavenEclipsePlugin.getDefault().getBundle();
}

/** Replies the SARL injector.
*
* @return the injector.
*/
public static Injector getSARLInjector() {
return LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
}

}
Expand Up @@ -30,7 +30,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
class SARLConfiguration {
public class SARLConfiguration {

private File input;

Expand Down
Expand Up @@ -31,7 +31,6 @@
import java.util.Set;
import java.util.TreeMap;

import com.google.common.base.Strings;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.ArtifactUtils;
import org.apache.maven.plugin.MojoExecution;
Expand Down Expand Up @@ -67,6 +66,8 @@
import org.osgi.framework.Version;
import org.sonatype.plexus.build.incremental.BuildContext;

import com.google.common.base.Strings;

import io.sarl.eclipse.SARLEclipseConfig;
import io.sarl.eclipse.buildpath.SARLClasspathContainerInitializer;
import io.sarl.eclipse.util.Utilities;
Expand Down Expand Up @@ -270,6 +271,7 @@ protected SARLConfiguration readConfiguration(ProjectConfigurationRequest reques
initConfig = readInitializeConfiguration(request, mojo, monitor);
break;
case "compile": //$NON-NLS-1$
case "testCompile": //$NON-NLS-1$
compileConfig = readCompileConfiguration(request, mojo, monitor);
break;
default:
Expand Down

0 comments on commit 967eff4

Please sign in to comment.