File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
src/main/java/com/neuronrobotics/video Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,10 @@ api 'com.github.kurbatov:firmata4j:2.3.4.1'
302302
303303
304304 testImplementation ' junit:junit:4.10'
305- api fileTree (dir : ' libs' , includes : [' *.jar' ])
305+ // api fileTree (dir: 'libs', includes: ['*.jar'])
306+ // https://mvnrepository.com/artifact/com.github.stephengold/jbullet
307+ api group : ' com.github.stephengold' , name : ' jbullet' , version : ' 1.0.3'
308+
306309 implementation(' de.dfki.mary:voice-cmu-slt-hsmm:5.2.1' )
307310 {
308311 exclude group : ' commons-io' , module : ' commons-io'
Original file line number Diff line number Diff line change 1+ package com .neuronrobotics .video ;
2+
3+ public class OSUtil {
4+ public static boolean isWindows () {
5+ return System .getProperty ("os.name" ).toLowerCase ().contains ("windows" );
6+ }
7+
8+ public static boolean isLinux () {
9+ return System .getProperty ("os.name" ).toLowerCase ().contains ("linux" );
10+ }
11+
12+ public static boolean isOSX () {
13+ return System .getProperty ("os.name" ).toLowerCase ().contains ("mac" );
14+ }
15+ public static String getOsName () {
16+ return System .getProperty ("os.name" );
17+ }
18+ //getOsArch
19+ public static String getOsArch () {
20+ return System .getProperty ("os.arch" );
21+ }
22+ //OSUtil.is64Bit()
23+ public static boolean is64Bit () {
24+ String model = System .getProperty ("sun.arch.data.model" , System .getProperty ("com.ibm.vm.bitmode" ));
25+ if (model != null ) {
26+ return "64" .equals (model );
27+ }
28+ return false ;
29+ }
30+ public static boolean isArm () {
31+ return System .getProperty ("os.arch" ).toLowerCase ().contains ("aarch64" )
32+ || System .getProperty ("os.arch" ).toLowerCase ().contains ("arm" );
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments