static URI checkSrcTestAndMainResources(String filename, String outerDirectory) {
        final Path testPath = Paths.get("src", "test", outerDirectory, filename);
        final Path testDefinitionPath = resolveDockerDefinition(testPath);
        if (testDefinitionPath != null) {
            return testDefinitionPath.toUri();
        } else {
            final Path mainPath = Paths.get("src", "main", outerDirectory, filename);
            final Path mainDefinitionPath = resolveDockerDefinition(mainPath);
            if (mainDefinitionPath != null) {
                return mainDefinitionPath.toUri();
            }
        }

        return null;
    }
static URI checkSrcTestAndMainResources ( String filename , String outerDirectory ) { final Path testPath = Paths . get ( "src" , "test" , outerDirectory , filename ) ; final Path testDefinitionPath = resolveDockerDefinition ( testPath ) ; if ( testDefinitionPath != null ) { return testDefinitionPath . toUri ( ) ; } else { final Path mainPath = Paths . get ( "src" , "main" , outerDirectory , filename ) ; final Path mainDefinitionPath = resolveDockerDefinition ( mainPath ) ; if ( mainDefinitionPath != null ) { return mainDefinitionPath . toUri ( ) ; } } return null ; }
Checks if given file is at src/{test, main}/outerDirectory/filename exists or not.

@param filename
to search
@param outerDirectory
to append after test or main

@return Location of searched file