cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 160 forks source link

JSweetCommandLineLauncher's includes parameter seems sensitive to path separator style #642

Open lgrignon opened 3 years ago

lgrignon commented 3 years ago

Ant script:

 <java classname="org.jsweet.JSweetCommandLineLauncher" fork="true" failonerror="true">
      <arg value="-v" />
      <arg value="-b" />
      <arg value="--workingDir" />
      <arg value="tools/JSweet/build/jsweet.tmp" />
      <arg value="--factoryClassName" />
      <arg value="com.eteks.sweethome3d.jsweet.SweetHome3DJSweetFactory" />
      <arg value="--header"/>
      <arg value="tools/JSweet/header.txt" />
      <!-- ts output dir -->
      <arg value="--tsout" />
      <arg value="tools/JSweet/build/ts" />
      <!-- js output dir -->
      <arg value="-o" />
      <arg value="tools/JSweet/build/js" />
      <arg value="--declaration" />
      <!-- input dir -->
      <arg value="--jdkHome" />
      <arg value="${java.home}" />
      <arg value="--encoding" />
      <arg value="ISO-8859-1" />
      <arg value="--candiesJsOut"/>
      <arg value="tools/JSweet/build/js" />
      <arg value="-i" />
      <arg value="../SweetHome3D/src:tools/JSweet/src" />
      <arg value="--includes" />
      <arg value="def:com/eteks/sweethome3d/model:com/eteks/sweethome3d/tools:com/eteks/sweethome3d/viewcontroller:com/eteks/sweethome3d/io" />
      <sysproperty key="java.ext.dirs" value="../SweetHome3D/lib"/>
      <!-- Transpilation target may contain almost all com.eteks.sweethome3d.viewcontroller classes or only the subset needed to run 
           Sweet Home 3D JS Viewer (in which case swingundo.js extracted from tools/JSweet/build/js/j4ts-swingundo-1.8.132-20170726/bundle.js isn't required) -->
      <sysproperty key="transpilationTarget" value="${buildType}"/> 
      <classpath>
        <fileset dir="tools/JSweet/lib" excludes="generated/" />
        <pathelement location="tools/JSweet/build/SweetHome3DJSweetExtension"/>
        <pathelement location="../SweetHome3D/libtest/jnlp.jar"/>
        <pathelement location="../SweetHome3D/libtest/AppleJavaExtensions.jar"/>
      </classpath>
    </java>