Skip to content

Commit 874d46a

Browse files
committed
Make openBuildDir independent
1 parent be08524 commit 874d46a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
task openBuildDirFabric {
22
doLast {
3-
def buildDir = file("D:/ProgrammingProjects/TimeLoop/fabric/build/libs").absolutePath
3+
def buildDir = file("${project.projectDir}/fabric/build/libs").absolutePath
44
if (System.properties['os.name'].toString().toLowerCase().contains('windows')) {
55
def command = ['explorer', buildDir]
66
new ProcessBuilder(command).start()
@@ -12,7 +12,7 @@ task openBuildDirFabric {
1212

1313
task openBuildDirNeoForge {
1414
doLast {
15-
def buildDir = file("D:/ProgrammingProjects/TimeLoop/neoforge/build/libs").absolutePath
15+
def buildDir = file("${project.projectDir}/neoforge/build/libs").absolutePath
1616
if (System.properties['os.name'].toString().toLowerCase().contains('windows')) {
1717
def command = ['explorer', buildDir]
1818
new ProcessBuilder(command).start()

0 commit comments

Comments
 (0)