Menu

DPP_Image_Test_Title_for_Java2D

DPP Image Test Title for Java2D

The DPP Image Test Title is a smoke test for Magic Lantern. The DPP Image Test Title exercises a simple Digital Playprint containing a Stage, a 2D Set and a Scene that uses an Actor to display an image. This page discusses how to build the title and run it using the Magic Lantern SDK targeting the Java2D platform.

Build the DPP Image Test Title

Ant may be used to build the DPP Image Test Title.

The Ant build.xml file has a dependency on Magic Lantern mastering tasks for generating the Digital Playprint. Copy the Magic Lantern codegen Jar to the "lib" directory where Ant has been installed. For example, on a Linux platform:

sudo cp $MLE_ROOT/lib/java/tools/codegen.jar $ANT_HOME/lib

To build the title, do the following:

$ cd $MLE_HOME/Titles/dppTest/java/com.wizzer.mle.title.dpptest
$ ant

This will place the build artifacts (.class files) in the "bin" directory.

Create a Jar Package

A jar package, DppTest.jar, may be created by using the "package" target.

$ cd $MLE_HOME/Titles/dppTest/java/com.wizzer.mle.title.dpptest
$ ant package

The DppTest.jar package will be placed in the "build" directory.

Execute the DPP Image Test Title

To run the title from a command shell:

$ cd $MLE_HOME/Titles/dppTest/java/com.wizzer.mle.title.dpptest
$ java -jar build/DppTest.jar src/DppImageTest.dpp

Note that the current implementation of the test requires the Digital Playprint to be specifed as a command line argument.


Related

Developer Wiki: Developer_Documentation

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.