Install4j: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


install4jc --help
install4jc --help
</source>
==Ant Build==
<source lang="xml">
<project name="hello" default="media">
  <property environment="env"/>
  <property name="install4jHomeDir" location="${env.INSTALL4J_HOME}"/>
  <fail message="Specify install4jHomeDir in build.xml" unless="install4jHomeDir"/>
  <target name="media">
    <taskdef name="install4j"
            classname="com.install4j.Install4JTask"
            classpath="${install4jHomeDir}/bin/ant.jar"/>
    <install4j projectfile="hello.install4j"/>
  </target>
</project>
</source>
</source>



Revision as of 06:24, 19 February 2019

# export ANT_HOME
# export INSTALL4J_HOME

export INSTALL4J_JAVA_HOME=$JRE_HOME
export PATH=$INSTALL4J_HOME/bin:$PATH

install4jc --help

Ant Build

<project name="hello" default="media">
  <property environment="env"/>
  <property name="install4jHomeDir" location="${env.INSTALL4J_HOME}"/>
  <fail message="Specify install4jHomeDir in build.xml" unless="install4jHomeDir"/>

  <target name="media">
    <taskdef name="install4j"
             classname="com.install4j.Install4JTask"
             classpath="${install4jHomeDir}/bin/ant.jar"/>

    <install4j projectfile="hello.install4j"/>
  </target>
</project>

References