Examples of copy()


Examples of org.cafesip.jiplet.utils.FileUtils.copy()

                    }
                }
                else
                // exploded
                {
                    if (ant.copy(path, deployDir.getAbsolutePath()) == false)
                    {
                        JipletLogger.error("Error copying exploded context "
                                + name + " file: " + path
                                + " to deploy directory");
                        return "The exploded context could not be copied to the deploy dir";
View Full Code Here

Examples of org.cipango.kaleo.presence.pidf.PresenceDocument.copy()

    assertEquals("tuple2",
        doc.getPresence().getTupleArray(0).getId());
   
    String etag = state2.getETag();
    assertEquals(state2, presentity.getState(etag));
    doc2 = (PresenceDocument) doc2.copy();
    doc2.getPresence().getTupleArray(0).getStatus().setBasic(Basic.OPEN);
    presentity.modifyState(state2, PresenceEventPackage.PIDF, doc2, 30);
    doc = (PresenceDocument) presentity.getState().getContent();
    assertEquals(Basic.OPEN,
        doc.getPresence().getTupleArray(0).getStatus().getBasic());
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.DeploymentInfoWorkingCopy.copy()

      // Get the old working copy in case during the deployment wizard,
      // the app name changes
      // Apps are looked up by app name in the manifest, therefore if the
      // app name changed,
      // the old entry in the manifest
      ApplicationDeploymentInfo oldInfo = workingCopy.copy();

      final boolean[] cancelled = { false };
      final boolean[] writeToManifest = { false };
      final IStatus[] status = { Status.OK_STATUS };
      final DeploymentInfoWorkingCopy finWorkingCopy = workingCopy;
View Full Code Here

Examples of org.codehaus.groovy.ast.VariableScope.copy()

        VariableScope varScope = expression.getVariableScope();
        if (varScope == null) {
            throw new RuntimeException(
                    "Must have a VariableScope by now! for expression: " + expression + " class: " + name);
        } else {
            method.setVariableScope(varScope.copy());
        }
        if (parameters.length > 1
                || (parameters.length == 1
                && parameters[0].getType() != null
                && parameters[0].getType() != ClassHelper.OBJECT_TYPE)) {
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.brl.DSLSentence.copy()

                                          if ( dslCombo.getSelectionIndex() == 0 ) {
                                              return;
                                          }

                                          DSLSentence sentence = getCompletion().getDSLActions()[dslCombo.getSelectionIndex() - 1];
                                          modeller.getModel().addRhsItem( sentence.copy() );
                                          modeller.setDirty( true );
                                          modeller.reloadRhs();
                                          close();
                                      }
                                  } );
View Full Code Here

Examples of org.drools.workbench.models.datamodel.rule.visitors.CopyExpressionVisitor.copy()

        this.index = other.getIndex();
        CopyExpressionVisitor copier = new CopyExpressionVisitor();
        if ( other.getParts().size() == 0 ) {
            return;
        }
        for ( ExpressionPart exp = copier.copy( other.getRootExpression() ); exp != null; exp = exp.getNext() ) {
            parts.add( exp );
        }
    }

    public ExpressionFormLine( ExpressionPart part ) {
View Full Code Here

Examples of org.drools.workbench.screens.drltext.service.DRLTextEditorService.copy()

        final CreationalContext cc = beanManager.createCreationalContext( drlTextEditorServiceBean );
        final DRLTextEditorService drlTextEditorService = (DRLTextEditorService) beanManager.getReference( drlTextEditorServiceBean,
                                                                                                           DRLTextEditorService.class, cc );

        //Copy
        drlTextEditorService.copy( makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/rule1.drl" ), "copiedFromRule1.drl", "copied" );
        URL testUrl = this.getClass().getResource( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" );
        assertNotNull( testUrl );

        //Rename
        drlTextEditorService.rename( makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" ), "renamedFromRule1.drl", "renamed" );
View Full Code Here

Examples of org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService.copy()

        final CreationalContext cc = beanManager.createCreationalContext( drlTextEditorServiceBean );
        final DecisionTableXLSService drlTextEditorService = (DecisionTableXLSService) beanManager.getReference( drlTextEditorServiceBean,
                DecisionTableXLSService.class, cc );
              
        //Copy
        drlTextEditorService.copy(makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/rule1.drl"), "copiedFromRule1.drl", "copied");       
        URL testUrl = this.getClass().getResource( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" );
        assertNotNull(testUrl);
       
        //Rename
        drlTextEditorService.rename(makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl"), "renamedFromRule1.drl", "renamed");       
View Full Code Here

Examples of org.eclipse.core.filesystem.IFileStore.copy()

      }
      boolean allowOverwrite = (options & CREATE_NO_OVERWRITE) == 0;
      int efsOptions = allowOverwrite ? EFS.OVERWRITE : EFS.NONE;
      try {
        if (isCopy) {
          source.copy(toCreate, efsOptions, null);
        } else {
          source.move(toCreate, efsOptions, null);
          // Path format is /file/workspaceId/projectId/[location to folder]
          Path path = new Path(locationString);
          if (path.segmentCount() == 3 && path.segment(0).equals("file")) {
View Full Code Here

Examples of org.eclipse.core.internal.properties.IPropertyManager.copy()

      }

      // Move the resource's persistent properties.
      IPropertyManager propertyManager = ((Resource) source).getPropertyManager();
      try {
        propertyManager.copy(source, destination, IResource.DEPTH_ZERO);
        propertyManager.deleteProperties(source, IResource.DEPTH_ZERO);
      } catch (CoreException e) {
        String message = NLS.bind(Messages.resources_errorPropertiesMove, source.getFullPath(), destination.getFullPath());
        IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message, e);
        // log the status but don't return until we try and move the rest of the resource information.
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.