File tree 1 file changed +4
-2
lines changed
src/test/java/org/apache/maven/plugins/javadoc
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ public class JavadocReportTest extends AbstractMojoTestCase {
83
83
84
84
private Path unit ;
85
85
86
+ private Path tempDirectory ;
87
+
86
88
private File localRepo ;
87
89
88
90
private static final Logger LOGGER = LoggerFactory .getLogger (JavadocReportTest .class );
@@ -91,7 +93,7 @@ public class JavadocReportTest extends AbstractMojoTestCase {
91
93
protected void setUp () throws Exception {
92
94
super .setUp ();
93
95
94
- Path tempDirectory = Files .createTempDirectory ("JavadocReportTest" );
96
+ tempDirectory = Files .createTempDirectory ("JavadocReportTest" );
95
97
localRepo = tempDirectory .resolve (Paths .get ("target/local-repo/" )).toFile ();
96
98
unit = new File (getBasedir (), "src/test/resources/unit" ).toPath ();
97
99
@@ -101,7 +103,7 @@ protected void setUp() throws Exception {
101
103
@ Override
102
104
protected void tearDown () throws Exception {
103
105
try {
104
- deleteDirectory (localRepo );
106
+ deleteDirectory (tempDirectory . toFile () );
105
107
} catch (IOException ex ) {
106
108
// CI servers can have problems deleting files.
107
109
// It will get cleared out eventually, and since
You can’t perform that action at this time.
0 commit comments