2014-02-10 35 views

回答

1

可以运行Ant目标复制此媒体文件(来自同一.ZIP文件,其中包含installer.jar大概提取,虽然这你决定)。

  • install.xml:

    <listeners> <listener classname="AntActionInstallerListener" stage="install" /> <listener classname="AntActionUninstallerListener" stage="uninstall" /> </listeners>

  • UserInputSpec.xml:

    <field type="file" align="left" variable="the.file"> <spec txt="" size="25" set=""/> </field>

  • UserInputPanel:问用户通过File Chooser字段找到并选择媒体文件。文件位置将保存在the.file变量中,如上所示。

  • AntActionsSpec.xml:

    <antcall buildfile="location of ANT_XML_FILE"order="afterpacks"> <target name="copyFile"></target> <property name="dest.dir"value="$INSTALL_PATH"​​"the_file"value="${the.file}"></property> </antcall>

  • ANT_XML_FILE:
    <target name="copyFile"> <copy todir="${dest.dir}"file="${the_file}"/> </target>

相关问题