Skip to content

Commit c00a692

Browse files
committed
Merge pull request #81 from chwthewke/fix-bat-classpath
Fix wrong String.replaceAll in JavaAppBatScript.makeWindowsRelativeClasspathDefine
2 parents 82b19de + 512482f commit c00a692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/typesafe/sbt/packager/archetypes/JavaAppBatScript.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object JavaAppBatScript {
1010
name.toUpperCase.replaceAll("\\W", "_")
1111

1212
def makeWindowsRelativeClasspathDefine(cp: Seq[String]): String = {
13-
def cleanPath(path: String): String = path.replaceAll("/", "\\")
13+
def cleanPath(path: String): String = path.replaceAll("/", "\\\\")
1414
def makeRelativePath(path: String): String =
1515
"%APP_LIB_DIR%\\" + cleanPath(path)
1616
"set \"APP_CLASSPATH=" + (cp map makeRelativePath mkString ";") + "\""

0 commit comments

Comments
 (0)