- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for createNewFile (0.31 seconds)
-
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java
touchFile.delete(); assertTrue(updateCheckManager.isUpdateRequired(a, remoteRepository)); file.getParentFile().mkdirs(); file.createNewFile(); updateCheckManager.touch(a, remoteRepository, null); assertFalse(updateCheckManager.isUpdateRequired(a, remoteRepository)); assertNull(
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 9K bytes - Click Count (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
project.layout.buildDirectory.file("tmp/teŝt files/leftover/leftover").get().asFile.apply { parentFile.mkdirs() createNewFile() } } } useJUnitPlatform() } }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Jun 18 10:36:40 GMT 2025 - 10.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java
} })); context.setProjectDirectory(tempDir.toFile()); File file = new File(tempDir.resolve("file.txt").toString()); if (!file.createNewFile()) { throw new IOException("Can't create " + file); } } @Test void testRootDirectoryWithNull() { context.setProjectDirectory(null);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 6.2K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy
then: assertFoundDeadLinks() } private File createJavadocForClass(String path) { new File(docsRoot, "javadoc/${path}.html").tap { parentFile.mkdirs() createNewFile() text = "Generated javadoc HTML goes here" } } private GradleRunner run(String... args) { return GradleRunner.create() .withProjectDir(projectDir)Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Aug 21 16:24:54 GMT 2025 - 11.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
String path = "target/test-repositories/" + component() + "/bad-local-repository"; File f = new File(getBasedir(), path); f.createNewFile(); return artifactRepositoryFactory.createArtifactRepository( "test", "file://" + f.getPath(), repoLayout, null, null); } protected String getRepositoryLayout() {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Files.java
*/ @SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(File file) throws IOException { checkNotNull(file); if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) { throw new IOException("Unable to update modification time of " + file); } } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 20:24:13 GMT 2025 - 32.8K bytes - Click Count (0) -
guava/src/com/google/common/io/Files.java
*/ @SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(File file) throws IOException { checkNotNull(file); if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) { throw new IOException("Unable to update modification time of " + file); } } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 20:24:13 GMT 2025 - 32.8K bytes - Click Count (0)