Java9中是否更改了<fx:deploy ... =“”> ant任务?

时间:2017-10-16 19:43:37

标签: java ant java-9

自从切换到Java 9后,我再也无法使用该任务打包我的应用程序了。至少有两个问题:

  1. 似乎不再支持basedir属性
  2. 我的.iss文件,用于创建Windows可执行文件,可以找到更长的时间
  3. 我找不到任何文件表明有变化。我的蚂蚁任务是:

      <target name="package" depends="dist, createIss" description="Creates a signed installer for the self-contained xLauncher">
        <!-- We add . to the classspath so we can use the xLauncher.iss file generated by the createIss target -->
        <taskdef resource  = "com/sun/javafx/tools/ant/antlib.xml"
                 uri       = "javafx:com.sun.javafx.tools.ant"
                 classpath = "${env.JAVA_HOME}/lib/ant-javafx.jar:."/>
    
        <fx:deploy width          = "600"
                   height         = "400"
                   outdir         = "${launcher.dist.package}"
                   outfile        = "DELETE_ME"
                   offlineAllowed = "false"
                   nativeBundles  = "exe"
                   verbose        = "false">
    
            <fx:application name    = "${launcher.app.name}"
                            version = "${launcher.app.version}"/>
    
            <fx:info title="xLauncher" vendor="${launcher.vendor}"/>
            <fx:resources>
                <fx:fileset dir="${launcher.dist.home}" includes="xLauncher.jar"/>
            </fx:resources>
    
            <!-- Set any JVM arguments, to be used when the .exe is run -->
            <fx:platform basedir="${baseDir}">
                <fx:jvmarg value="-Xmx512m"/>
            </fx:platform>
    
            <fx:bundleArgument arg="installdirChooser" value="true"/>
        </fx:deploy>
      </target>
    

    非常感谢任何帮助。

    具有basedir属性的输出是:

      

    C:\ SfnDevelopment \ trunk \ sfnLauncher \ build.xml:248:fx:platform doesn&t   支持&#34; basedir&#34;属性       at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:396)       at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:344)       at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:580)       在org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:349)       在org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:201)       at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)       at org.apache.tools.ant.Task.perform(Task.java:347)       在org.apache.tools.ant.Target.execute(Target.java:390)       在org.apache.tools.ant.Target.performTasks(Target.java:411)       在org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)       在org.apache.tools.ant.Project.executeTarget(Project.java:1366)       at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)       在org.apache.tools.ant.Project.executeTargets(Project.java:1249)       在org.apache.tools.ant.Main.runBuild(Main.java:801)       在org.apache.tools.ant.Main.startAnt(Main.java:218)       在org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)       在org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)引起:类型没有&t   支持&#34; basedir&#34;属性。       at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:402)       at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:388)       ......还有16个

    带有-verbose的ant的输出,没有basedir属性,是:

      

    解析构建文件   罐子:文件:/ C:/Program%20Files/Java/jdk-9/lib/ant-javafx.jar /com/sun/javafx/tools/ant/antlib.xml   用URI =   罐子:文件:/ C:/Program%20Files/Java/jdk-9/lib/ant-javafx.jar /com/sun/javafx/tools/ant/antlib.xml   从一个zip文件[macrodef]创建宏   javafx:com.sun.javafx.tools.ant:init-ant运行[C:\ Program   Files \ Java \ jdk-9 \ bin \ java.exe,-version]运行[C:\ Program Files   (x86)\ Inno Setup 5 \ iscc.exe,/?]检测到[C:\ Program Files   (x86)\ Inno Setup 5 \ iscc.exe] version [5]至少有一种类型   需要快捷方式。启用菜单快捷方式。 &#34;添加模块:   [java.rmi,java.sql,javafx.web,jdk.charsets,java.logging,   java.xml.crypto,java.xml,jdk.xml.dom,jdk.jfr,java.datatransfer,   jdk.packager.services,jdk.httpserver,javafx.base,jdk.net,   java.desktop,java.naming,javafx.controls,java.prefs,   java.security.sasl,jdk.naming.rmi,jdk.zipfs,java.base,   jdk.crypto.ec,jdk.management.agent,java.management,java.sql.rowset,   javafx.swing,jdk.jsobject,jdk.sctp,java.smartcardio,   jdk.unsupported,jdk.jdwp.agent,jdk.scripting.nashorn,   java.instrument,java.security.jgss,jdk.management,java.compiler,   javafx.graphics,jdk.security.auth,java.scripting,javafx.fxml,   jdk.dynalink,javafx.media,jdk.accessibility,java.management.rmi,   jdk.naming.dns,jdk.security.jgss,jdk.localedata]到运行时映像。&#34;   运行[C:\ Program Files \ Java \ jdk-9 \ bin \ javapackager.exe,   --icon-swap,C:\ Users \ MICKFR~1.LIG \ AppData \ Local \ Temp \ fxbundler13933937517016729133 \ windows \ xLauncher.ico,   C:\ Users \用户MICKFR〜1.LIG \应用程序数据\本地的\ Temp \ fxbundler13933937517016729133 \影像\ WIN-exe.image \ xLauncher \ xLauncher.exe]   运行[C:\ Program Files \ Java \ jdk-9 \ bin \ javapackager.exe,   --version-swap,C:\ Users \ MICKFR~1.LIG \ AppData \ Local \ Temp \ fxbundler13933937517016729133 \ windows \ xLauncher.properties,   C:\ Users \用户MICKFR〜1.LIG \应用程序数据\本地的\ Temp \ fxbundler13933937517016729133 \影像\ WIN-exe.image \ xLauncher \ xLauncher.exe]   为安装程序生成EXE以:   C:\ XDevelopment \ trunk \ xLauncher \ package-dist运行[C:\ Program   文件(x86)\ Inno Setup 5 \ iscc.exe,   /℃:\ XDevelopment \树干\ xLauncher \包 - 距离,   C:\ Users \用户MICKFR〜1.LIG \应用程序数据\本地的\ Temp \ fxbundler13933937517016729133 \影像\ WIN-exe.image \ xLauncher.iss]   在   C:\ Users \用户MICKFR〜1.LIG \应用程序数据\本地的\ Temp \ fxbundler13933937517016729133 \影像\ WIN-exe.image   安装程序(.exe)已保存到:   C:\ XDevelopment \树干\ xLauncher \包 - 距离

0 个答案:

没有答案