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