Source code file content

Revision: 385 (of 385)

support a hard coded player
» Project Revision History

» Checkout URL

core / cdc.xml

Size: 4265 bytes, 1 line
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="Mai_Tai_CDC" default="help" basedir=".">
    <description>Builds MaiTai for CDC</description>
    
    <target name="help">
    		<echo message="build MaiTai for CDC / JavaFX TV with Prism"/>
    		<echo message=""/>
    		<echo message="compile core and the player"/>
    		<echo message="   ant compile -Djfx.home=[path to JavaFX 1.3 SDK]"/>
    		<echo message="run player in the emulator with a test scene"/>
    		<echo message="   ant run-testscene -Djfx.home=[path to JavaFX 1.3 SDK]"/>
    		<echo message="run player in network mode to wait for a master"/>
    		<echo message="   ant run-network"/>
    		<echo message="test xml parser"/>
    		<echo message="   ant test-xml -Djfx.home=[path to JavaFX 1.3 SDK]"/>
    		<echo message=""/>
    </target>
    <target name="init">
        <property environment="env"/>
        <property name="jfx.home" value="${env.JAVAFX_HOME}"/>
    </target>
    
    <target name="compile" depends="init">
        <echo message="using jfx.home = ${jfx.home}"/>
    		<exec 
    			executable="${jfx.home}/bin/javafxpackager"
    			>
    			<arg value="-src"/> <arg value="Mai Tai Player/src:jmdns-3.0/src/javax/jmdns:Mai Tai Core/src:"/>
    			<arg value="-appClass"/> <arg value="MaiTai"/>
    			<arg value="-p"/> <arg value="tv"/>
    		</exec>
    </target>
    
    <target name="run-testscene" depends="init,compile">
        <echo message="using jfx.home = ${jfx.home}"/>
        <exec
        		executable="${jfx.home}/tv/emulator/bin/cvm"
        		>
        		<arg value="-Xmx30M"/> <arg value="-Xms10M"/> <arg value="-Xss1M"/>
<!--        		<arg value="-Dprism.verbose=true"/>-->
        		<arg value="-Djava.library.path=${jfx.home}/tv/emulator/bin:/home/demo/tmp"/>
        		<arg value="-Djavafx.toolkit=com.sun.javafx.tk.prism.TVToolkit"/>
        		<arg value="-Djava.security.policy=${jfx.home}/tv/emulator/lib/security/java_permissive.policy"/>
        		<arg value="-classpath"/> <arg value="dist/MaiTai.jar:${jfx.home}/lib/tv/javafxrt-cdc.jar:${jfx.home}/lib/tv/javafxapi-cdc.jar"/>
        		<arg value="com.sun.javafx.runtime.main.Main"/>
        		<arg value="maitaiplayer.Main"/>
        		<arg value="-file"/> <arg value="tests/nested.maitai"/>
		</exec>
	</target>
    
    <target name="run-network" depends="init,compile">
        <echo message="using jfx.home = ${jfx.home}"/>
        <exec
        		executable="${jfx.home}/tv/emulator/bin/cvm"
        		>
        		<arg value="-Xmx30M"/> <arg value="-Xms10M"/> <arg value="-Xss1M"/>
<!--        		<arg value="-Dprism.verbose=true"/>-->
        		<arg value="-Djava.library.path=${jfx.home}/tv/emulator/bin:/home/demo/tmp"/>
        		<arg value="-Djavafx.toolkit=com.sun.javafx.tk.prism.TVToolkit"/>
        		<arg value="-Djava.security.policy=${jfx.home}/tv/emulator/lib/security/java_permissive.policy"/>
        		<arg value="-classpath"/> <arg value="dist/MaiTai.jar:${jfx.home}/lib/tv/javafxrt-cdc.jar:${jfx.home}/lib/tv/javafxapi-cdc.jar"/>
        		<arg value="com.sun.javafx.runtime.main.Main"/>
        		<arg value="maitaiplayer.Main"/>
        		<arg value="-network"/>
		</exec>
	</target>
    
    <target name="test-xml" depends="init,compile">
        <echo message="using jfx.home = ${jfx.home}"/>
        <exec
        		executable="${jfx.home}/tv/emulator/bin/cvm"
        		>
        		<arg value="-Xmx30M"/> <arg value="-Xms10M"/> <arg value="-Xss1M"/>
        		<arg value="-Djava.library.path=${jfx.home}/tv/emulator/bin:/home/demo/tmp"/>
        		<arg value="-Djavafx.toolkit=com.sun.javafx.tk.prism.TVToolkit"/>
        		<arg value="-Djava.security.policy=${jfx.home}/tv/emulator/lib/security/java_permissive.policy"/>
        		<arg value="-classpath"/> <arg value="dist/MaiTai.jar:${jfx.home}/lib/tv/javafxrt-cdc.jar:${jfx.home}/lib/tv/javafxapi-cdc.jar"/>
        		<arg value="com.sun.javafx.runtime.main.Main"/>
        		<arg value="joshfxcommons.xml.Test"/>
        		<arg value="Mai Tai Player/test.maitai"/>
		</exec>
	</target>
    
</project>

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close