-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
233 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
buildSrc/src/main/groovy/eclipsebuild/testing/EclipseTestExecutionSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package eclipsebuild.testing; | ||
|
||
import org.gradle.api.file.FileCollection; | ||
import org.gradle.api.file.FileTree; | ||
import org.gradle.api.internal.tasks.testing.JvmTestExecutionSpec; | ||
import org.gradle.api.internal.tasks.testing.TestExecutionSpec; | ||
import org.gradle.api.internal.tasks.testing.TestFramework; | ||
import org.gradle.api.tasks.testing.Test; | ||
import org.gradle.process.JavaForkOptions; | ||
import org.gradle.util.Path; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class EclipseTestExecutionSpec extends JvmTestExecutionSpec { | ||
|
||
private final Test testTask; | ||
Set<String> includePatterns; | ||
|
||
public EclipseTestExecutionSpec(JvmTestExecutionSpec spec, Test testTask) { | ||
public EclipseTestExecutionSpec(JvmTestExecutionSpec spec, Test testTask, Set<String> includePatterns) { | ||
super(spec.getTestFramework(), spec.getClasspath(), spec.getCandidateClassFiles(), spec.isScanForTestClasses(), spec.getTestClassesDirs(), spec.getPath(), spec.getIdentityPath(), spec.getForkEvery(), spec.getJavaForkOptions(), spec.getMaxParallelForks(), spec.getPreviousFailedTestClasses()); | ||
this.testTask = testTask; | ||
this.includePatterns = includePatterns; | ||
} | ||
|
||
public Test getTestTask() { | ||
return testTask; | ||
} | ||
|
||
public Set<String> getFilters() { | ||
return includePatterns; | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
buildSrc/src/main/groovy/eclipsebuild/testing/EclipseTestTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
package eclipsebuild.testing; | ||
|
||
import org.gradle.api.internal.tasks.testing.JvmTestExecutionSpec; | ||
import org.gradle.api.internal.tasks.testing.filter.DefaultTestFilter; | ||
import org.gradle.api.tasks.testing.Test; | ||
|
||
import java.util.Set; | ||
|
||
public class EclipseTestTask extends Test { | ||
|
||
@Override | ||
protected JvmTestExecutionSpec createTestExecutionSpec() { | ||
return new EclipseTestExecutionSpec(super.createTestExecutionSpec(), this); | ||
Set<String> includePatterns = ((DefaultTestFilter)getFilter()).getCommandLineIncludePatterns(); | ||
return new EclipseTestExecutionSpec(super.createTestExecutionSpec(), this, includePatterns); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.eclipse.buildship.compat</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Buildship, Eclipse Plug-ins for Gradle - Compatibility classes | ||
Bundle-SymbolicName: org.eclipse.buildship.compat;singleton:=true | ||
Bundle-Version: 3.1.5.qualifier | ||
Bundle-Vendor: Eclipse Buildship | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Bundle-ActivationPolicy: lazy | ||
Require-Bundle: org.gradle.toolingapi;bundle-version="[7.1.1,7.2.0)";visibility:=reexport | ||
Export-Package: org.eclipse.buildship.core.internal.workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apply plugin: eclipsebuild.BundlePlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source.. = src/main/java/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
36 changes: 36 additions & 0 deletions
36
...mpat/src/main/java/org/eclipse/buildship/core/internal/workspace/BuildActionSequence.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Gradle Inc. | ||
* | ||
* 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 | ||
******************************************************************************/ | ||
|
||
package org.eclipse.buildship.core.internal.workspace; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.gradle.tooling.BuildAction; | ||
import org.gradle.tooling.BuildController; | ||
|
||
public class BuildActionSequence implements BuildAction<Void>, Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
private final BuildAction<?>[] actions; | ||
|
||
public BuildActionSequence(BuildAction<?> ... actions) { | ||
super(); | ||
this.actions = actions; | ||
} | ||
|
||
@Override | ||
public Void execute(BuildController controller) { | ||
for (BuildAction<?> action : this.actions) { | ||
action.execute(controller); | ||
} | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.