Package org.drools.scm.log.ScmLogEntry

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


                  case SVNLogEntryPath.TYPE_ADDED: {
                      SVNDirEntry dirEntry = this.repository.info( entryPath.getPath(), -1 );
                      char type = ( dirEntry.getKind() == SVNNodeKind.DIR ) ? 'D' : 'F';
                      if ( entryPath.getCopyPath() == null ) {
                          // this entry was added
                          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() );
View Full Code Here


            for ( Iterator it2 = entry.getAction().iterator(); it.hasNext(); ) {
                ScmLogEntryItem item = (ScmLogEntryItem) it2.next();
                ScmAction action;
                switch ( item.getActionType() ) {
                    case 'A' : {
                        Add add = (Add) item;
                        if ( add.getPathType() == 'D' ) {
                            addDirectory( "",
                                          add.getPath() );
                        } else {
                            int lastSlash = add.getPath().lastIndexOf( '/' );
                            String path = add.getPath().substring( 0,
                                                                   lastSlash - 1 );
                            String file = add.getPath().substring( lastSlash + 1,
                                                                   add.getPath().length() - 1 );

                            ByteArrayOutputStream bos = new ByteArrayOutputStream();
                            factory.getContent( path,
                                                file,
                                                -1,
View Full Code Here

                  case SVNLogEntryPath.TYPE_ADDED: {
                      SVNDirEntry dirEntry = this.repository.info( entryPath.getPath(), -1 );
                      char type = ( dirEntry.getKind() == SVNNodeKind.DIR ) ? 'D' : 'F';
                      if ( entryPath.getCopyPath() == null ) {
                          // this entry was added
                          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() );
View Full Code Here

            for ( Iterator it2 = entry.getAction().iterator(); it.hasNext(); ) {
                ScmLogEntryItem item = (ScmLogEntryItem) it2.next();
                ScmAction action;
                switch ( item.getActionType() ) {
                    case 'A' : {
                        Add add = (Add) item;
                        if ( add.getPathType() == 'D' ) {
                            addDirectory( "",
                                          add.getPath() );
                        } else {
                            int lastSlash = add.getPath().lastIndexOf( '/' );
                            String path = add.getPath().substring( 0,
                                                                   lastSlash - 1 );
                            String file = add.getPath().substring( lastSlash + 1,
                                                                   add.getPath().length() - 1 );

                            ByteArrayOutputStream bos = new ByteArrayOutputStream();
                            factory.getContent( path,
                                                file,
                                                -1,
View Full Code Here

TOP

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

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.