A plugins/examples/jmfplayer/src/main/web/tilego3.avi

A plugins/examples/jmfplayer/src/main/java/jmfplayer/JMFPlayer.java
A plugins/examples/jmfplayer/src/main/web/test01.html
R plugins/examples/MediaPlayer/JMPlayer.java
R plugins/examples/MediaPlayer/samples/test.html
R plugins/examples/MediaPlayer/samples/tilego3.avi

- Move mediaplayer example to jmfplayer

M plugins/examples/index.html

- Add mediaplayer example

M plugins/netbeans/build.xml
M plugins/netbeans/pluglet.properties

- require new property jdkhome.nospaces

M plugins/release/build.xml

- marching toward binary distribution

M plugins/netbeans/nbproject/build-impl.xml
M plugins/netbeans/nbproject/genfiles.properties
M plugins/netbeans/nbproject/project.properties
M plugins/netbeans/nbproject/project.xml

- IDE changes


git-svn-id: svn://10.0.0.236/trunk@222064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2007-03-20 04:59:34 +00:00
parent 5c02cdaa92
commit 79edf1719c
11 changed files with 110 additions and 42 deletions

View File

@@ -142,6 +142,7 @@
<condition property="preconditions.met">
<and>
<available file="${browser.bin.dir}/${so.prefix}xpcom.${so.extension}" />
<available file="${jdkhome.nospaces}/jre/bin/${so.prefix}java.${so.extension}" />
</and>
</condition>
@@ -153,19 +154,22 @@
<fail unless="preconditions.met">
Conditions for compilation have not been met.
Have you verified that the property browser.bin.dir has been set
to the binary directory of the host browser in the webclient.properties
to the binary directory of the host browser in the pluglet.properties
file? The current value of this property is:
${browser.bin.dir} and this directory must contain the file
${so.prefix}xpcom.${so.extension}.
Have you verified that the property jdkhome.nospaces has been set
to the installation of the JDK, in the pluglet.properties file,
and that the path to this directory
has no spaces? The current value of this property is:
${jdkhome.nospaces}.
</fail>
</target>
<target name="edburns">
<echo message="edburns path: ${myenv.Path}" />
</target>
<target name="-post-init">
<antcall target="copy.binaries" />
</target>
@@ -183,7 +187,7 @@ ${so.prefix}xpcom.${so.extension}.
</delete>
</target>
<target name="run" depends="-init-check,-post-init">
<target name="run" depends="-init-check,-pre-init,-post-init">
<exec os="SunOS" dir="${browser.bin.dir}" executable="firefox"
failonerror="yes">
@@ -197,23 +201,17 @@ ${so.prefix}xpcom.${so.extension}.
failonerror="yes">
<arg value="file://${basedir}/../examples/index.html" />
</exec>
<!--
<exec os="Windows 2000" dir="${browser.bin.dir}"
executable="${browser.bin.dir}/firefox.exe"
newenvironment="true"
failonerror="yes">
-->
<exec os="Windows 2000" dir="${browser.bin.dir}"
executable="${browser.bin.dir}/firefox.exe"
failonerror="yes">
<env key="PATH"
path="${myenv.Path}:${browser.bin.dir}:${browser.bin.dir}/components"
path="${jdkhome.nospaces}/jre/bin/client"
/>
<env key="Path"
path="${myenv.Path}:${browser.bin.dir}:${browser.bin.dir}/components"
path="${jdkhome.nospaces}/jre/bin/client"
/>
<env key="path"
path="${myenv.Path}:${browser.bin.dir}:${browser.bin.dir}/components"
path="${jdkhome.nospaces}/jre/bin/client"
/>
<env key="CLASSPATH"
path="${run.classpath}"
@@ -235,23 +233,42 @@ ${so.prefix}xpcom.${so.extension}.
</target>
<target name="-post-compile">
<echo message="${build.classes.dir}" />
<jar jarfile="${build.dir}/SimplePluglet.jar">
<manifest>
<attribute name="MIMEDescription" value="application/x-simple-pluglet"/>
<attribute name="Pluglet-Class" value="simple.SimplePluglet"/>
</manifest>
<fileset dir="${build.classes.dir}">
<include name="simple/**/*.*" />
</fileset>
</jar>
<delete>
<fileset dir="${build.classes.dir}">
<include name="simple/**/*.*" />
</fileset>
</delete>
<!-- SimplePluglet -->
<jar jarfile="${build.dir}/SimplePluglet.jar">
<manifest>
<attribute name="MIMEDescription" value="application/x-simple-pluglet"/>
<attribute name="Pluglet-Class" value="simple.SimplePluglet"/>
</manifest>
<fileset dir="${build.classes.dir}">
<include name="simple/**/*.*" />
</fileset>
</jar>
<delete>
<fileset dir="${build.classes.dir}">
<include name="simple/**/*.*" />
</fileset>
</delete>
<copy todir="${browser.bin.dir}/plugins"
file="${build.dir}/SimplePluglet.jar" />
<!-- JMFPlayer -->
<jar jarfile="${build.dir}/jmfplayer.jar">
<manifest>
<attribute name="MIMEDescription" value="video/avi"/>
<attribute name="Pluglet-Class" value="jmfplayer.JMFPlayer"/>
</manifest>
<fileset dir="${build.classes.dir}">
<include name="jmfplayer/**/*.*" />
</fileset>
</jar>
<delete>
<fileset dir="${build.classes.dir}">
<include name="jmfplayer/**/*.*" />
</fileset>
</delete>
<copy todir="${browser.bin.dir}/plugins"
file="${build.dir}/SimplePluglet.jar" />
file="${build.dir}/jmfplayer.jar" />
</target>
<target name="-do-jar-with-manifest" />

View File

@@ -67,6 +67,7 @@ is divided into following sections:
<or>
<available file="${src.EmptyMainClass.dir}"/>
<available file="${src.java.dir}"/>
<available file="${src.java2.dir}"/>
</or>
</condition>
<condition property="netbeans.home+have.tests">
@@ -96,6 +97,7 @@ is divided into following sections:
<target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
<fail unless="src.EmptyMainClass.dir">Must set src.EmptyMainClass.dir</fail>
<fail unless="src.java.dir">Must set src.java.dir</fail>
<fail unless="src.java2.dir">Must set src.java2.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
@@ -116,7 +118,7 @@ is divided into following sections:
</target>
<target name="-init-macrodef-javac">
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
<attribute name="srcdir" default="${src.EmptyMainClass.dir}:${src.java.dir}"/>
<attribute name="srcdir" default="${src.EmptyMainClass.dir}:${src.java.dir}:${src.java2.dir}"/>
<attribute name="destdir" default="${build.classes.dir}"/>
<attribute name="classpath" default="${javac.classpath}"/>
<attribute name="debug" default="${javac.debug}"/>
@@ -243,6 +245,7 @@ is divided into following sections:
<copy todir="${build.classes.dir}">
<fileset dir="${src.EmptyMainClass.dir}" excludes="${build.classes.excludes}"/>
<fileset dir="${src.java.dir}" excludes="${build.classes.excludes}"/>
<fileset dir="${src.java2.dir}" excludes="${build.classes.excludes}"/>
</copy>
</target>
<target name="-post-compile">
@@ -394,11 +397,14 @@ is divided into following sections:
<sourcepath>
<pathelement location="${src.EmptyMainClass.dir}"/>
<pathelement location="${src.java.dir}"/>
<pathelement location="${src.java2.dir}"/>
</sourcepath>
<packageset dir="${src.EmptyMainClass.dir}" includes="*/**"/>
<packageset dir="${src.java.dir}" includes="*/**"/>
<packageset dir="${src.java2.dir}" includes="*/**"/>
<fileset dir="${src.EmptyMainClass.dir}" includes="*.java"/>
<fileset dir="${src.java.dir}" includes="*.java"/>
<fileset dir="${src.java2.dir}" includes="*.java"/>
</javadoc>
</target>
<target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">

View File

@@ -3,6 +3,6 @@ build.xml.script.CRC32=4cc13411
build.xml.stylesheet.CRC32=240b97a2
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=59b0de98
nbproject/build-impl.xml.script.CRC32=5b6a971b
nbproject/build-impl.xml.data.CRC32=88453c61
nbproject/build-impl.xml.script.CRC32=cc42387b
nbproject/build-impl.xml.stylesheet.CRC32=20b9345e

View File

@@ -18,6 +18,8 @@ dist.jar=${dist.dir}/pluglet.jar
dist.javadoc.dir=${dist.dir}/javadoc
file.reference.examples-EmptyMainClass=../examples/EmptyMainClass
file.reference.main-java=../examples/simple/src/main/java
file.reference.main-java-1=../examples/jmf-player/src/main/java
file.reference.main-java-2=../examples/jmfplayer/src/main/java
file.reference.pluglet-1_1_a1.jar=../lib/pluglet-1_1_a1.jar
jar.compress=false
javac.classpath=\
@@ -59,3 +61,4 @@ run.test.classpath=\
${build.test.classes.dir}
src.EmptyMainClass.dir=${file.reference.examples-EmptyMainClass}
src.java.dir=${file.reference.main-java}
src.java2.dir=${file.reference.main-java-2}

View File

@@ -8,6 +8,7 @@
<source-roots>
<root id="src.EmptyMainClass.dir" name="EmptyMainClass"/>
<root id="src.java.dir" name="SimplePluglet"/>
<root id="src.java2.dir" name="jmfplayer"/>
</source-roots>
<test-roots/>
</data>

View File

@@ -1,5 +1,7 @@
bin.artifacts.pattern=${so.prefix}plugletjni.${so.extension},components/${so.prefix}pluglet.${so.extension},components/pluglet.xpt,plugins/np${so.prefix}pluglet.${so.extension},plugins/SimplePluglet.jar
bin.artifacts.pattern=${so.prefix}plugletjni.${so.extension},components/${so.prefix}pluglet.${so.extension},components/pluglet.xpt,plugins/np${so.prefix}pluglet.${so.extension},plugins/SimplePluglet.jar,plugins/jmfplayer.jar
#debug.jvm.args=-Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y
#Make this point to the bin directory of your XULRUNNER installation
browser.bin.dir=C:\\Projects\\chaff\\pluglet-1-1-alpha-1\\ff1509
#Make this point at your JDKHOME without spaces
jdkhome.nospaces=C:\\PROGRA~1\\Java\\jdk1.6.0