Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-392

Add proper schema declaration headers to job xml and batch xml files

    Details

      Description

      Some job xml files do not contain the complete schema declaration, which has caused warnings in IDE. Some IDE (e.g., IntelliJ) underlines these as error and cannot perform xml element/attribute completion.

      Note that these job xml files in their current form are completely valid, and are quite concise. The purpose of this task is to make them more tool-friendly and more descriptive.

      An example of such a complete job xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <job id="cassandraInject" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd"
           version="1.0">
          <step id="cassandraInject.step1">
              <chunk>
                  <reader ref="cassandraItemReader">
                      <properties>
                          <property name="cql" value="#{jobParameters['cql']}"/>
                          <property name="beanType" value="#{jobParameters['beanType']}"/>
                      </properties>
                  </reader>
                  <writer ref="mockItemWriter"/>
              </chunk>
          </step>
      </job>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: