Examples of LayoutFileSet


Examples of jetbrains.antlayout.util.LayoutFileSet

      target = new File(outputDir, pathInJar.replace('/', File.separatorChar));
    }
    expandTask.setDest(outputDir);
    expandTask.perform();

    final LayoutFileSet fileSet = new LayoutFileSet();
    fileSet.setDir(target);
    return Collections.singletonList(fileSet);
  }
View Full Code Here

Examples of jetbrains.antlayout.util.LayoutFileSet

    this.newName = newName;
  }

  @Override
  public List<LayoutFileSet> build(TempFileFactory temp) {
    final LayoutFileSet fileSet = new LayoutFileSet();
    final File destFile = temp.allocateTempFile(newName);
    copyTask.setProject(getProject());
    copyTask.setFile(new File(filePath.replace('/', File.separatorChar)));
    copyTask.setTofile(destFile);
    copyTask.perform();
    fileSet.setFile(destFile);
    return Collections.singletonList(fileSet);
  }
View Full Code Here

Examples of jetbrains.antlayout.util.LayoutFileSet

        for (LayoutFileSet set : built) {
            task.addZipfileset(set);
        }

        LayoutFileSet result = new LayoutFileSet();
        result.setFile(dest);

        task.perform();

        return Arrays.asList(result);
    }
View Full Code Here

Examples of jetbrains.antlayout.util.LayoutFileSet

        }
        if (set instanceof IdeaModuleTests) {
            return new IdeaModuleTests((IdeaModuleTests) set);
        }
        if (set instanceof ZipFileSet) {
            return new LayoutFileSet((ZipFileSet) set.clone());
        } else {
            return new LayoutFileSet((FileSet) set.clone());
        }
    }
View Full Code Here

Examples of jetbrains.antlayout.util.LayoutFileSet

        File target = prefix.length() > 0 ? new File(destDirectory, prefix + "/") : destDirectory;

        target.mkdirs();

        task.setTodir(target);
        LayoutFileSet unprefixed = (LayoutFileSet) set.clone();
        unprefixed.setPrefix("");

        task.addFileset(unprefixed);
        task.perform();
    }
View Full Code Here

Examples of jetbrains.antlayout.util.LayoutFileSet

    public List<LayoutFileSet> build(TempFileFactory temp) {
        List<LayoutFileSet> unprefixed = super.build(temp);
        List<LayoutFileSet> prefixed = new ArrayList<LayoutFileSet>();

        for (LayoutFileSet set : unprefixed) {
            LayoutFileSet copy = createCopy(set);
            copy.setPrefix(dirName + "/" + set.getPrefix(getProject()));
            prefixed.add(copy);
        }

        return prefixed;
    }
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.