Examples of copyFrom()


Examples of org.deepak.util.SSHClient.copyFrom()

          else
          {
            ssh = new SSHClient(host, port, user, pwd);
          }
          ssh.login();
          ssh.copyFrom(tmpFilePath, copyDir);
          ssh.logout();
          filePath = copyDir + File.separator + tmpFileName;
        }
        else if ("local".equalsIgnoreCase(tmpSrc.trim()))
        {
View Full Code Here

Examples of org.erlide.engine.model.root.ErlangProjectProperties.copyFrom()

                .getConfig(project.getConfigType(), project);
        final ProjectConfigurationSerializer configurator = ((FileProjectConfigurator) persister)
                .getSerializer();

        final ErlangProjectProperties expected = new ErlangProjectProperties();
        expected.copyFrom(ErlangProjectProperties.DEFAULT);
        final ErlangProjectProperties actual = configurator.decodeConfig("");

        assertThat(actual, is(ErlangProjectPropertiesMatcher.sameAs(expected)));
    }
View Full Code Here

Examples of org.erlide.engine.model.root.NewProjectData.copyFrom()

    }

    @Test
    public void createSimpleProject() throws CoreException {
        final NewProjectData info = new NewProjectData(factory);
        info.copyFrom(ErlangProjectProperties.DEFAULT);
        creator = new ProjectCreator(name, location, new IProject[] {}, info, context,
                null);
        prj = creator.createProject();
        assertThat(prj, is(not(nullValue())));
View Full Code Here

Examples of org.geoserver.config.hibernate.beans.LoggingInfoImplHb.copyFrom()

    public void setLogging(LoggingInfo entity) {
        LoggingInfoImplHb old = (LoggingInfoImplHb) getLogging();
        if (old == null) {
            entityManager.persist(entity);
        } else {
            old.copyFrom(entity);
            entityManager.merge(old);
        }
    }

    public LoggingInfo getLogging() {
View Full Code Here

Examples of org.gradle.api.tasks.util.PatternSet.copyFrom()

        return String.format("file set '%s'", dir);
    }

    public FileTree matching(PatternFilterable patterns) {
        PatternSet patternSet = this.patternSet.intersect();
        patternSet.copyFrom(patterns);
        DefaultConfigurableFileTree filtered = new DefaultConfigurableFileTree(getDir(), resolver, taskResolver);
        filtered.setPatternSet(patternSet);
        return filtered;
    }
View Full Code Here

Examples of org.jamesii.core.plugins.install.CachePlugInFinder.copyFrom()

      } catch (Exception e) {
        // loading the cache failed
        pluginFinder = initBySearch(ps);
        // create a new cache
        CachePlugInFinder cf = new CachePlugInFinder();
        cf.copyFrom(pluginFinder);
        cf.write();
      }
    } else {
      pluginFinder = initBySearch(ps);
    }
View Full Code Here

Examples of org.jboss.dashboard.displayer.DataDisplayer.copyFrom()

        // If the displayer associated to the kpi is not the new displayer, change it.
        if (!kpiDisplayerType.getUid().equals(selectedType.getUid())) {
            DataDisplayer newDisplayer = selectedType.createDataDisplayer();
            newDisplayer.setDefaultSettings();
            newDisplayer.copyFrom(kpiDisplayer);
            kpi.setDataDisplayer(newDisplayer);
            setKpi(kpi);
            return null;
        }
        return null;
View Full Code Here

Examples of org.jfree.layouting.layouter.context.LayoutContext.copyFrom()

    // Stage 0: Initialize with the built-in defaults
    // Stage 1a: Add the parent styles (but only the one marked as inheritable).
    final LayoutElement parent = element.getParent();
    final LayoutStyle initialStyle = getInitialStyle();
    if (layoutContext.copyFrom(initialStyle) == false)
    {
      // ok, manual copy ..
      DebugLog.log("Failed to use fast-copy");
      for (int i = 0; i < keys.length; i++)
      {
View Full Code Here

Examples of org.olat.core.util.vfs.VFSContainer.copyFrom()

    VFSLeaf fVersions = getCanonicalVersionXmlFile(currentFile, true);
    Versions versions = readVersions(currentFile, fVersions);

    VFSContainer versionContainer = getCanonicalVersionFolder(container, true);

    boolean allOk = VFSConstants.YES.equals(versionContainer.copyFrom(fVersions));
    for (VFSRevision revision : versions.getRevisions()) {
      RevisionFileImpl revisionImpl = (RevisionFileImpl) revision;
      VFSLeaf revisionFile = revisionImpl.getFile();
      if (revisionFile != null) {
        allOk &= VFSConstants.YES.equals(versionContainer.copyFrom(revisionFile));
View Full Code Here

Examples of org.openbp.core.handler.HandlerDefinition.copyFrom()

    {
      HandlerDefinition aiHandler = new HandlerDefinition();
      ((JavaActivityItem) ai).setHandlerDefinition(aiHandler);
      try
      {
        aiHandler.copyFrom(getActivityHandlerDefinition(), Copyable.COPY_DEEP);
      }
      catch (CloneNotSupportedException e)
      {
        // Doesn't happen
      }
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.