Mobile Tools for Java
Release 1.0

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

All Superinterfaces:
IPersistable

public interface IPreverifier
extends IPersistable

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

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

Field Summary
static String PREVERIFIER_STANDARD
          Constant that represents the standard preverifier
static String PREVERIFIER_UNKNOWN
          Constant that represents the unknown preverifier
 
Method Summary
 File getPreverifierExecutable()
           
 IPreverificationError[] preverify(IMTJProject midletProject, IResource[] toVerify, IFolder outputFolder, IProgressMonitor monitor)
          Launch the preverification process on the specified resources.
 IPreverificationError[] preverifyJarFile(IMTJProject 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

PREVERIFIER_STANDARD

static final String PREVERIFIER_STANDARD
Constant that represents the standard preverifier

See Also:
Constant Field Values

PREVERIFIER_UNKNOWN

static final String PREVERIFIER_UNKNOWN
Constant that represents the unknown preverifier

See Also:
Constant Field Values
Method Detail

preverify

IPreverificationError[] preverify(IMTJProject 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

IPreverificationError[] preverifyJarFile(IMTJProject 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

getPreverifierExecutable

File getPreverifierExecutable()
Returns:

Mobile Tools for Java
Release 1.0