Package org.drools.scm.log.ScmLogEntry

Examples of org.drools.scm.log.ScmLogEntry.Update


                  }
                 
                  case SVNLogEntryPath.TYPE_MODIFIED: {
                      SVNDirEntry dirEntry = this.repository.info( entryPath.getPath(), -1 );
                      char type = ( dirEntry.getKind() == SVNNodeKind.DIR ) ? 'D' : 'F';
                      Update update = new Update( type, entryPath.getPath(), logEntry.getRevision());
                      scmLogEntry.addAction( update );
                      break;
                  }
                 
                  case SVNLogEntryPath.TYPE_REPLACED: {
View Full Code Here


                        }
                        break;
                    }
                    case 'U' :
                        // Can only be a file
                        Update update = (Update) item;
                        int lastSlash = update.getPath().lastIndexOf( '/' );
                        String path = update.getPath().substring( 0,
                                                                  lastSlash - 1 );
                        String file = update.getPath().substring( lastSlash + 1,
                                                                  update.getPath().length() - 1 );

                        ByteArrayOutputStream bosOriginal = new ByteArrayOutputStream();
                        getContent( path,
                                    file,
                                    -1,
                                    bosOriginal );

                        ByteArrayOutputStream bosNew = new ByteArrayOutputStream();
                        factory.getContent( path,
                                            file,
                                            update.getRevision(),
                                            bosNew );

                        action = updateFile( path,
                                             file,
                                             bosOriginal.toByteArray(),
View Full Code Here

                  }
                 
                  case SVNLogEntryPath.TYPE_MODIFIED: {
                      SVNDirEntry dirEntry = this.repository.info( entryPath.getPath(), -1 );
                      char type = ( dirEntry.getKind() == SVNNodeKind.DIR ) ? 'D' : 'F';
                      Update update = new Update( type, entryPath.getPath(), logEntry.getRevision());
                      scmLogEntry.addAction( update );
                      break;
                  }
                 
                  case SVNLogEntryPath.TYPE_REPLACED: {
View Full Code Here

                        }
                        break;
                    }
                    case 'U' :
                        // Can only be a file
                        Update update = (Update) item;
                        int lastSlash = update.getPath().lastIndexOf( '/' );
                        String path = update.getPath().substring( 0,
                                                                  lastSlash - 1 );
                        String file = update.getPath().substring( lastSlash + 1,
                                                                  update.getPath().length() - 1 );

                        ByteArrayOutputStream bosOriginal = new ByteArrayOutputStream();
                        getContent( path,
                                    file,
                                    -1,
                                    bosOriginal );

                        ByteArrayOutputStream bosNew = new ByteArrayOutputStream();
                        factory.getContent( path,
                                            file,
                                            update.getRevision(),
                                            bosNew );

                        action = updateFile( path,
                                             file,
                                             bosOriginal.toByteArray(),
View Full Code Here

TOP

Related Classes of org.drools.scm.log.ScmLogEntry.Update

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.