Infinispan
  1. Infinispan
  2. ISPN-1844

Update online version of schema for configuration of 5.1

    Details

    • Estimated Difficulty:
      Low
    • Similar Issues:
      Show 10 results 

      Description

      The schema at http://www.infinispan.org/schemas/infinispan-config-5.1.xsd is not up to date.
      For example, it's missing any reference to the valid element stateTransfer.

        Issue Links

          Activity

          Hide
          Galder Zamarreño
          added a comment -
          [19:21]  <galderz>   os.chdir("%s/target/distribution/infinispan-%s/etc/schema" % (base_dir, version))
          [19:21]  <galderz> ./target/distribution/infinispan-5.1.1.FINAL/etc/infinispan-5.1.xsd:            <xs:element name="stateTransfer" minOccurs="0">
          [19:22]  <galderz> the schema is no longer under schema/ dir
          Show
          Galder Zamarreño
          added a comment - [19:21] <galderz> os.chdir( "%s/target/distribution/infinispan-%s/etc/schema" % (base_dir, version)) [19:21] <galderz> ./target/distribution/infinispan-5.1.1.FINAL/etc/infinispan-5.1.xsd: <xs:element name= "stateTransfer" minOccurs= "0" > [19:22] <galderz> the schema is no longer under schema/ dir
          Hide
          Galder Zamarreño
          added a comment -
          1. schema/ folder no longer in use
          2. maintain old schema name, so rename ./core/src/main/resources/infinispan-5.1.xsd to ./core/src/main/resources/infinispan-config-5.1.xsd
          3. verify that the old JAXB schema generation is no longer being executed at release time
          Show
          Galder Zamarreño
          added a comment - schema/ folder no longer in use maintain old schema name, so rename ./core/src/main/resources/infinispan-5.1.xsd to ./core/src/main/resources/infinispan-config-5.1.xsd verify that the old JAXB schema generation is no longer being executed at release time
          Hide
          Galder Zamarreño
          added a comment -

          The online schema has been replaced, so it's now a matter of sorting out the release script.

          Btw, utils.py shows:

            print "Verifying build"
            # Check contents of XSD in core/target/classes/schema/infinispan-config-{VMajor.VMinor}.xsd
            fn = "core/target/classes/schema/infinispan-config-%s.%s.xsd" % ('5', '0')
            if os.path.isfile(fn):
          	f = open(fn)
          	xsd = f.read()
          	f.close()
          	xsd.find("urn:infinispan:config:5.0")

          That should go since we don't generate the schema any more, so there's no need to verify it.

          Show
          Galder Zamarreño
          added a comment - The online schema has been replaced, so it's now a matter of sorting out the release script. Btw, utils.py shows: print "Verifying build" # Check contents of XSD in core/target/classes/schema/infinispan-config-{VMajor.VMinor}.xsd fn = "core/target/classes/schema/infinispan-config-%s.%s.xsd" % ('5', '0') if os.path.isfile(fn): f = open(fn) xsd = f.read() f.close() xsd.find( "urn:infinispan:config:5.0" ) That should go since we don't generate the schema any more, so there's no need to verify it.

            People

            • Assignee:
              Galder Zamarreño
              Reporter:
              Sanne Grinovero
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: