Skip to content

Commit

Permalink
Always use forward slash to build path within generator (within jar)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresat committed Nov 11, 2024
1 parent d36542c commit 7ac719e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import org.gradle.buildinit.specs.BuildInitGenerator;
import org.gradle.util.ResourceLoader;

import java.io.File;

///**
// * A {@link BuildInitGenerator} that generates a Gradle build from a static template packaged
// * as resources files in the {@link #TEMPLATES_ROOT} directory.
Expand All @@ -21,7 +19,7 @@ public void generate(BuildInitConfig config, Directory projectDir) {
throw new IllegalArgumentException("Unknown project type: " + config.getBuildSpec().getDisplayName() + " (" + config.getBuildSpec().getClass().getName() + ")");
}

String templatePath = TEMPLATES_ROOT + File.separatorChar + projectSpec.getType();
String templatePath = TEMPLATES_ROOT + "/" + projectSpec.getType();
ResourceLoader resourceLoader = new ResourceLoader();

try {
Expand Down

0 comments on commit 7ac719e

Please sign in to comment.