File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
src/main/java/com/docusign Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments