Package org.drools.scm.log.ScmLogEntry

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


                          Add add = new Add( type, entryPath.getPath(), logEntry.getRevision());
                          scmLogEntry.addAction( add );
                          break;
                      } else {
                          // this entry was copied
                          Copy copy = new Copy( type, entryPath.getCopyPath(), entryPath.getCopyRevision(), entryPath.getPath(), logEntry.getRevision() );
                          scmLogEntry.addAction( copy );
                          break;                
                      }                     
                  }
                     
View Full Code Here


                                              bos.toByteArray() );
                        }
                        break;
                    }
                    case 'C' : {
                        Copy copy = (Copy) item;
                        if ( copy.getPathType() == 'D' ) {
                            action = copyDirectory( copy.getFromPath(),
                                                    copy.getToPath(),
                                                    copy.getFromRevision() );
                        } else {
                            int lastSlash = copy.getFromPath().lastIndexOf( '/' );
                            String fromPath = copy.getFromPath().substring( 0,
                                                                            lastSlash - 1 );
                            String fromFile = copy.getFromPath().substring( lastSlash + 1,
                                                                            copy.getFromPath().length() - 1 );

                            lastSlash = copy.getToPath().lastIndexOf( '/' );
                            String toPath = copy.getToPath().substring( 0,
                                                                        lastSlash - 1 );
                            String toFile = copy.getToPath().substring( lastSlash + 1,
                                                                        copy.getToPath().length() - 1 );
                            action = copyFile( fromPath,
                                               fromFile,
                                               toPath,
                                               toFile,
                                               copy.getFromRevision() );
                        }

                        break;
                    }
                    case 'D' : {
View Full Code Here

                          Add add = new Add( type, entryPath.getPath(), logEntry.getRevision());
                          scmLogEntry.addAction( add );
                          break;
                      } else {
                          // this entry was copied
                          Copy copy = new Copy( type, entryPath.getCopyPath(), entryPath.getCopyRevision(), entryPath.getPath(), logEntry.getRevision() );
                          scmLogEntry.addAction( copy );
                          break;                
                      }                     
                  }
                     
View Full Code Here

                                              bos.toByteArray() );
                        }
                        break;
                    }
                    case 'C' : {
                        Copy copy = (Copy) item;
                        if ( copy.getPathType() == 'D' ) {
                            action = copyDirectory( copy.getFromPath(),
                                                    copy.getToPath(),
                                                    copy.getFromRevision() );
                        } else {
                            int lastSlash = copy.getFromPath().lastIndexOf( '/' );
                            String fromPath = copy.getFromPath().substring( 0,
                                                                            lastSlash - 1 );
                            String fromFile = copy.getFromPath().substring( lastSlash + 1,
                                                                            copy.getFromPath().length() - 1 );

                            lastSlash = copy.getToPath().lastIndexOf( '/' );
                            String toPath = copy.getToPath().substring( 0,
                                                                        lastSlash - 1 );
                            String toFile = copy.getToPath().substring( lastSlash + 1,
                                                                        copy.getToPath().length() - 1 );
                            action = copyFile( fromPath,
                                               fromFile,
                                               toPath,
                                               toFile,
                                               copy.getFromRevision() );
                        }

                        break;
                    }
                    case 'D' : {
View Full Code Here

TOP

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

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.