je lance la commande suivantenom du paquet inverse xjc commande
java -jar "C:\Program Files\eclipse\plugins\org.jvnet.jaxbw.eclipse_1.1.0\lib\jaxb-xjc.jar" -d src -catalog xsd\catalog.cat xsd\componentsData.xsd
XSD \ componentsData.xsd contenir les lignes suivantes:
xmlns:txtColor="com.my.company.product.jaxb.TextColor"
xmlns="com.my.company.product.jaxb.componentsData"
targetNamespace="com.my.company.product.jaxb.componentsData"
<xsd:import
schemaLocation="TextColor.xsd"
namespace="com.my.company.product.jaxb.TextColor"/>
XSD \ TextColor.xsd contiennent le
suivant<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"
xmlns="com.my.company.product.jaxb.TextColor"
targetNamespace="com.my.company.product.jaxb.TextColor"
>
c'est mon catalogue:
<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system
systemId="com.my.company.product.jaxb.TextColor.TextColor.xsd"
uri="TextColor"/>
et mes fichiers ont été générés dans le chemin suivant - L'ORDRE EST INVERSE POURQUOI?: componentsData.jaxb.product.company.my.com
et
TextColor.jaxb.product.company.my.com
si j'ajouter les fichiers d'argument suivant mais j'ai généré dans le droit mais pour l'catalog.cat ne semble pas être pris en considération
-p com.my.company.product.jaxb.componentsData
OK, je suis la réponse, je devais utiliser fichier de liaison. Mais est-ce possible de le faire lancer xjc eclipse plugin. Je ne peux pas poster la réponse maintenant - donc je l'afficherai plus tard. – davidbobo