-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try putting options on a separate interface for just the task
I also tried just defining abstract setter methods, but to no avail
- Loading branch information
Showing
3 changed files
with
20 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package me.champeau.jmh; | ||
|
||
import org.gradle.api.provider.ListProperty; | ||
import org.gradle.api.tasks.options.Option; | ||
|
||
import java.util.List; | ||
|
||
public interface JmhSetters extends JmhParameters { | ||
|
||
@Option(option = "iterations", description = "Number of measurement iterations to do.") | ||
default void setIterations(Integer iterations) { | ||
this.getIterations().set(iterations); | ||
} | ||
|
||
@Option(option = "includes", description = "include pattern (regular expression) for benchmarks to be executed") | ||
default void setIncludes(List<String> includes) { | ||
this.getIncludes().set(includes); | ||
} | ||
} |