Examples of directory()


Examples of com.lmax.ant.paralleljunit.util.process.DelegatingProcessBuilder.directory()

        {
            if (!workingDirectory.mkdirs() && !workingDirectory.isDirectory())
            {
                throw new BuildException("Failed to create worker directory: " + workingDirectory.getPath());
            }
            processBuilder.directory(workingDirectory);
        }

        final Map<String, String> environment = processBuilder.environment();

        if (config.isNewEnvironment())
View Full Code Here

Examples of java.lang.ProcessBuilder.directory()

          workingDirectory + "$ " + Joiner.on(" ").join(cmdArgs));
    }

    ProcessBuilder pb = new ProcessBuilder(cmdArgs);
    if (workingDirectory != null && !workingDirectory.isEmpty()) {
      pb.directory(new File(workingDirectory));
    }
    Process p;
    int returnStatus;
    String stdoutData, stderrData;
    try {
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

    if (!useAutocompleteIndexExtension) {
      IndexAccessor ia = source.getAccessor();
      boolean reopened = false;
      try {
        IndexReader reader = ia.getReader(false);
        Directory dir = reader.directory();
        try {
          if (dir.fileExists("reopen")) {
            long lastupdate = dir.fileModified("reopen");
            if (lastupdate != lastupdatestored) {
              reopened = true;
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

        try {
          IndexReader reader = s==null ? null : s.get().getReader();
          if (reader!=null && reader.getIndexCommit() != null && reader.getIndexCommit().getGeneration() != 1L) {
            try {
              if(replicateOnOptimize){
                Collection<IndexCommit> commits = IndexReader.listCommits(reader.directory());
                for (IndexCommit ic : commits) {
                  if(ic.isOptimized()){
                    if(indexCommitPoint == null || indexCommitPoint.getVersion() < ic.getVersion()) indexCommitPoint = ic;
                  }
                }
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

      readers=idxSystem.getIndexReaders();
     
      for(int i=0; i<readers.size(); i++)
      {
        IndexReader ir = readers.get(i);
        Map<String, String> commitData = IndexReader.getCommitUserData(ir.directory()); // = new HashMap<String,String>();
        System.out.println("i:" + i + "ZoieTest: directory: " + ir.directory());
        System.out.println("i:" + i + "ZoieTest: commitData(ZoieVersion): " + commitData)
      }
     
      if(2>1) return;
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

     
      for(int i=0; i<readers.size(); i++)
      {
        IndexReader ir = readers.get(i);
        Map<String, String> commitData = IndexReader.getCommitUserData(ir.directory()); // = new HashMap<String,String>();
        System.out.println("i:" + i + "ZoieTest: directory: " + ir.directory());
        System.out.println("i:" + i + "ZoieTest: commitData(ZoieVersion): " + commitData)
      }
     
      if(2>1) return;
     
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

   */
  public static void main(String[] args) throws Exception {
    // TODO Auto-generated method stub
    LuceneIndexerSearcher lis = new LuceneIndexerSearcher(false);
    IndexReader ir = lis.getIndexReader();
    Directory dir = new RAMDirectory(ir.directory());
    ir.close();
    IndexSearcher is = new IndexSearcher(dir);
    ir = is.getIndexReader();
    /*LuceneIndexerSearcher lis = new LuceneIndexerSearcher(false);

View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

   * @param args
   */
  public static void main(String[] args) throws Exception {
    LuceneIndexerSearcher lis = new LuceneIndexerSearcher(false);
    IndexReader ir = lis.getIndexReader();
    Directory dir = new RAMDirectory(ir.directory());
    ir.close();
    IndexSearcher is = new IndexSearcher(dir);
    //IndexSearcher is = lis.getIndexSearcher();
    is.setSimilarity(new MySimilarity());
    ir = is.getIndexReader();
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

   */
  public static void main(String[] args) throws Exception {
    // TODO Auto-generated method stub
    LuceneIndexerSearcher lis = new LuceneIndexerSearcher(false);
    IndexReader ir = lis.getIndexReader();
    Directory dir = new RAMDirectory(ir.directory());
    ir.close();
    IndexSearcher is = new IndexSearcher(dir);
    ir = is.getIndexReader();

    List<String> docFiles = new ArrayList<String>();
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.directory()

        try {
          IndexReader reader = s==null ? null : s.get().getReader();
          if (reader!=null && reader.getIndexCommit() != null && reader.getIndexCommit().getGeneration() != 1L) {
            try {
              if(!replicateOnCommit && replicateOnOptimize){
                Collection<IndexCommit> commits = IndexReader.listCommits(reader.directory());
                for (IndexCommit ic : commits) {
                  if(ic.isOptimized()){
                    if(indexCommitPoint == null || indexCommitPoint.getVersion() < ic.getVersion()) indexCommitPoint = ic;
                  }
                }
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.