petr-panteleyev / jpackage-maven-plugin

JPackage Maven Plugin
https://codeberg.org/petr-panteleyev/jpackage-maven-plugin
BSD 2-Clause "Simplified" License
37 stars 8 forks source link

Using the plugin on a Windows machine, one is forced to use backslashes for path separation #8

Closed danidemi closed 2 years ago

danidemi commented 2 years ago

Hi, I don't know if this is intended or not, but to make the plugin run on Windows I had to set the pom.xml like this:

  <plugin>
    <groupId>org.panteleyev</groupId>
    <artifactId>jpackage-maven-plugin</artifactId>
    <version>1.3.0</version>

    <configuration>
      <name>xxxxxx</name>
      <appVersion>${project.version}</appVersion>
      <vendor>xxxxxxx</vendor>
      <input>target\jmods</input>
      <destination>target\dist</destination>
      <mainJar>cli-1.0-SNAPSHOT.jar</mainJar>
      <javaOptions>
        <option>--enable-preview</option>
        <option>-Dfile.encoding=UTF-8</option>
      </javaOptions>
    </configuration>

    <executions>
      <execution>
        <id>win</id>
        <configuration>
          <icon>src\icons\xxxxxx.ico</icon>
          <winMenu>true</winMenu>
          <appVersion>0.0.1</appVersion>
        </configuration>
        <goals>
          <goal>jpackage</goal>
        </goals>
        <phase>package</phase>
      </execution>
    </executions>
  </plugin>

...while I expected I could use / as file separator, as it's possible with other plugins, if I'm not wrong.

petr-panteleyev commented 2 years ago

Hi, this is definitely not the case, Check my other project for example: https://github.com/petr-panteleyev/password-manager Works on Windows 10 and 11.