org.gradle.internal.FileUtils Java Examples
The following examples show how to use
org.gradle.internal.FileUtils.
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 #9
Source File: ClassTestResults.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Override public String getBaseUrl() { return String.format("classes/%s.html", FileUtils.toSafeFileName(name)); }
Example #10
Source File: Binary2JUnitXmlReportGenerator.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private String getReportFileName(TestClassResult result) { return "TEST-" + FileUtils.toSafeFileName(result.getClassName()) + ".xml"; }
Example #11
Source File: ClassTestResults.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Override public String getBaseUrl() { return String.format("classes/%s.html", FileUtils.toSafeFileName(name)); }
Example #12
Source File: Binary2JUnitXmlReportGenerator.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private String getReportFileName(TestClassResult result) { return "TEST-" + FileUtils.toSafeFileName(result.getClassName()) + ".xml"; }
Example #13
Source File: ClassTestResults.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
@Override public String getBaseUrl() { return String.format("classes/%s.html", FileUtils.toSafeFileName(name)); }
Example #14
Source File: Binary2JUnitXmlReportGenerator.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private String getReportFileName(TestClassResult result) { return "TEST-" + FileUtils.toSafeFileName(result.getClassName()) + ".xml"; }
Example #15
Source File: ClassTestResults.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
@Override public String getBaseUrl() { return String.format("classes/%s.html", FileUtils.toSafeFileName(name)); }
Example #16
Source File: Binary2JUnitXmlReportGenerator.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private String getReportFileName(TestClassResult result) { return "TEST-" + FileUtils.toSafeFileName(result.getClassName()) + ".xml"; }