Skip to content

Commit bb8b342

Browse files
committed
U improved why ini template to deal with classpath
1 parent d0d7d8b commit bb8b342

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/io/github/fvarrui/javapackager/packagers/WindowsPackager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public File doCreateApp() throws Exception {
6666

6767
// process classpath
6868
if (classpath != null) {
69-
classpaths = Arrays.asList(classpath.split(";"));
69+
classpaths = Arrays.asList(classpath.split("[;:]"));
7070
if (!isUseResourcesAsWorkingDir()) {
7171
classpaths = classpaths.stream().map(cp -> new File(cp).isAbsolute() ? cp : "%EXEDIR%/" + cp).collect(Collectors.toList());
7272
}

src/main/resources/windows/why-ini.vtl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
mainclass=$info.mainClass
2-
classpath=$info.jarName
2+
#set($classpath = $info.jarFile.name)
33
#foreach ($cp in $info.classpaths)
4-
classpath=;$!{cp}
4+
#set($classpath = $classpath + ";" + $cp)
55
#end
6+
classpath=${classpath}
67
#if ($info.bundleJre)
78
jvm_path=${info.jreDirectoryName}
89
#end

0 commit comments

Comments
 (0)