Java Code Examples for org.apache.commons.io.FilenameUtils.separatorsToUnix()

The following are Jave code examples for showing how to use separatorsToUnix() of the org.apache.commons.io.FilenameUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: cf-mta-deploy-service   File: MtaArchiveBuilder.java   View Source Code Vote up 5 votes
private JarEntry createJarEntry(Path source) throws IOException {
    String entryName = FilenameUtils.separatorsToUnix(mtaAssemblyDir.relativize(source).toString());
    if (Files.isDirectory(source) && !entryName.endsWith(Constants.UNIX_PATH_SEPARATOR)) {
        entryName += Constants.UNIX_PATH_SEPARATOR;
    }

    JarEntry entry = new JarEntry(entryName);
    entry.setTime(Files.getLastModifiedTime(source).toMillis());
    return entry;
}
 
Example 2
Project: DIA-Umpire-Maven   File: DIAPack.java   View Source Code Vote up 5 votes
public void SetPepXMLPath() {
    iProphPepXMLs = new ArrayList<String>();
    String PepXMLPath1 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ1Name() + ".pep.xml");
    String PepXMLPath2 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ2Name() + ".pep.xml");
    String PepXMLPath3 = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + GetQ3Name() + ".pep.xml");
    iProphPepXMLs.add(PepXMLPath1);
    iProphPepXMLs.add(PepXMLPath2);
    iProphPepXMLs.add(PepXMLPath3);
}
 
Example 3
Project: DIA-Umpire-Maven   File: TandemParam.java   View Source Code Vote up 5 votes
@Override
public void SetResultFilePath(String mzXMLfile) {
    SpectrumPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getName(mzXMLfile));
    PepXMLPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.pep.xml");
    InteractPepXMLPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + "interact-" + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.pep.xml");
    ProtXMLPath = InteractPepXMLPath.replace(".pep.xml", ".prot.xml");
    parameterPath = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem.param");
    RawSearchResult = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(mzXMLfile) + FilenameUtils.getBaseName(mzXMLfile) + ".tandem");
}
 
Example 4
Project: Reer   File: PathUtil.java   View Source Code Vote up 4 votes
public static String normalizePath(String path) {
    return FilenameUtils.separatorsToUnix(path);
}
 
Example 5
Project: Reer   File: TestTest.java   View Source Code Vote up 4 votes
public void method() {
    FilenameUtils.separatorsToUnix("my/unix/filename");
    ToStringBuilder.reflectionToString(new Person("name"));
    new GrowthList();
    new PersonList().doSomethingWithImpl(); // compile with api-spi, runtime with api
}
 
Example 6
Project: cf-mta-deploy-service   File: ProcessGitSourceStep.java   View Source Code Vote up 4 votes
private String getPathName(Path parentFolder, Path fileToAppend) {
    Path relativePath = parentFolder.relativize(fileToAppend);
    return FilenameUtils.separatorsToUnix(relativePath.toString());
}
 
Example 7
Project: DIA-Umpire-Maven   File: DIAPack.java   View Source Code Vote up 4 votes
public String GetiProphExtPepxml(String tag) {
    return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + FilenameUtils.getBaseName(Filename) + "_" + tag + ".iproph.pep.xml");
}
 
Example 8
Project: DIA-Umpire-Maven   File: DIAPack.java   View Source Code Vote up 4 votes
public String GetQ1Pepxml() {
    return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ1Name()) + ".pep.xml");
}
 
Example 9
Project: DIA-Umpire-Maven   File: DIAPack.java   View Source Code Vote up 4 votes
public String GetQ2Pepxml() {
    return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ2Name()) + ".pep.xml");
}
 
Example 10
Project: DIA-Umpire-Maven   File: DIAPack.java   View Source Code Vote up 4 votes
public String GetQ3Pepxml() {
    return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(Filename) + "interact-" + FilenameUtils.getBaseName(GetQ3Name()) + ".pep.xml");
}
 
Example 11
Project: DIA-Umpire-Maven   File: LCMSPeakMS1.java   View Source Code Vote up 4 votes
public String GetDefaultPepXML() {
    return FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(ScanCollectionName) + "interact-" + FilenameUtils.getBaseName(ScanCollectionName) + ".pep.xml");
}
 
Example 12
Project: DIA-Umpire-Maven   File: TandemParam.java   View Source Code Vote up 4 votes
public void SetCombineFileName(String filename, String tag) {
    CombinedPepXML = FilenameUtils.separatorsToUnix(FilenameUtils.getFullPath(filename) + "interact-" + FilenameUtils.getBaseName(filename) + tag + ".tandem.combine.pep.xml");
    CombinedProt = FilenameUtils.getFullPath(filename) + FilenameUtils.getBaseName(filename) + tag + ".tandem.Qcombine.prot.xml";
}