static public File computeBinDir ( File installDir ) { if ( null != installDir ) { // Command-line package File binDir = new File ( installDir , "bin" ) ; if ( binDir . exists ( ) && binDir . isDirectory ( ) ) { return binDir ; } // Development environment File nunaliit2Dir = computeNunaliitDir ( installDir ) ; binDir = new File ( nunaliit2Dir , "nunaliit2-couch-sdk/target/appassembler/bin" ) ; if ( binDir . exists ( ) && binDir . isDirectory ( ) ) { return binDir ; } } return null ; }
Finds the bin directory from the installation location and returns it . If the command - line tool is packaged and deployed then the bin directory is found at the root of the installation . If the command - line tool is run from the development environment then the bin directory is found in the SDK sub - project .