Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.preverifier
Interface IPreverifier

All Superinterfaces:
IPersistable
All Known Implementing Classes:
StandardPreverifier

public interface IPreverifier
extends IPersistable

Required interface for preverification support. Each IPlatformDefinition is required to provide a preverifier instance for use during builds.

Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.


Field Summary
static String BUILD_ARG_PREVERIFY_CLASSES
           
static String BUILD_ARG_PREVERIFY_LIBS
           
static String BUILD_ARG_PREVERIFY_TARGET
           
static QualifiedName PREVERIFY_TARGET_PROJECT
           
 
Method Summary
 PreverificationError[] preverify(IMidletSuiteProject midletProject, IResource[] toVerify, IFolder outputFolder, IProgressMonitor monitor)
          Launch the preverification process on the specified resources.
 PreverificationError[] preverifyJarFile(IMidletSuiteProject midletProject, File jarFile, IFolder outputFolder, IProgressMonitor monitor)
          Launch the preverification process on the specified jar file.
 
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable
loadUsing, storeUsing
 

Field Detail

BUILD_ARG_PREVERIFY_CLASSES

static final String BUILD_ARG_PREVERIFY_CLASSES
See Also:
Constant Field Values

BUILD_ARG_PREVERIFY_LIBS

static final String BUILD_ARG_PREVERIFY_LIBS
See Also:
Constant Field Values

BUILD_ARG_PREVERIFY_TARGET

static final String BUILD_ARG_PREVERIFY_TARGET
See Also:
Constant Field Values

PREVERIFY_TARGET_PROJECT

static final QualifiedName PREVERIFY_TARGET_PROJECT
Method Detail

preverify

PreverificationError[] preverify(IMidletSuiteProject midletProject,
                                 IResource[] toVerify,
                                 IFolder outputFolder,
                                 IProgressMonitor monitor)
                                 throws CoreException,
                                        IOException
Launch the preverification process on the specified resources.

Parameters:
midletProject - The project in which the resources to be pre-verified reside.
toVerify - The resources to be pre-verified.
outputFolder - The folder into which the output is to be placed.
monitor - Progress monitor
Returns:
An array of preverification error instances.
Throws:
CoreException
IOException

preverifyJarFile

PreverificationError[] preverifyJarFile(IMidletSuiteProject midletProject,
                                        File jarFile,
                                        IFolder outputFolder,
                                        IProgressMonitor monitor)
                                        throws CoreException,
                                               IOException
Launch the preverification process on the specified jar file.

Parameters:
midletProject - The project in which the resources to be pre-verified reside.
jarFile - The jar file to be pre-verified.
outputFolder - The folder into which the output is to be placed.
monitor - Progress monitor
Returns:
An array of preverification error instances.
Throws:
CoreException
IOException

Mobile Tools for Java
Release 1.0