Examples of addFile()


Examples of edu.indiana.dlib.metsnav.mets.v1_6.FileType.addFile()

            public void setValue( java.lang.Object object, java.lang.Object value)
                throws IllegalStateException, IllegalArgumentException
            {
                try {
                    FileType target = (FileType) object;
                    target.addFile( (edu.indiana.dlib.metsnav.mets.v1_6.File) value);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            public void resetValue(Object object) throws IllegalStateException, IllegalArgumentException {
View Full Code Here

Examples of edu.umd.cs.findbugs.Project.addFile()

                clearProjectSettings(p);


                // Now that p is cleared, we can add in all the correct files.
                for (int i = 0; i < analyzeModel.getSize(); i++) {
                    p.addFile(analyzeModel.get(i));
                }
                for (int i = 0; i < auxModel.getSize(); i++) {
                    p.addAuxClasspathEntry(auxModel.get(i));
                }
                for (int i = 0; i < sourceModel.getSize(); i++) {
View Full Code Here

Examples of hudson.plugins.rubyMetrics.rcov.model.RcovResult.addFile()

              result.setCodeLines(getTextFromTT(columns[2]));
              result.setTotalCoverage(getTextFromTT(columns[3]));
              result.setCodeCoverage(getTextFromTT(columns[4]));

                  for (int i = 2; i < report.getRowCount(); i++) {
                      result.addFile(parseRow(report.getRow(i)));
                  }
            }

            return result;
        } catch (Exception e) {
View Full Code Here

Examples of hudson.plugins.rubyMetrics.saikuro.model.SaikuroResult.addFile()

            TableTag report = getReportTable(parser);

            if (report.getRowCount() > 0) {
                //row at 0 is the header row
                for (int i = 1; i < report.getRowCount(); i++) {
                    result.addFile(parseRow(report.getRow(i)));
                }
            }


            return result;
View Full Code Here

Examples of hudson.plugins.scm_sync_configuration.SCMManipulator.addFile()

    scmManipulator.checkout(checkoutDirectoryForVerifications);
    final File hello1 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/jobs/hello.txt");
    final File hello2 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/hello2.txt");
    FileUtils.fileAppend(hello1.getAbsolutePath(), "hello world !");
    FileUtils.fileAppend(hello2.getAbsolutePath(), "hello world 2 !");
    scmManipulator.addFile(checkoutDirectoryForVerifications, "jobs/hello.txt");
    scmManipulator.addFile(checkoutDirectoryForVerifications, "hello2.txt");
    scmManipulator.checkinFiles(checkoutDirectoryForVerifications, "external commit");
   
    // Renaming fakeJob to newFakeJob
    Item mockedItem = Mockito.mock(Item.class);
View Full Code Here

Examples of it.freedomotic.marketplace.util.MarketPlacePlugin2.addFile()

                    File marketDirectory = new File(attachment);
                    File fileToUpload = findFileToUpload(marketDirectory);
                    if (fileToUpload != null) {

                        MarketPlaceFile pluginFile = drupal.postFile(cS, userid, marketDirectory.getAbsolutePath(), fileToUpload.getName());
                        plugin.addFile(pluginFile);
                        drupal.putPlugin(cS, nodeid, plugin);

                    } else {
                        throw new BuildException("No marketplace files in folder " + marketDirectory);
                    }
View Full Code Here

Examples of net.lingala.zip4j.core.ZipFile.addFile()

      // Add the reference file to the zip file.
      ZipFile zipFile = new ZipFile(file);
      ZipParameters parameters = new ZipParameters();
      parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);
      parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL);
      zipFile.addFile(refFile, parameters);

      httpHeaders.add("Content-Type", "application/zip");
      httpHeaders.add("Content-Disposition",
        "attachment; filename=\"" + file.getName() + "\"");
      FileInputStream fis = new FileInputStream(file);
View Full Code Here

Examples of net.sf.hibernate.cfg.Configuration.addFile()

                } else {
                    String filename = args[i];
                    if (filename.endsWith(".jar")) {
                        cfg.addJar(new File(filename));
                    } else {
                        cfg.addFile(filename);
                    }
                }

            }
            if (propFile != null) {
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject.addFile()

        // Finalize writing
        correctedDataFile = rawDataFileWriter.finishWriting();

        // Add the newly created file to the project
        final MZmineProject project = MZmineCore.getCurrentProject();
        project.addFile(correctedDataFile);

        // Remove the original data file if requested
        if (removeOriginal) {
          project.removeFile(origDataFile);
        }
View Full Code Here

Examples of net.sf.rej.files.FileSet.addFile()

      String newFileName = getNewFileName(ic.getFilename(), oldClassName, cf.getFullClassName());
      Undoable u = new RenameFileAction(ic.getProject(), ic.getFilename(), newFileName, ic.getCf());
      if (this.batchMode) {
        FileSet fs = ic.getProject().getFileSet();
        fs.removeFile(ic.getFilename());
        fs.addFile(newFileName);
      } else {
        SystemFacade.getInstance().performProjectAction(u);
      }
      ic.setFilename(newFileName);
    }
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.