Examples of Copy


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

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

                                              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

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

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

                                              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

Examples of org.eclipse.bpel.model.Copy

        if (result == null) result = caseWSDLElement(assign);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.COPY: {
        Copy copy = (Copy)theEObject;
        Object result = caseCopy(copy);
        if (result == null) result = caseExtensibleElement(copy);
        if (result == null) result = caseExtensibleElement_1(copy);
        if (result == null) result = caseWSDLElement(copy);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.papyrus.sysml.requirements.Copy

    // The Requirement is the supplier of the Copy link between the master
    // Requirement and
    // current
    // This should return the TestCase verifying current Requirement
    Requirement master = null;
    Copy currentCopy = null;

    if(getBase_Class() != null) {
      Iterator<Dependency> itDep = getBase_Class().getClientDependencies().iterator();

      // Find Copy link
      while(itDep.hasNext()) {
        Dependency currentDep = itDep.next();
        currentCopy = UMLUtil.getStereotypeApplication(currentDep, Copy.class);

        if(currentCopy != null) {
          EList<NamedElement> suppliers = currentCopy.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = suppliers.iterator();
          while(it.hasNext() && (master == null)) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
              master = currentRequirement;
View Full Code Here

Examples of org.gradle.api.tasks.Copy

                    }
                });
                sourceSet.getJava().srcDir(String.format("src/%s/java", sourceSet.getName()));
                sourceSet.getResources().srcDir(String.format("src/%s/resources", sourceSet.getName()));

                Copy processResources = project.getTasks().add(sourceSet.getProcessResourcesTaskName(), ProcessResources.class);
                processResources.setDescription(String.format("Processes the %s.", sourceSet.getResources()));
                conventionMapping = processResources.getConventionMapping();
                conventionMapping.map("defaultSource", new ConventionValue() {
                    public Object getValue(Convention convention, IConventionAware conventionAwareObject) {
                        return sourceSet.getResources();
                    }
                });
View Full Code Here

Examples of weka.filters.unsupervised.attribute.Copy

          if (!ok) {
            continue;
          }
        }

        Copy c = new Copy();
        c.setAttributeIndices("" + (classIndex + 1));
        c.setInputFormat(insts);
        insts = Filter.useFilter(insts, c);
        m_lagMakers.add(c);
        RenameAttribute rename = new RenameAttribute();
        rename.setAttributeIndices("last");
        rename.setReplace("Lag_" + m_fieldsToLag.get(j));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.