Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] API Scanning Tool Available

Hi Jeffrey

I used the workbench version of the scanner. How do I tell him to generate the component-use ?

btw I cannot add API to the component.xml via the GUI I have to add it by hand

regards
 Jens Lukowski

Jeffrey Liu wrote:


Hi Jens,

Correct, the command line version of the scanner only reads plugin.xml files and bundle MANIFEST.MF files. It will only scan libraries defined in these files. As for your concern, "src/class" is one of the many possible .classpath configuration for a workbench project. To support this correctly, the scanner will need to parse/read .classpath files as well. This is something that we can put in the support for, but if you are scanning your workbench projects, is there any reason why you do not want to use the workbench/GUI version of the scanner?

Thanks,

Jeffrey Liu
IBM Rational Software - Performance Analyst
IBM Toronto Lab.
8200 Warden Ave. Markham, Ontario, L6G 1C7
Internal mail: D3/R8V/8200/MKM (D3-268)
T/L: 969 3531
Tel: (905) 413 3531
Fax: (905) 413 4920
jeffliu@xxxxxxxxxx



*Jens Lukowski <jens.lukowski@xxxxxx>*
Sent by: wtp-dev-admin@xxxxxxxxxxx

02/09/2005 05:49 AM
Please respond to
wtp-dev


	
To
	wtp-dev@xxxxxxxxxxx
cc
	
Subject
	Re: [wtp-dev] API Scanning Tool Available



	





Hi Arthur

I tested the genUsage feature of the new apitool and it looks like that
the command line tool looks only for the jar archives and doesn't use
the src/class files.

I used the following command line:
genViolation -eclipseDir <my workspace> -compXMLDir <where the dirs with
the component.xml are> -compVioDir . -genUsage

I used the following component.xmls:

wst.sse:
<?xml version="1.0" encoding="ASCII"?>
<model:component
xmlns:model="http://eclipse.org/wtp/releng/tools/component-model";
name="wst.sse">
 <model:plugin fragment="false" id="org.eclipse.wst.sse.core"/>
 <model:plugin fragment="false" id="org.eclipse.wst.sse.snippets"/>
 <model:plugin fragment="false" id="org.eclipse.wst.sse.ui"/>
 <model:package name="org.eclipse.wst.sse.core.builder"/>
 <model:package name="org.eclipse.wst.sse.core.document"/>
 <model:package name="org.eclipse.wst.sse.core"/>
 <model:package name="org.eclipse.wst.sse.core.text"/>
 <model:package name="org.eclipse.wst.sse.core.events"/>
 <model:package name="org.eclipse.wst.sse.core.contentmodel"/>
 <model:package name="org.eclipse.wst.sse.core.cleanup"/>
 <model:package name="org.eclipse.wst.sse.core.format"/>
 <model:package name="org.eclipse.wst.sse.core.filebuffers"/>
 <model:package name="org.eclipse.wst.sse.core.util"/>
 <model:package name="org.eclipse.wst.sse.core.exceptions"/>
 <model:package name="org.eclipse.wst.sse.core.parser"/>
 <model:package name="org.eclipse.wst.sse.core.participants"/>
 <model:package name="org.eclipse.wst.sse.core.undo"/>
 <model:package name="org.eclipse.wst.sse.core.modelquery"/>
 <model:package name="org.eclipse.wst.sse.core.validate"/>
 <model:package name="org.eclipse.wst.sse.core.modelhandler"/>
 <model:package name="org.eclipse.wst.sse.core.preferences"/>
 <model:package name="org.eclipse.wst.sse.core.text.rules"/>
 <model:package name="org.eclipse.wst.sse.snippets.editors"/>
 <model:package name="org.eclipse.wst.sse.snippets.insertions"/>
 <model:package name="org.eclipse.wst.sse.snippets"/>
 <model:package name="org.eclipse.wst.sse.snippets.core"/>
 <model:package name="org.eclipse.wst.sse.snippets.dnd"/>
 <model:package name="org.eclipse.wst.sse.snippets.actions"/>
 <model:package name="org.eclipse.wst.sse.ui.extension"/>
 <model:package name="org.eclipse.wst.sse.ui"/>
 <model:package name="org.eclipse.wst.sse.ui.contentproperties"/>
 <model:package name="org.eclipse.wst.sse.ui.style"/>
 <model:package name="org.eclipse.wst.sse.ui.extensions.spellcheck"/>
 <model:package name="org.eclipse.wst.sse.ui.util"/>
 <model:package name="org.eclipse.wst.sse.ui.preferences.ui"/>
 <model:package name="org.eclipse.wst.sse.ui.taginfo"/>
 <model:package name="org.eclipse.wst.sse.ui.views.contentoutline"/>
 <model:package name="org.eclipse.wst.sse.ui.extensions.breakpoint"/>
 <model:package name="org.eclipse.wst.sse.ui.views.properties"/>
 <model:package name="org.eclipse.wst.sse.ui.contentassist"/>
 <model:package name="org.eclipse.wst.sse.ui.edit.util"/>
 <model:package name="org.eclipse.wst.sse.ui.contentproperties.ui"/>
 <model:package name="org.eclipse.wst.sse.ui.extensions"/>
 <model:package name="org.eclipse.wst.sse.ui.registry"/>
 <model:package name="org.eclipse.wst.sse.ui.view.events"/>
 <model:package name="org.eclipse.wst.sse.ui.openon"/>
 <model:package name="org.eclipse.wst.sse.ui.format"/>
 <model:package name="org.eclipse.wst.sse.ui.preferences"/>
 <model:package name="org.eclipse.wst.sse.ui.registry.embedded"/>
 <model:package name="org.eclipse.wst.sse.ui.extensions.openon"/>
 <model:package name="org.eclipse.wst.sse.ui.text"/>
 <model:component-depends unrestricted="true"/>
</model:component>

wst.xml:
<?xml version="1.0" encoding="UTF-8"?>
<component xmlns="http://eclipse.org/wtp/releng/tools/component-model"; name="wst.xml">
 <component-depends unrestricted="false">
   <component-ref name="wst.sse"/>
 </component-depends>
 <plugin id="org.eclipse.wst.xml.core" fragment="false"/>
 <plugin id="org.eclipse.wst.xml.ui" fragment="false"/>
</component>

In both of the component-use.xml files no usage was identified.

Do I do something wrong ?

regards
 Jens Lukowski

Arthur Ryman wrote:

>
> Jeffrey Liu has published a Web page that describes the new API
> Scanner[1]. Please review this and send your comments to this list.
>
> [1] http://eclipse.org/webtools/development/apiscanner/apiscanner.html
>
> Arthur Ryman,
> Rational Desktop Tools Development
>
> phone: +1-905-413-3077, TL 969-3077
> assistant: +1-905-413-2411, TL 969-2411
> fax: +1-905-413-4920, TL 969-4920
> mobile: +1-416-939-5063, text: 4169395063@xxxxxxx
> intranet: http://labweb.torolab.ibm.com/DRY6/


_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/wtp-dev




Back to the top