Announcement Announcement Module
Collapse
No announcement yet.
Batch namespace completion/validation support in Eclipse Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch namespace completion/validation support in Eclipse

    It doesn't seem that the XSD is up on the spring site yet - does anyone know how to enable code completion/validation in XML against the Batch 2.0.0.M4 XSD? I tried messing with entries in the Eclipse XML Catalog, but couldn't get it to correctly configure.

    Thanks,

    D.

  • #2
    Preferences -> (Web and) XML -> XML Catalog
    Add...

    1)
    location=spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd
    key type=Namespace Name
    key=http://www.springframework.org/schema/batch

    2)
    location=spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd
    key type=Schema Location
    key=http://www.springframework.org/schema/batch/spring-batch-2.0.xsd

    Comment


    • #3
      Hi,

      Even after adding as specified below , i still see eclipse unable to recognize job tag in xml



      Regards,
      cvuk

      Comment


      • #4
        This is also failing for me. I can enter the values and Eclipse seems to be happy with them, but I never get any indication they are used when editing the XML.

        FYI - I do have Spring IDE installed into Eclipse

        Comment


        • #5
          The settings that Dan gave only work if the xsd is in your worskspace, so you have to pull if out of the core jar and paste it into a project.

          Comment

          Working...
          X