VirtualBox

Changeset 18856 in vbox


Ignore:
Timestamp:
Apr 9, 2009 5:22:07 PM (16 years ago)
Author:
vboxsync
Message:

SDK: missed resource versioning

Location:
trunk/src/VBox/Main/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r18801 r18856  
    634634                $(VBOXWEB_JAVALIB)/gen15:$(VBOX_JAXWS_LIBDIR)/jaxws-api.jar:$(VBOX_JAXWS_LIBDIR)/lib/jaxb-api.jar:$(VBOX_JAXWS_LIBDIR)/jsr181-api.jar \
    635635                $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java  -d  $(VBOXWEB_JAVALIB)/gen15
    636         $(QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15/
    637         $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen15/
     636        $(SED) -e "s/vboxweb.wsdl/vboxweb$(VBOX_API_SUFFIX).wsdl/" <  $(VBOXWEBSERVICE_WSDL) > $(VBOXWEB_JAVALIB)/gen15/vboxwebService$(VBOX_API_SUFFIX).wsdl
     637        $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen15/vboxweb$(VBOX_API_SUFFIX).wsdl
    638638        $(QUIET)$(RM) -f  $(VBOXWEB_JAVALIB)/gen15/*.java
    639         $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15
    640639        $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen15 .
    641640
     
    648647        $(QUIET)$(VBOX_JAVAC16) -cp $(VBOXWEB_JAVALIB)/gen16 \
    649648                $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java  -d  $(VBOXWEB_JAVALIB)/gen16
    650         $(QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16/
    651         $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen16/
     649        $(SED) -e "s/vboxweb.wsdl/vboxweb$(VBOX_API_SUFFIX).wsdl/" <  $(VBOXWEBSERVICE_WSDL) > $(VBOXWEB_JAVALIB)/gen16/vboxwebService$(VBOX_API_SUFFIX).wsdl
     650        $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen16/vboxweb$(VBOX_API_SUFFIX).wsdl
    652651        $(QUIET)$(RM) -f  $(VBOXWEB_JAVALIB)/gen16/*.java
    653         $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16
    654652        $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen16 .
    655653
  • trunk/src/VBox/Main/webservice/glue-jaxws.xsl

    r18694 r18856  
    4242<xsl:variable name="G_virtualBoxPackage" select="concat('org.virtualbox',$G_vboxApiSuffix)" />
    4343<xsl:variable name="G_virtualBoxPackage2" select="concat('com.sun.xml.ws.commons.virtualbox',$G_vboxApiSuffix)" />
     44<xsl:variable name="G_virtualBoxWsdl" select="concat(concat('&quot;vboxwebService',$G_vboxApiSuffix), '.wsdl&quot;')" />
    4445
    4546<xsl:include href="websrv-shared.inc.xsl" />
     
    485486 </xsl:call-template>
    486487
    487  <xsl:text><![CDATA[
     488
    488489import java.net.URL;
    489490import java.math.BigInteger;
     
    499500class PortPool
    500501{
     502    private final static String wsdlFile = <xsl:value-of select="$G_virtualBoxWsdl" />;
     503
     504 <xsl:text><![CDATA[
    501505    private Map<VboxPortType, Integer> known;
    502506    private boolean initStarted;
    503     private VboxService svc;
     507    private VboxService svc;   
    504508
    505509    PortPool(boolean usePreinit)
     
    559563        {
    560564            if (svc == null) {
    561                 URL wsdl = PortPool.class.getClassLoader().getResource("vboxwebService.wsdl");
     565                URL wsdl = PortPool.class.getClassLoader().getResource(wsdlFile);
    562566                if (wsdl == null)
    563                     throw new LinkageError("vboxwebService.wsdl not found, but it should have been in the jar");
     567                    throw new LinkageError(wsdlFile+" not found, but it should have been in the jar");
    564568                svc = new VboxService(wsdl,
    565569                                      new QName("http://www.virtualbox.org/Service",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette