Skip to content

Commit dafbf5e

Browse files
committed
Fix quickstart build error
1 parent 27dd9cc commit dafbf5e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

Quick_ACG/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@
163163
<directory>../src/main/java/com/docusign</directory>
164164
<includes>
165165
<include>JsonPropertySourceLoader.java</include>
166-
<include>OSDetector.java</include>
167166
<include>EG001ControllerEmbeddedSigning.java</include>
168167
</includes>
169168
</resource>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.docusign;
2+
3+
/*
4+
* This class can be used to determine the user's operating system so that the
5+
* application can successfully open a web browser to run the examples.
6+
*/
7+
public class OSDetector
8+
{
9+
private static final boolean isWindows;
10+
private static final boolean isLinux;
11+
private static final boolean isMac;
12+
13+
static
14+
{
15+
String os = System.getProperty("os.name").toLowerCase();
16+
isWindows = os.contains("win");
17+
isLinux = os.contains("nux") || os.contains("nix");
18+
isMac = os.contains("mac");
19+
}
20+
21+
public static boolean isWindows() { return isWindows; }
22+
public static boolean isLinux() { return isLinux; }
23+
public static boolean isMac() { return isMac; }
24+
25+
}

0 commit comments

Comments
 (0)