Skip to content

Commit

Permalink
Merge pull request #224 from grails/fix-eol-chars
Browse files Browse the repository at this point in the history
Fix EOL characters
  • Loading branch information
puneetbehl authored Oct 31, 2023
2 parents 2abe91a + ddda637 commit 6d51716
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto

# Files that will always have CRLF line endings on checkout
*.bat text eol=crlf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public void apply(GeneratorContext generatorContext) {

generatorContext.addTemplate("gradleWrapperJar", new BinaryTemplate(WRAPPER_JAR, classLoader.getResource(WRAPPER_JAR)));
generatorContext.addTemplate("gradleWrapperProperties", new URLTemplate(WRAPPER_PROPS, classLoader.getResource(WRAPPER_PROPS)));
generatorContext.addTemplate("gradleWrapper", new URLTemplate("gradlew", classLoader.getResource("gradle/gradlew"), true));
generatorContext.addTemplate("gradleWrapperBat", new URLTemplate("gradlew.bat", classLoader.getResource("gradle/gradlew.bat"), false));
generatorContext.addTemplate("gradleWrapper", new BinaryTemplate("gradlew", classLoader.getResource("gradle/gradlew"), true));
generatorContext.addTemplate("gradleWrapperBat", new BinaryTemplate("gradlew.bat", classLoader.getResource("gradle/gradlew.bat"), false));

generatorContext.addBuildPlugin(GradlePlugin.builder().id("eclipse").build());
generatorContext.addBuildPlugin(GradlePlugin.builder().id("idea").build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public BinaryTemplate(String path, URL url) {
super(path, url);
}

public BinaryTemplate(String path, URL url, boolean executable) {
super(path, url, executable);
}

@Override
public boolean isBinary() {
return true;
Expand Down

0 comments on commit 6d51716

Please sign in to comment.