We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6167b commit f41b4a6Copy full SHA for f41b4a6
approvaltests/src/main/java/org/approvaltests/internal/logs/LoggingUtils.java
@@ -1,6 +1,6 @@
1
package org.approvaltests.internal.logs;
2
3
-import com.spun.util.SystemUtils;
+import com.spun.util.ClassUtils;
4
import com.spun.util.io.FileUtils;
5
import com.spun.util.io.NetUtils;
6
@@ -30,7 +30,7 @@ public static void downloadScriptIfMissing(String scriptName)
30
}
31
public static File getTempDirectory()
32
{
33
- File approvalTestsTempDir = new File(".approval_tests_temp");
+ File approvalTestsTempDir = new File(ClassUtils.getProjectRootPath() + "/.approval_tests_temp");
34
FileUtils.writeFile(new File(approvalTestsTempDir + "/.gitignore"), "*");
35
return approvalTestsTempDir;
36
0 commit comments