| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.jst.common.project.facet.core" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.jst.common.project.facet.core" id="downloadableLibraries" name="Downloadable Libraries Extension Point"/> |
| </appinfo> |
| <documentation> |
| Provides a way to register libraries that can be downloaded from remote servers. This is a feature of the user library provider. |
| </documentation> |
| </annotation> |
| |
| <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| <documentation> |
| Allows importing one or more files that contain definitions of downloadable libraries. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="import-definitions" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| A fully qualified identifier of the target extension point. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| An optional identifier of the extension instance. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| An optional name of the extension instance. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="import-definitions"> |
| <annotation> |
| <documentation> |
| Imports a single file that contains definitions of downloadable libraries. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="enablement" minOccurs="0" maxOccurs="1"/> |
| </sequence> |
| <attribute name="path" type="string"> |
| <annotation> |
| <documentation> |
| The local path (within the plugin) to the definitions file. The path attribute is mutually exclusive with the url attribute. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="url" type="string"> |
| <annotation> |
| <documentation> |
| The URL of the definitions file on a remote server. The url attribute is mutually exclusive with the path attribute. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| WTP 3.1 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <p>The following example adds downloadable libraries catalog entries from a file that is located within the plugin:</p> |
| |
| <pre> |
| <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> |
| <import-definitions path="libs/catalog.xml"/> |
| </extension> |
| </pre> |
| |
| <p>The following example adds catalog entries from a file that is located on a server:</p> |
| |
| <pre> |
| <extension point="org.eclipse.jst.common.project.facet.core.downloadableLibraries"> |
| <import-definitions url="http://www.mycorp.com/libs/catalog.xml"/> |
| </extension> |
| </pre> |
| |
| <p>Here is an example definition file. Such file can be placed inside a plugin or hosted on a server. |
| Multiple libraries can be defined in a single definition file.</p> |
| |
| <pre> |
| <libraries> |
| <library> |
| <name>EclipseLink 1.0.0</name> |
| <download-provider>Eclipse Foundation</download-provider> |
| <download-url><![CDATA[http://www.eclipse.org/downloads/...]]></download-url> |
| <license-url><![CDATA[http://www.eclipse.org/legal/epl-v10.html]]></license-url>> |
| <attributes> |
| <component>eclipselink/jlib/eclipselink.jar</component> |
| <source>eclipselink/jlib/eclipselink-src.zip</source> |
| <javadoc>eclipselink/jlib/eclipselink-javadocs.zip</javadoc> |
| </attributes> |
| </library> |
| </libraries> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2008 Oracle and others.<br> |
| 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 <a |
| href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |