This repository was archived by the owner on Mar 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
plugin/src/main/java/com/thoughtworks/gauge/gradle/util Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11siteUrl =' https://github.com/manupsunny/gauge-gradle-plugin'
22gitUrl =' https://github.com/manupsunny/gauge-gradle-plugin.git'
33
4- version =1.4.3
4+ version =1.4.4
55name =gauge-gradle-plugin
66description =' Gradle plugin for Gauge, the open source test automation tool developed by ThoughtWorks.'
77
Original file line number Diff line number Diff line change 2121
2222import com .thoughtworks .gauge .gradle .GaugeExtension ;
2323import org .gradle .api .Project ;
24+ import org .gradle .api .artifacts .Configuration ;
2425
2526import java .io .File ;
2627import java .util .Arrays ;
@@ -114,17 +115,18 @@ private void setClasspath() {
114115 }
115116
116117 private void addRuntimeClasspaths (HashSet <String > classPaths ) {
117- project .getConfigurations ().stream ()
118- .filter (configuration -> configuration .getName ()
119- .toLowerCase ().endsWith (RUNTIME ))
120- .forEach (configuration -> {
121- String fileList = configuration .getAsFileTree ().getAsPath ();
122- classPaths .addAll (Arrays .asList (fileList .split (File .pathSeparator )));
123- });
118+ for (Configuration configuration : project .getConfigurations ()) {
119+ if (configuration .getName ().toLowerCase ().endsWith (RUNTIME )){
120+ String fileList = configuration .getAsFileTree ().getAsPath ();
121+ classPaths .addAll (Arrays .asList (fileList .split (File .pathSeparator )));
122+ }
123+ }
124124 }
125125
126126 private void addBuildClasspaths (HashSet <String > classPaths ) {
127127 File classFolders = new File (project .getBuildDir ().getAbsolutePath () + CLASSES );
128- Arrays .stream (classFolders .listFiles ()).forEach (file -> classPaths .add (file .getAbsolutePath ()));
128+ for (File file : classFolders .listFiles ()){
129+ classPaths .add (file .getAbsolutePath ());
130+ }
129131 }
130132}
You can’t perform that action at this time.
0 commit comments