Build Hook

Identifier:
org.eclipse.mtj.core.mtjbuildhook

Since:
1.0

Description:
This extension point provides a way for third party components to hook themselves to the MTJ project's build process.

A hook can perform pre and pos build operations based on the several states available in the build process.
Currently, the ordered list of possible states are:

  1. PRE_BUILD [Before build process starts]
  2. PRE_PREPROCESS [Before preprocessing]
  3. POST_PREPROCESS [After preprocessing]
  4. PRE_COMPILE [Before JDT builder starts]
  5. POST_COMPILE [After JDT builder ends]
  6. PRE_LOCALIZATION [Before localization]
  7. POST_LOCALIZATION [After localization]
  8. PRE_PREVERIFICATION [Before preverifying]
  9. POST_PREVERIFICATION [After preverifying]
  10. POST_BUILD [After build process ends]

Configuration Markup:

<!ELEMENT extension (build-hook)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT build-hook EMPTY>

<!ATTLIST build-hook

hook CDATA #REQUIRED

>

Adds a new build hook to the MTJ project's builder.



Examples:
Example of a declaration of a Build Hook:

 <extension point="org.eclipse.mtj.core.mtjbuildhook">
    <build-hook
          hook="org.eclipse.mtj.core.build.MotoBuildHook">
    </build-hook>
 </extension>

Supplied Implementation:
The MTJ itself does not have any hooks predefined.


Copyright (c) 2009 Motorola.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html