edburns%acm.org fbd0e42fb9 This change-bundle fixes memory allocation in streams. Next step is to
make a final pass to make sure we are not leaking memory.  After that, I
want to clean up the build system, and the samples.

M build.xml

- Call make export in mozilla directory

- Fix clean target

M mozilla/Makefile.in

- Added export target
M classes/org/mozilla/pluglet/PlugletLoader.java

- avoid ambiguity by casting

+	    CodeSource codesource = new CodeSource(url,(java.security.cert.Certificate []) null);

M examples/MediaPlayer/JMPlayer.java

- remove debug printfs

M mozilla/npAPInsIInputStreamShim.cpp
M mozilla/npAPInsIInputStreamShim.h

- remove debug printfs

- fix buffer allocation, refactor into its own method.

- Use NPN_Mem* methods for memory allocation.

- isolate lock access to private methods.  Avoids locking when we
  already own the lock, which would cause an assertion.

M mozilla/nppluglet.cpp

- in dtor, check for null mScriptablePeer ivar before accessing it.

M mozilla/nsScriptablePeer.cpp

- whitespace

M src/Pluglet.cpp

- get the plugletEngine from do_GetService().

M src/PlugletEngine.cpp
M src/PlugletFactory.cpp
M src/PlugletLoader.cpp

- remove debug printfs

M test/test.java

- added test finalize.


build.xml classes/org/mozilla/pluglet/PlugletLoader.java examples/MediaPlayer/JMPlayer.java mozilla/Makefile.in mozilla/npAPInsIInputStreamShim.cpp mozilla/npAPInsIInputStreamShim.h mozilla/nppluglet.cpp mozilla/nsScriptablePeer.cpp src/Pluglet.cpp src/PlugletEngine.cpp src/PlugletFactory.cpp src/PlugletLoader.cpp test/test.java


git-svn-id: svn://10.0.0.236/trunk@214609 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-02 18:55:50 +00:00
..
2006-10-16 13:53:26 +00:00

To build and test the Pluglet tests
======================================

Requirements:
 
* current mozilla built tree
 
* JDK1.3 or JDK1.2 if you are not using OJI
 
* Perl 5 perl.exe must be in your path

* built org.mozilla.pluglet java classes (See NOTE)
 
========================================================================
Win32 Directions:
========================================================================
How To Build and Run :
 
*  make sure the following  environment var are set

   -  JDKHOME is set to your jdk installation directory, 
    ie  SET JDKHOME=C:\jdk1.3.

   - MOZILLA_FIVE_HOME

   - add C:\jdk1.3\jre\lib\ext to your classpath.

* Edit <TEST_TOP_DIR>/config/CommonProperties file

   - Comment /uncomment the appropriate FSEP variable

  - Modify TEST_TOP_DIR. Set it to The root directory of this pluglet 
     API test suite
     eg: <top>/mozilla/java/plugins/test

  - Modify HTML_ROOT .Set it to
     The URL of directory where the htmls of tests are placed
     eg: http://machine:port/<some-test-dir>

 
*  Edit <TEST_TOP_DIR>/config/set_env.bat

    - Modify HTML_ROOT_DIR var
        eg: set HTML_ROOT_DIR=c:\some-webserver\public_html\<some-test-dir>

    - run set_env.bat

*  Edit <TEST_TOP_DIR>/config/SecurityTests.keys
   
    - Replace every occurrence of Host sirius with your Host name
      and port with your active port number.

* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic

    type nmake -f makefile.win  

* Once build is successful

   run this using the perl script

   perl autorun.pl -f BWTest.lst

*  Results of the tests are recorded  under <TEST_TOP_DIR>/log/


=========================================================================
Unix  Directions:
=========================================================================

How To Build and Run :
 
*  make sure the following  environment var are set

   -  JDKHOME is set to your jdk installation directory, 
    ie setenv JDKHOME /usr/local/java/jdk1.3/solaris

   - MOZILLA_FIVE_HOME 
     ie setenv MOZILLA_FIVE_HOME <..>/mozilla/dist/bin

   -LD_LIBRARY_PATH is set to
    setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}:${JDKHOME}/jre/lib/sparc/native_threads:${JDKHOME}/jre/lib/sparc/classic:${JDKHOME}/jre/lib/sparc

   -CLASSPATH is set to
   setenv CLASSPATH ${CLASSPATH}:<..>/mozilla/dist/classes 

  - HTML_ROOT_DIR is set to
    setenv HTML_ROOT_DIR /<webserver-rootdir>/public_html/<some-test-dir>
  

* Edit <TEST_TOP_DIR>/config/CommonProperties file

   - Comment /uncomment the appropriate FSEP variable

  - Modify TEST_TOP_DIR. Set it to The root directory of this pluglet 
     API test suite
     eg: <top>/mozilla/java/plugins/test

  - Modify HTML_ROOT .Set it to
     The URL of directory where the htmls of tests are placed
     eg: http://machine:port/<some-test-dir>

*  Edit <TEST_TOP_DIR>/config/SecurityTests.keys
   
    - Replace every occurrence of Host sirius with your Host name
      and port with your active port number.

* cd <TEST_TOP_DIR>/src/org/mozilla/pluglet/test/basic

    type make .. and hope for the best

* Once build is successful

   run this using the perl script

   perl autorun.pl -f BWTest.lst

*  Results of the tests are recorded  under <TEST_TOP_DIR>/log/

NOTE
=====
 Pluglets must be successfully built before these tests can be run.
 To build Pluglets follow instructions under /mozilla/java/plugins/README