WTP Usage Scanner
web tools platform adopters
How to generate a usage report of WTP code
 

  1. Download the Eclipse API scanner and unzip it on top of your Eclipse driver.
  2. Start Eclipse.
  3. Launch org.eclipse.wtp.releng.tools.component.adopters.SimpleClass2Reference as an Eclipse application. See figure below.

  4. Provide the following VM arguments:

    -Dsrc=D:\temp\MyProduct.zip
    -Dbase=D:\temp\wtp-sdk-1.5M4.zip
    -Doutput=D:\temp\usage\wtp-usage.xml
    -Dincludes=org.eclipse.wst.*,org.eclipse.jst.*,org.eclipse.jem*,org.eclipse.jpt*
    -DcontactInfo=your_email@your_business.com
    -Dhtml=D:\temp\usage\wtp-usage.html
    				
  5. Click run. Below is a sample WTP usage report.

How to check for API and non-API breakages
 

  1. Check out the org.eclipse.wtp.releng.tools.component.core plugin from CVS if you have not already done so. Lauch org.eclipse.wtp.releng.tools.component.adopters.APIRefCompatibilityScanner as an Eclipse application. See figure below.

  2. Provide the following VM arguments:

    -Dsrc=D:\temp\wtp-sdk-1.5M4.zip -Duse=D:\temp\usage -DoutputDir=D:\temp\output
    				
  3. Click run. The sample report below shows you the classes/methods/fields that were removed.