Kinesis SoftwareKineticFusion

[Show Table of Contents]

4 Running KineticFusion

[Hide Table of Contents]



4.3 Using KineticFusion with Ant

There are two ways of calling KineticFusion from within an Ant project file:

Using the Ant JVM and invoking java without the 'fork' attribute set. Note: KineticFusion requires that all class path elements required to find and run the application must already be defined in the CLASSPATH environment variable before running Ant i.e. the java classpath used by Ant must include KFDeveloper.jar.

<target name="kineticfusion.inline" depends="">
      <java classname="com.kinesis.KineticFusion">
          <arg value="-r"/> 
          <arg value="-f"/>
          <arg value="myRVML.rvml"/> 
          <arg value="-o"/>
          <arg value="mySWF.swf"/> 
                 <!-- 
                  Illustrates how to define KineticFusion properties 
                                 from within Ant targets
          -->
          <sysproperty key="kinesis.actionscript.systemClassPath" 
                          value="${kf.sysclasspath}"/>
          <sysproperty key="kinesis.actionscript.userClassPath" 
                          value="${kf.userclasspath}"/>
    </java>
</target>

Alternatively, a new JVM process can be created which allows all class path components to be defined inline. Note that this technique takes much more resources as a new JVM instance is created every time:

<target name="kineticfusion.fork">
      <java classname="com.kinesis.KineticFusion" fork="true">
          <arg value="-check"/> 
          <arg value="mx.controls.SimpleButton"/> 
          <sysproperty key="kinesis.actionscript.systemClassPath" 
                          value="${kf.sysclasspath}"/> 
        <sysproperty key="kinesis.actionscript.userClassPath" 
                        value="${kf.userclasspath}"/>
          <classpath>
              <pathelement path="${java.class.path}"/>
              <pathelement location="${kf.installdir}/KFDeveloper.jar"/>
            <pathelement location="${kf.installdir}/config"/>
          </classpath>
      </java>
  </target>