-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc8d841
commit 1e04d0d
Showing
2 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 5 additions & 8 deletions
13
src/main/java/edu/wpi/first/gradlerio/OneDriveException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
package edu.wpi.first.gradlerio; | ||
|
||
public class OneDriveException extends java.lang.RuntimeException { | ||
public OneDriveException() { | ||
super(String.format("Error cannot create project inside OneDrive. Project Directory = %S", System.getProperty("user.dir"))); | ||
PrintMessage(); | ||
} | ||
import org.gradle.api.Project; | ||
|
||
public void PrintMessage() { | ||
System.out.println(String.format("Error cannot create project inside OneDrive. Project Directory = %S", System.getProperty("user.dir"))); | ||
public class OneDriveException extends java.lang.RuntimeException { | ||
public OneDriveException(Project project) { | ||
super(String.format("Error cannot create project inside OneDrive. Project Directory = %S", project.getRootDir().toString())); | ||
System.out.println(String.format("Error cannot create project inside OneDrive. Project Directory = %S", project.getRootDir().toString())); | ||
} | ||
|
||
} |