- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for gitignoreFile (0.14 sec)
-
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/GitIgnoreGeneratorTest.groovy
gitignoreFile.file gitignoreFile.text == toPlatformLineSeparators("""ignoredFolder/ ${getGeneratedGitignoreContent()}""") } def "avoid adding duplicated entries when .gitignore file already exists [#entry]"() { setup: def generator = new GitIgnoreGenerator() gitignoreFile << entry when: generator.generate(settings, null) then: gitignoreFile.file
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 21 12:17:11 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BasicTypeInitIntegrationTest.groovy
when: def gitignoreFile = targetDir.file(".gitignore") gitignoreFile << "*.class${System.lineSeparator()}existingIgnores" run('init', '--project-name', 'someApp', '--dsl', scriptDsl.id, '--overwrite') then: gitignoreFile.file gitignoreFile.text == toPlatformLineSeparators("""*.class existingIgnores
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 20:10:55 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/GitIgnoreGenerator.java
} } } private static Set<String> getGitignoresToAppend(File gitignoreFile) { Set<String> result = Sets.newLinkedHashSet(Arrays.asList(".gradle", "build")); if (gitignoreFile.exists()) { try (BufferedReader reader = new BufferedReader(new FileReader(gitignoreFile))){ result.removeAll(reader.lines().filter(it -> result.contains(it)).collect(Collectors.toSet()));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3.3K bytes - Viewed (0)