Skip to content

Commit

Permalink
Fix wrong String.replaceAll in JavaAppBatScript.makeWindowsRelativeCl…
Browse files Browse the repository at this point in the history
…asspathDefine
  • Loading branch information
chwthewke committed Nov 19, 2013
1 parent 82b19de commit 512482f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object JavaAppBatScript {
name.toUpperCase.replaceAll("\\W", "_")

def makeWindowsRelativeClasspathDefine(cp: Seq[String]): String = {
def cleanPath(path: String): String = path.replaceAll("/", "\\")
def cleanPath(path: String): String = path.replaceAll("/", "\\\\")
def makeRelativePath(path: String): String =
"%APP_LIB_DIR%\\" + cleanPath(path)
"set \"APP_CLASSPATH=" + (cp map makeRelativePath mkString ";") + "\""
Expand Down

0 comments on commit 512482f

Please sign in to comment.