Java Code Examples for org.gradle.internal.FileUtils#assertInWindowsPathLengthLimitation()

The following examples show how to use org.gradle.internal.FileUtils#assertInWindowsPathLengthLimitation() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SingleSourceCompileArgTransformer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected File getOutputFileDir(File sourceFile, File objectFileDir) {
    File outputFile = new CompilerOutputFileNamingScheme()
                            .withObjectFileNameSuffix(objectFileNameSuffix)
                            .withOutputBaseFolder(objectFileDir)
                            .map(sourceFile);
    File outputDirectory = outputFile.getParentFile();
    if (!outputDirectory.exists()) {
        outputDirectory.mkdirs();
    }
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}
 
Example 2
Source File: WindowsResourceCompiler.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private File getOutputFile(WindowsResourceCompileSpec spec) {

            File outputFile = new CompilerOutputFileNamingScheme()
                    .withObjectFileNameSuffix(".res")
                    .withOutputBaseFolder(spec.getObjectFileDir())
                    .map(inputFile);

            File outputDirectory = outputFile.getParentFile();
            if (!outputDirectory.exists()) {
                outputDirectory.mkdirs();
            }
            return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
        }
 
Example 3
Source File: SingleSourceCompileArgTransformer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected File getOutputFileDir(File sourceFile, File objectFileDir) {
    String compactMD5 = HashUtil.createCompactMD5(sourceFile.getAbsolutePath());
    File outputFileDir = new File(objectFileDir, compactMD5);
    if(!outputFileDir.exists()){
        outputFileDir.mkdir();
    }
    File outputFile = new File(outputFileDir, objectFileName);
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}
 
Example 4
Source File: WindowsResourceCompiler.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private File getOutputFile(WindowsResourceCompileSpec spec) {
    String outputFileName = FilenameUtils.getBaseName(inputFile.getName()) + ".res";
    String compactMD5 = HashUtil.createCompactMD5(inputFile.getAbsolutePath());
    File outputDirectory = new File(spec.getObjectFileDir(), compactMD5);
    if(!outputDirectory.exists()){
        outputDirectory.mkdir();
    }
    File outputFile = new File(outputDirectory, outputFileName);
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}
 
Example 5
Source File: SingleSourceCompileArgTransformer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected File getOutputFileDir(File sourceFile, File objectFileDir) {
    File outputFile = new CompilerOutputFileNamingScheme()
                            .withObjectFileNameSuffix(objectFileNameSuffix)
                            .withOutputBaseFolder(objectFileDir)
                            .map(sourceFile);
    File outputDirectory = outputFile.getParentFile();
    if (!outputDirectory.exists()) {
        outputDirectory.mkdirs();
    }
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}
 
Example 6
Source File: WindowsResourceCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private File getOutputFile(WindowsResourceCompileSpec spec) {

            File outputFile = new CompilerOutputFileNamingScheme()
                    .withObjectFileNameSuffix(".res")
                    .withOutputBaseFolder(spec.getObjectFileDir())
                    .map(inputFile);

            File outputDirectory = outputFile.getParentFile();
            if (!outputDirectory.exists()) {
                outputDirectory.mkdirs();
            }
            return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
        }
 
Example 7
Source File: SingleSourceCompileArgTransformer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected File getOutputFileDir(File sourceFile, File objectFileDir) {
    String compactMD5 = HashUtil.createCompactMD5(sourceFile.getAbsolutePath());
    File outputFileDir = new File(objectFileDir, compactMD5);
    if(!outputFileDir.exists()){
        outputFileDir.mkdir();
    }
    File outputFile = new File(outputFileDir, objectFileName);
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}
 
Example 8
Source File: WindowsResourceCompiler.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private File getOutputFile(WindowsResourceCompileSpec spec) {
    String outputFileName = FilenameUtils.getBaseName(inputFile.getName()) + ".res";
    String compactMD5 = HashUtil.createCompactMD5(inputFile.getAbsolutePath());
    File outputDirectory = new File(spec.getObjectFileDir(), compactMD5);
    if(!outputDirectory.exists()){
        outputDirectory.mkdir();
    }
    File outputFile = new File(outputDirectory, outputFileName);
    return windowsPathLengthLimitation ? FileUtils.assertInWindowsPathLengthLimitation(outputFile) : outputFile;
}