/** {@inheritDoc} */ public boolean isWarnEnabled() { for ( ScmLogger logger : listeners ) { if ( logger.isWarnEnabled() ) { return true; } } return false; }
/** {@inheritDoc} */ public boolean isWarnEnabled() { for ( ScmLogger logger : listeners ) { if ( logger.isWarnEnabled() ) { return true; } } return false; }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } String[] params = line.split( "/" ); if ( params.length < 2 ) { if ( StringUtils.isNotEmpty( line ) ) { if ( logger.isWarnEnabled() ) { logger.warn( "Unable to parse it as CVS/Entries format: " + line + "." ); } } } else { String dirSuf = params[0].indexOf( 'D' ) == -1 ? "" : "/"; entries.add( new ScmFile( params[1] + dirSuf, ScmFileStatus.UNKNOWN ) ); } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } String[] params = line.split( "/" ); if ( params.length < 2 ) { if ( StringUtils.isNotEmpty( line ) ) { if ( logger.isWarnEnabled() ) { logger.warn( "Unable to parse it as CVS/Entries format: " + line + "." ); } } } else { String dirSuf = params[0].indexOf( 'D' ) == -1 ? "" : "/"; entries.add( new ScmFile( params[1] + dirSuf, ScmFileStatus.UNKNOWN ) ); } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( ADDED_MARKER ) ) != -1 ) { processRemovedFile( line, pos ); } else if ( ( pos = line.indexOf( LINKTO_MARKER ) ) != -1 ) { //ignore } else { if ( logger.isWarnEnabled() ) { logger.warn( "Unknown remove ouput: " + line ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( ADDED_MARKER ) ) != -1 ) { processAddedFile( line, pos ); } else if ( ( pos = line.indexOf( LINKTO_MARKER ) ) != -1 ) { //ignore } else { if ( logger.isWarnEnabled() ) { this.logger.warn( "Unknown add ouput: " + line ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( LOCKED_MARKER ) ) != -1 ) { processLockedFile( line, pos ); } else { if ( logger.isWarnEnabled() ) { logger.warn( "Unknown edit ouput: " + line ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( LOCKED_MARKER ) ) != -1 ) { processLockedFile( line, pos ); } else { if ( logger.isWarnEnabled() ) { logger.warn( "Unknown edit ouput: " + line ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( UNLOCKED_MARKER ) ) != -1 ) { processUnLockedFile( line, pos ); } else { if ( logger.isWarnEnabled() ) { logger.warn( "Unknown unedit ouput: " + line ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { if ( logger.isDebugEnabled() ) { logger.debug( line ); } int pos = 0; if ( ( pos = line.indexOf( DIR_MARKER ) ) != -1 ) { processDirectory( line, pos ); } else if ( ( pos = line.indexOf( UNLOCKED_MARKER ) ) != -1 ) { processUnLockedFile( line, pos ); } else { if ( logger.isWarnEnabled() ) { logger.warn( "Unknown unedit ouput: " + line ); } } }
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 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 ); }
/** {@inheritDoc} */ public void doConsume( ScmFileStatus status, String trimmedLine ) { if ( status != null && status == ScmFileStatus.ADDED ) { //Only include real files (not directories) File tmpFile = new File( workingDir, trimmedLine ); if ( !tmpFile.exists() ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Not a file: " + tmpFile + ". Ignored" ); } } else { ScmFile scmFile = new ScmFile( trimmedLine, ScmFileStatus.ADDED ); if ( getLogger().isInfoEnabled() ) { getLogger().info( scmFile.toString() ); } addedFiles.add( scmFile ); } } }
/** {@inheritDoc} */ public void doConsume( ScmFileStatus status, String trimmedLine ) { if ( status != null && status == ScmFileStatus.ADDED ) { //Only include real files (not directories) File tmpFile = new File( workingDir, trimmedLine ); if ( !tmpFile.exists() ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Not a file: " + tmpFile + ". Ignored" ); } } else { ScmFile scmFile = new ScmFile( trimmedLine, ScmFileStatus.ADDED ); if ( getLogger().isInfoEnabled() ) { getLogger().info( scmFile.toString() ); } addedFiles.add( scmFile ); } } }
/** {@inheritDoc} */ public void doConsume( ScmFileStatus status, String trimmedLine ) { if ( status != null && status == ScmFileStatus.DELETED ) { //Only include real files (not directories) File tmpFile = new File( workingDir, trimmedLine ); if ( !tmpFile.exists() ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Not a file: " + tmpFile + ". Ignored" ); } } else { ScmFile scmFile = new ScmFile( trimmedLine, ScmFileStatus.DELETED ); if ( getLogger().isInfoEnabled() ) { getLogger().info( scmFile.toString() ); } removedFiles.add( scmFile ); } } }
/** {@inheritDoc} */ public void doConsume( ScmFileStatus status, String trimmedLine ) { if ( status != null && status == ScmFileStatus.ADDED ) { //Only include real files (not directories) File tmpFile = new File( workingDir, trimmedLine ); if ( !tmpFile.exists() ) { if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Not a file: " + tmpFile + ". Ignored" ); } } else { ScmFile scmFile = new ScmFile( trimmedLine, ScmFileStatus.ADDED ); if ( getLogger().isInfoEnabled() ) { getLogger().info( scmFile.toString() ); } addedFiles.add( scmFile ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { switch ( getStatus() ) { case GET_FILE: processGetFile( line ); break; case GET_DATE: processGetDate( line ); break; case GET_COMMENT: processGetCommentAndUser( line ); break; case GET_REVISION: processGetRevision( line ); break; default: if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Unknown state: " + status ); } } }
/** {@inheritDoc} */ public void consumeLine( String line ) { switch ( getStatus() ) { case GET_FILE: processGetFile( line ); break; case GET_DATE: processGetDate( line ); break; case GET_COMMENT: processGetCommentAndUser( line ); break; case GET_REVISION: processGetRevision( line ); break; default: if ( getLogger().isWarnEnabled() ) { getLogger().warn( "Unknown state: " + status ); } } }