/** {@inheritDoc} */ public void warn( String content ) { for ( ScmLogger logger : listeners ) { logger.warn( content ); } }
/** {@inheritDoc} */ public void warn( Throwable error ) { for ( ScmLogger logger : listeners ) { logger.warn( error ); } } }
/** {@inheritDoc} */ public void warn( String content, Throwable error ) { for ( ScmLogger logger : listeners ) { logger.warn( content, error ); } }
/** {@inheritDoc} */ public void warn( String content, Throwable error ) { for ( ScmLogger logger : listeners ) { logger.warn( content, error ); } }
/** {@inheritDoc} */ public void warn( String content ) { for ( ScmLogger logger : listeners ) { logger.warn( content ); } }
/** {@inheritDoc} */ public void warn( Throwable error ) { for ( ScmLogger logger : listeners ) { logger.warn( error ); } } }
protected void caughtParseException( Exception e ) { logger.warn( "Exception parsing input", e ); }
protected void caughtParseException( Exception e ) { logger.warn( "Exception parsing input", e ); }
public void consumeLine( String line ) { if ( line.length() < 3 ) { logger.warn( "Unable to parse output from command: line length must be bigger than 3." ); } String status = line.substring( 0, 2 ); String file = line.substring( 2 ); if ( status.equals( "T " ) ) { files.add( new ScmFile( file, ScmFileStatus.TAGGED ) ); } else { logger.warn( "Unknown status: '" + status + "'." ); } }
private String getHostname() { String hostname; try { InetAddress localhost = java.net.InetAddress.getLocalHost(); hostname = localhost.getHostName(); } catch ( UnknownHostException e ) { getLogger().warn( "failed to resolve hostname to create mail address, " + "defaulting to 'maven-scm-provider-jgit'" ); hostname = "maven-scm-provider-jgit"; } return hostname; }
private String getHostname() { String hostname; try { InetAddress localhost = java.net.InetAddress.getLocalHost(); hostname = localhost.getHostName(); } catch ( UnknownHostException e ) { getLogger().warn( "failed to resolve hostname to create mail address, " + "defaulting to 'maven-scm-provider-jgit'" ); hostname = "maven-scm-provider-jgit"; } return hostname; }
public void consumeLine( String line ) { errors.append( line ); errors.append( '\n' ); boolean matched = false; // if debugging log everything, otherwise log if doesn't match the skip patterns. int i = logger.isDebugEnabled() ? SKIPPED_WARNINGS.length : 0; while ( !matched && i < SKIPPED_WARNINGS.length ) { matched = SKIPPED_WARNINGS[i++].matcher( line ).matches(); } if ( !matched ) { logger.warn( line ); } } }
public void consumeLine( String line ) { errors.append( line ); errors.append( '\n' ); boolean matched = false; // if debugging log everything, otherwise log if doesn't match the skip patterns. int i = logger.isDebugEnabled() ? SKIPPED_WARNINGS.length : 0; while ( !matched && i < SKIPPED_WARNINGS.length ) { matched = SKIPPED_WARNINGS[i++].matcher( line ).matches(); } if ( !matched ) { logger.warn( line ); } } }
public Transaction getDepotTransaction( String stream, String tranSpec ) throws AccuRevException { if ( tranSpec == null ) { tranSpec = "now"; } List<Transaction> transactions = getAccuRev().history( stream, tranSpec, null, 1, true, true ); if ( transactions == null || transactions.isEmpty() ) { logger.warn( "Unable to find transaction for tranSpec=" + tranSpec ); return null; } else { return transactions.get( 0 ); } }
/** * {@inheritDoc} */ public UntagScmResult untag( ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { getLogger().warn( "Provider " + this.getScmType() + " does not support untag operation." ); return new UntagScmResult( "", null, null, true ); }
protected UnEditScmResult unedit( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Provider " + this.getScmType() + " does not support unedit operation." ); } return new UnEditScmResult( "", null, null, true ); }
protected EditScmResult edit( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Provider " + this.getScmType() + " does not support edit operation." ); } return new EditScmResult( "", null, null, true ); }
protected EditScmResult edit( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Provider " + this.getScmType() + " does not support edit operation." ); } return new EditScmResult( "", null, null, true ); }
protected UnEditScmResult unedit( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Provider " + this.getScmType() + " does not support unedit operation." ); } return new UnEditScmResult( "", null, null, true ); }
/** * {@inheritDoc} */ public MkdirScmResult mkdir( ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); if ( message == null ) { message = ""; if ( !createInLocal ) { getLogger().warn( "Commit message is empty!" ); } } parameters.setString( CommandParameter.MESSAGE, message ); parameters.setString( CommandParameter.SCM_MKDIR_CREATE_IN_LOCAL, Boolean.toString( createInLocal ) ); return mkdir( repository.getProviderRepository(), fileSet, parameters ); }