Friday, August 27, 2010

0.6.6 allows composing plans from multiple files

It's fairly common to have information needed for a plan that you would like to reuse across multiple plans. For instance, if you are diff'ng DB sources, it would be nice to isolate the DB connection information to one file that could be reused across different comparisons.

0.6.6 now allows this via the -planfiles argument. -planfiles can take as a value either a single file name or multiple comma separated file names. It then composites the files to create a single plan. Here's an example:

 joe$ java -jar diffkit-app.jar -planfiles test3.plan.xml,sources.xml  

file: test3.plan.xml
...
      <bean id="plan" class="org.diffkit.diff.conf.DKPassthroughPlan">  
           <property name="lhsSource" ref="lhs.source" />  
           <property name="rhsSource" ref="rhs.source" />  
           <property name="sink" ref="sink" />  
           <property name="tableComparison" ref="table.comparison" />  
      </bean>  

file: sources.xml
...
      <bean id="rhs.source" class="org.diffkit.diff.sns.DKFileSource">  
           <constructor-arg index="0"  
                value="./test3.rhs.csv" />  
           <constructor-arg index="1" ref="lhs.table.model" />  
           <constructor-arg index="2">  
                <null />  
           </constructor-arg>  
              <constructor-arg index="3">  
                <null />  
              </constructor-arg>  
              <constructor-arg index="4" value="\," />  
              <constructor-arg index="5" value="true" />  
              <constructor-arg index="6" value="true" />  
      </bean>  

Note that the bean id="rhs.source" is nowhere defined in the file test3.plan.xml. It's only defined in the file sources.xml

12 comments:


  1. شركة نقل عفش من الدمام الى الرياض شركة نقل عفش من الدمام الى الرياض
    ارخص شركة نقل عفش بمكة ارخص شركة نقل عفش بمكة
    شركة نقل عفش من جدة الى الاردن شركة نقل عفش من جدة الى الاردن
    شركة نقل عفش من الرياض الى مصر شركة نقل عفش من الرياض الى مصر
    شركة نقل عفش بالدمام شركة نقل عفش بالدمام
    شركة نقل عفش بالاحساء شركة نقل عفش بالاحساء
    نقل عفش داخل مكة نقل عفش داخل مكة


    ReplyDelete
  2. شرکت تلکا هاست پیشرو در میزبانی انواع وب سایت و هم چنین دارای انواع خرید هاست ارزان با کنترل پنل سی پنل میباشد.حتما از سایت ما دیدن کنید و از قیمت های مناسب برای انواع سرویس های وب و ثبت انواع دامنه شگفت زده شوید.

    ReplyDelete
  3. Infycle Technologies, one of the topmost software training institutes in Chennai offers excellent AWS Training in Chennai | Infycle Technologies ​for freshers and students, and Tech Professionals of any field. Other demanding courses such as Digital Marketing, Java, Python, Hadoop, Selenium, Big Data, AWS, Android, and iOS Development will also be trained with complete hands-on training. After the completion of training, the students will be sent for placement interviews in the core MNC's. Dial 7504633633 to get more info and a free demo

    ReplyDelete
  4. It's genuinely normal to have data required for an arrangement that you might want to reuse across different plans. For example, assuming Write My Assignments you are diff'ng DB sources, it would be great to segregate the DB association data to one document that could be reused across various correlations.

    ReplyDelete
  5. buy views for youtube As an SEO geek, I've dabbled a lot with back-linking procedures for getting to the top of Google. But I've recently realized what I'd been doing for the past year can be magnified ten fold by using an easy linking strategy that includes YouTube Exposure. I've outlined specific strategies to use here, especially for the YouTube newbie, because we all aren't "born actors" with an automatic knack for YouTube. So here's your strategy for getting to the top of Google...

    ReplyDelete
  6. https://twitchviral.com/ Car games come with in all types and sizes. Gaming companies are constantly renovating their game strategies to find better and bigger buyers for their products. With action and war games attaining new levels of popularity, car game manufacturers are trying equally hard to keep up with the market standards. Some of the popular car game categories are listed below.

    ReplyDelete
  7. Good evening guys! Our website https://essaysrescue.com/homeworkmarket-review/ features a section of reviews from students we have helped in the past. These are all genuine reviews that show that our essay writing service is recommended for students, by students.

    ReplyDelete