We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3be70e + cf52bf4 commit 556565dCopy full SHA for 556565d
3 files changed
build.gradle
@@ -46,6 +46,10 @@ shadowJar {
46
minimize()
47
}
48
49
+run {
50
+ workingDir 'test'
51
+}
52
+
53
runShadow {
54
55
gradlew
100644
100755
src/main/java/org/mcphackers/mcp/tasks/TaskCleanup.java
@@ -22,6 +22,11 @@ public void doTask() throws Exception {
22
23
public void cleanup(boolean srcCleanup) throws Exception {
24
long startTime = System.currentTimeMillis();
25
26
+ if (Files.exists(MCPPaths.get(mcp, "src").resolve("main").resolve("java").resolve("org").resolve("mcphackers"))) {
27
+ throw new IllegalStateException("RMCP attempted to perform suicide. (Probably because you ran this application in the wrong folder)");
28
+ }
29
30
int foldersDeleted = 0;
31
Path[] pathsToDelete = new Path[] {
32
MCPPaths.get(mcp, MCPPaths.CONF),
0 commit comments