This task runs a complete comparison of an API profile relative to a baseline.
The name of the Ant task is: apitooling.compare. To be used, the jar file apitooling-ant.jar has to be on the Ant
classpath.
<apitooling.compare baseline="..." profile="..." report="..." excludelist="..." includelist="..." components="..." visibility="..." debug="..." />
| Kenmerk | Beschrijving | Verplicht |
| baseline | Dit kenmerk geeft de locatie van de desbetreffende basislijn aan.
Dit kan een bestand met de extensie zip, jar, tgz of tar.gz zijn, maar ook een directory die correspondeert met de Eclipse-installatiemap. Dit is de directory waarin het uitvoerbare Eclipse-bestand is opgeslagen. De locatie wordt opgegeven als absoluut pad. |
Yes |
| profile | Dit kenmerk geeft de locatie aan van het huidige product of profiel dat u wilt vergelijken met de basislijn.
Dit kan een bestand met de extensie zip, jar, tgz of tar.gz zijn, maar ook een directory die correspondeert met de Eclipse-installatiemap. Dit is de directory waarin het uitvoerbare Eclipse-bestand is opgeslagen. De locatie wordt opgegeven als absoluut pad. |
Yes |
| report | Set the output location where the report will be generated.
Once the task is completed, the report called "compare.xml" is available in this directory. De locatie wordt opgegeven als absoluut pad. |
Yes |
| excludelist | Instelling van de locatie van de uitsluitingslijst.
The exclude list location specifies a text file listing bundles to be excluded from the analysis. By default all bundles in the profile are analyzed. The include and exclude list attributes can be used to selectively include and exclude bundles. The include list seeds the set of bundles to be analyzed (when omitted, all bundles are included), and the exclude list is then applied. Each line of the file specifies one of:
De locatie wordt opgegeven als absoluut pad. Following is an example exclude list: # DOC BUNDLES org.eclipse.jdt.doc.isv org.eclipse.jdt.doc.user org.eclipse.pde.doc.user org.eclipse.platform.doc.isv org.eclipse.platform.doc.user # NON-ECLIPSE BUNDLES com.ibm.icu com.jcraft.jsch javax.servlet javax.servlet.jsp # Exclude all pde bundles R:org\.eclipse\.pde\..* ...The exclude list can contain regular expressions if the line starts with "R:". |
No |
| includelist | Set the include list location.
The include list location specifies a text file listing bundles to be included in the analysis. By default all bundles in the profile are analyzed. The include and exclude list attributes can be used to selectively include and exclude bundles. The include list seeds the set of bundles to be analyzed (when omitted, all bundles are included), and the exclude list is then applied. Each line of the file specifies one of:
De locatie wordt opgegeven als absoluut pad. Following is an example include list: # DOC BUNDLES org.eclipse.jdt.doc.isv org.eclipse.jdt.doc.user org.eclipse.pde.doc.user org.eclipse.platform.doc.isv org.eclipse.platform.doc.user # NON-ECLIPSE BUNDLES com.ibm.icu com.jcraft.jsch javax.servlet javax.servlet.jsp # Exclude all pde bundles R:org\.eclipse\.pde\..* ... |
No |
| debug | Instellen van de foutopsporingswaarde.
De mogelijke waarden zijn true en false.
De standaardwaarde is false. |
No |
| components | Set the components' list location.
The components' list contains all the components' names that must be compared. If omitted, all components from the given baseline are compared. De locatie wordt opgegeven als absoluut pad. The format of the components' list file looks like this: # DOC BUNDLES org.eclipse.jdt.doc.isv org.eclipse.jdt.doc.user org.eclipse.pde.doc.user org.eclipse.platform.doc.isv org.eclipse.platform.doc.user # Include all pde bundles R:org\.eclipse\.pde\..* ...The components' list can contain regular expressions if the line starts with "R:". |
No |
| visibility | Set the visibility value.
The possible values are: API, ALL
Default is API.
|
No |
<apitooling.compare baseline="D:\eclipse\3.4.1\eclipse" profile="D:\eclipse-SDK-I20081118-0800-linux-gtk.tar.gz" report="D:\reports\xml" excludelist="D:\exclude_list_external.txt" debug="true" />
This will run the task creating compare.xml files inside the folder D:\reports\xml.
De uitsluitingslijst wordt gebruikt om het aantal te rapporteren problemen te verminderen.
Omdat de foutopsporing is ingeschakeld, zijn er enige foutopsporingsgegevens te zien in de ant-console.

Ant-taak API blokkeren
Ant-taak Bestanden genereren
API Use Ant Task
Ant-taak Analyserapport converteren
Ant-taak API-blokkeringsrapport converteren
Ant-taak API-gebruiksrapport converteren
Ant-taak API-depreciëringsrapport converteren