Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
XML列排序_Xml_Sorting_Hudson - Fatal编程技术网

XML列排序

XML列排序,xml,sorting,hudson,Xml,Sorting,Hudson,嗨,我目前正在使用一个验证工具来比较Control-M手动生成的数据(称为“基线”)和Control-M通过Hudson代理生成的数据(称为“回归”)的数据精度和完整性 下面是verification-job-sort.xml中的代码,我需要先在基线数据表和回归数据表之间对其进行排序 下面这个是基线部分。其中 是我们放置列号的地方。我尝试过,0,1,2/etc,但它没有对表中的数据进行排序 <bean id="baseline_file49_sortingTasklet"

嗨,我目前正在使用一个验证工具来比较Control-M手动生成的数据(称为“基线”)和Control-M通过Hudson代理生成的数据(称为“回归”)的数据精度和完整性

下面是verification-job-sort.xml中的代码,我需要先在基线数据表和回归数据表之间对其进行排序

下面这个是基线部分。其中

是我们放置列号的地方。我尝试过,0,1,2/etc,但它没有对表中的数据进行排序

    <bean id="baseline_file49_sortingTasklet" 
            class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.FlatFileSortingTasklet"> 
            <property name="inputFilePath" value="D:\WR_BART\DRR\Baseline\CDM_DRR_MI_IP_MTM.${Baseline}.csv"/> 
            <property name="tmpDirPath" value="D:\WR_BART\DRR\Baseline\tmp"/> 
            <property name="outputDirPath" value="D:\WR_BART\DRR\Baseline\tmp"/> 
            <property name="linesToSkip" value="0"/> 
            <property name="overwriteIfOutputFileExists" value="true"/> 
            <property name="partitionSizeInMB" value="384"/> 

            <property name="comparator"> 
                    <bean class="com.hsbc.gbm.grt.bart.regression.verification.file.DelimitedLineComparator"> 
                            <constructor-arg value=""/> 
                            <constructor-arg value=","/> 
                    </bean> 
            </property> 
</bean>

下面是回归部分。和上面一样,我也试过了

    <bean id="regression_file49_sortingTasklet" 
            class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.FlatFileSortingTasklet"> 
            <property name="inputFilePath" value="D:\WR_BART\DRR\Regression\CDM_DRR_MI_IP_MTM.${Regression}.csv"/> 
            <property name="tmpDirPath" value="D:\WR_BART\DRR\Regression\tmp"/> 
            <property name="outputDirPath" value="D:\WR_BART\DRR\Regression\tmp"/> 
            <property name="linesToSkip" value="0"/> 
            <property name="overwriteIfOutputFileExists" value="true"/> 
            <property name="partitionSizeInMB" value="384"/> 

           <property name="comparator"> 
                    <bean class="com.hsbc.gbm.grt.bart.regression.verification.file.DelimitedLineComparator"> 
                            <constructor-arg value=""/> 
                            <constructor-arg value=","/> 
                    </bean> 
            </property> 
</bean>

下面的代码来自文件verification-spec.xml,排序完成后,该文件将比较基线和回归之间的数据。我已尝试在

但还是不行

    <bean id="file49_bean"
        class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.item.file.DualCSVFileVerifier"
        parent="outputParentDualCSVFileVerifier">
        <property name="referenceResource" value="CDM_DRR_MI_IP_MTM.${Baseline}_sorted.csv"/>
        <property name="testResource" value="CDM_DRR_MI_IP_MTM.${Regression}_sorted.csv"/>

        <property name="linesToSkip" value="0" />            
        <property name="fieldDelimiter" value="," />

</bean>

我已经使用Hudson运行了验证工具,但是文件之间仍然存在差异。我已经手动检查了数据,但没有正确排序。验证过程工作正常,但排序工作不正常

如果我没有提到什么或你需要知道的事情,请告诉我