-
Notifications
You must be signed in to change notification settings - Fork 27
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
11 changed files
with
98 additions
and
95 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
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
import org.apache.maven.api.plugin.annotations.LifecyclePhase; | ||
import org.apache.maven.api.plugin.annotations.Mojo; | ||
import org.apache.maven.api.plugin.annotations.Parameter; | ||
import org.apache.maven.shared.filtering.Resource; | ||
|
||
/** | ||
* Copy resources for the test source code to the test output directory. | ||
|
@@ -34,7 +35,7 @@ | |
* @author <a href="[email protected]">Michal Maczka</a> | ||
* @author <a href="mailto:[email protected]">Jason van Zyl</a> | ||
*/ | ||
@Mojo(name = "testResources", defaultPhase = LifecyclePhase.PROCESS_TEST_RESOURCES, requiresProject = true) | ||
@Mojo(name = "testResources", defaultPhase = LifecyclePhase.PROCESS_TEST_RESOURCES, projectRequired = true) | ||
public class TestResourcesMojo extends ResourcesMojo { | ||
/** | ||
* The output directory into which to copy the resources. | ||
|
@@ -67,7 +68,7 @@ public void execute() throws MojoException { | |
|
||
if (resources == null) { | ||
resources = project.getBuild().getTestResources().stream() | ||
.map(Resource::new) | ||
.map(ResourceUtils::newResource) | ||
.collect(Collectors.toList()); | ||
} | ||
|
||
|
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.