private Object getLocation( Source source, File defaultLocation ) { if ( source != null ) { return source.getLocation(); } return defaultLocation; }
problems.setSource( settingsSource.getLocation() ); settings = settingsReader.read( settingsSource.getInputStream(), options ); settings = settingsReader.read( settingsSource.getInputStream(), options ); problems.add( SettingsProblem.Severity.FATAL, "Non-parseable settings " + settingsSource.getLocation() + ": " + e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); return new Settings(); problems.add( SettingsProblem.Severity.FATAL, "Non-readable settings " + settingsSource.getLocation() + ": " + e.getMessage(), -1, -1, e ); return new Settings();
toolchains = toolchainsReader.read( toolchainsSource.getInputStream(), options ); toolchains = toolchainsReader.read( toolchainsSource.getInputStream(), options ); problems.add( Problem.Severity.FATAL, "Non-parseable toolchains " + toolchainsSource.getLocation() + ": " + e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); return new PersistedToolchains(); problems.add( Problem.Severity.FATAL, "Non-readable toolchains " + toolchainsSource.getLocation() + ": " + e.getMessage(), -1, -1, e ); return new PersistedToolchains();
private Object getLocation( Source source, File defaultLocation ) { if ( source != null ) { return source.getLocation(); } return defaultLocation; }
problems.setSource( settingsSource.getLocation() ); settings = settingsReader.read( settingsSource.getInputStream(), options ); settings = settingsReader.read( settingsSource.getInputStream(), options ); problems.add( SettingsProblem.Severity.FATAL, "Non-parseable settings " + settingsSource.getLocation() + ": " + e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); return new Settings(); problems.add( SettingsProblem.Severity.FATAL, "Non-readable settings " + settingsSource.getLocation() + ": " + e.getMessage(), -1, -1, e ); return new Settings();
private Object getLocation( Source source, File defaultLocation ) { if ( source != null ) { return source.getLocation(); } return defaultLocation; }
private Object getLocation( Source source, File defaultLocation ) { if ( source != null ) { return source.getLocation(); } return defaultLocation; }
private Object getLocation(Source source, Path defaultLocation) { if (source != null) { return source.getLocation(); } return defaultLocation; } }
protected Object getLocation(Source source, Path defaultLocation) { if (source != null) { return source.getLocation(); } return defaultLocation.toString(); }
protected Object getLocation(Source source, Path defaultLocation) { if (source != null) { return source.getLocation(); } return defaultLocation.toString(); }
final File projectPomFile = new File(pomSource.getLocation()); if (!isProjectPom(projectPomFile)) { logger.debug("skip - unrelated pom location - " + projectPomFile);