File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/test/java/org/apache/maven/plugins/resources/stub Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ under the License.
137137 <dependency >
138138 <groupId >commons-io</groupId >
139139 <artifactId >commons-io</artifactId >
140- <version >2.20 .0</version >
140+ <version >2.21 .0</version >
141141 <scope >test</scope >
142142 </dependency >
143143 <dependency >
Original file line number Diff line number Diff line change 2727import org .apache .maven .model .Build ;
2828import org .codehaus .plexus .util .FileUtils ;
2929
30+ import static org .apache .commons .io .FileUtils .deleteDirectory ;
31+
3032public class MavenProjectBuildStub extends MavenProjectBasicStub {
3133 protected Build build ;
3234
@@ -145,19 +147,19 @@ private void setupBuild() {
145147
146148 public void cleanBuildEnvironment () throws Exception {
147149 if (FileUtils .fileExists (resourcesDirectory )) {
148- FileUtils . deleteDirectory (resourcesDirectory );
150+ deleteDirectory (new File ( resourcesDirectory ) );
149151 }
150152
151153 if (FileUtils .fileExists (testResourcesDirectory )) {
152- FileUtils . deleteDirectory (testResourcesDirectory );
154+ deleteDirectory (new File ( testResourcesDirectory ) );
153155 }
154156
155157 if (FileUtils .fileExists (outputDirectory )) {
156- FileUtils . deleteDirectory (outputDirectory );
158+ deleteDirectory (new File ( outputDirectory ) );
157159 }
158160
159161 if (FileUtils .fileExists (testOutputDirectory )) {
160- FileUtils . deleteDirectory (testOutputDirectory );
162+ deleteDirectory (new File ( testOutputDirectory ) );
161163 }
162164 }
163165
You can’t perform that action at this time.
0 commit comments