/** look for the JS GUI webapp in common source places, returning path to it if found, or null. * assumes `brooklyn-ui` is checked out as a sibling to `brooklyn-server`, and both are 2, 3, 1, or 0 * levels above the CWD. */ @Beta public static Maybe<String> findJsguiWebappInSource() { // normally up 2 levels to where brooklyn-* folders are, then into ui // (but in rest projects it might be 3 up, and in some IDEs we might run from parent dirs.) // TODO could also look in maven repo ? return findFirstMatchingFile( "../../brooklyn-ui/src/main/webapp", "../../../brooklyn-ui/src/main/webapp", "../brooklyn-ui/src/main/webapp", "./brooklyn-ui/src/main/webapp", "../../brooklyn-ui/target/*.war", "../../..brooklyn-ui/target/*.war", "../brooklyn-ui/target/*.war", "./brooklyn-ui/target/*.war"); }