Examples of Directory


Examples of net.datacrow.util.Directory

         
          // reports
          if (module.hasReports()) {
              String reportDir = DataCrow.reportDir + module.getName().toLowerCase().replaceAll("[/\\*%., ]", "");
             
                Directory dir = new Directory(reportDir, true, new String[] {"xsl, xslt"});
              for (String filename : dir.read()) {
                  byte[] content = Utilities.readFile(new File(filename));
                  String name = filename.substring(filename.indexOf(File.separator + "reports" + File.separator) + 9);
                        zf.addEntry(name, content);
              }
          }
View Full Code Here

Examples of net.datacrow.util.Directory

            DcSwingUtilities.displayErrorMessage(DcResources.getText("msgSelectDirFirst"));
        } else {
           
            notifyTaskStarted();
           
            final Directory dir = new Directory(
                    directory.toString(),
                    cbRecursive.isSelected(),
                    filter != null ? filter.getExtensions() : null);
            dir.setListener(this);
           
            Thread task = new Thread(new Runnable() {
                @Override
                public void run() {
                    for (final String file : dir.read()) {
                        try {
                            SwingUtilities.invokeAndWait(
                                    new Thread(new Runnable() {
                                        @Override
                                        public void run() {
View Full Code Here

Examples of net.datacrow.util.Directory

    public void add(Conversion conversion) {
        conversions.add(conversion);
    }

    public void load() {
        Directory directory = new Directory(
                DataCrow.installationDir + "upgrade",
                false,
                new String[] {"properties"});
       
        List<String> filenames = directory.read();
       
        // sort them in their natural order
        Collections.sort(filenames);

        for (String filename : filenames) {
View Full Code Here

Examples of net.datacrow.util.Directory

                logger.info(DcResources.getText("msgModulesLoaded"));
       
                ValueEnhancers.initialize();
   
                // delete lock file
                Directory directory = new Directory(dataDir, false, new String[] {"lck"});
                for (String file : directory.read())
                  new File(file).delete();
               
                // set the database name
                DcSettings.set(DcRepository.Settings.stConnectionString, "dc");
                if (db != null && db.length() > 0)
View Full Code Here

Examples of net.datacrow.util.Directory

            return;
       
        String directory = new File(filename).getParent();
        boolean recurse = settings.getBoolean(DcRepository.ModuleSettings.stImportLocalArtRecurse);
       
        Directory dir = new Directory(directory, recurse, new String[] {"jpg", "jpeg", "png", "gif"});
        Collection<String> files = dir.read();
        boolean frontSet = false;
        boolean backSet = false;
        boolean cdSet = false;
       
        for (String file : files) {
View Full Code Here

Examples of net.grinder.util.Directory

    String buildJVMArgument = createPropertyBuilder.buildJVMArgument();
    assertThat(buildJVMArgument, containsString("-Xmx"));
  }

  public PropertyBuilder createPropertyBuilder(String hostString) throws DirectoryException {
    Directory directory = new Directory(new File("."));
    GrinderProperties property = new GrinderProperties();

    return new PropertyBuilder(property, directory, true, hostString, NetworkUtils.getLocalHostName());
  }
View Full Code Here

Examples of net.sf.laja.example.file.behaviour.Directory

        final String baseDir = "./src/example/java/cdd/main/net/sf/laja/example/file/behaviour";
        if (!Directory.isDirectory(baseDir)) {
            System.out.println(baseDir + " is not a directory!");
            return;
        }
        Directory directory = Directory.directoryPath(baseDir).asDirectory();

        System.out.println(directory.asTextDirectory().directoryTree());
    }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.Directory

      war = (IVirtualDirectory) artifact;
    } else {
      throw new VirtualArtifactDeployerException(deployer, artifact, "Cannot deploy the artifact as a web application: " + artifact);
    }
   
    Directory vwar = new DirectoryRoot();
    vwar.link(war);
   
    return new WebApplicationDeployment(vwar, deployer, war);
  }
View Full Code Here

Examples of org.apache.ambari.server.agent.AgentEnv.Directory

        "5000000", "4000000", "10%", "size", "fstype"));
    hostInfo.setMounts(mounts);

    AgentEnv agentEnv = new AgentEnv();
   
    Directory dir1 = new Directory();
    dir1.setName("/etc/hadoop");
    dir1.setType("not_exist");
    Directory dir2 = new Directory();
    dir2.setName("/var/log/hadoop");
    dir2.setType("not_exist");
    agentEnv.setStackFoldersAndFiles(new Directory[] { dir1, dir2 });

    AgentVersion agentVersion = new AgentVersion("0.0.x");
    long currentTime = 1001;
View Full Code Here

Examples of org.apache.lucene.store.Directory

                    access = new IndexAccess();
                    access.modifier = new IndexModifier(path, analyzer, recreate);
                    ## LUCENE2 end ##*/
                    //## LUCENE3 begin ##
                    File f = new File(path);
                    Directory indexDir = FSDirectory.open(f);
                    boolean recreate = !IndexReader.indexExists(indexDir);
                    Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_30);
                    IndexWriter writer = new IndexWriter(indexDir, analyzer,
                            recreate, IndexWriter.MaxFieldLength.UNLIMITED);
                    //see http://wiki.apache.org/lucene-java/NearRealtimeSearch
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.