Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.nikolavp.approval.reporters;
  
  /*
   * #%L
   * com.github.nikolavp:approval-core
   * %%
   * Copyright (C) 2014 Nikolavp
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  *      http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 
 
 
 import java.io.File;

Reporters that use windows specific binaries, i.e. the programs that are used are not cross platform.

If you are looking for something cross platform like gvim, emacs, you better look in Reporters.

 
 public final class WindowsReporters {
     private WindowsReporters() {
 
     }

    
Windows executable reporters should use this class instead of the more general ExecutableDifferenceReporter.
 
     public static class WindowsExecutableReporter extends ExecutableDifferenceReporter {

        
Main constructor for the executable reporter.

Parameters:
approvalCommand the approval command
diffCommand the difference command
 
         public WindowsExecutableReporter(String approvalCommandString diffCommand) {
             super(approvalCommanddiffCommand);
         }
 
         @Override
         public boolean canApprove(File fileForApproval) {
             return super.canApprove(fileForApproval) && CrossPlatformCommand.isWindows();
         }
     }
 
     private static final Reporter NOTEPAD_PLUS_PLUS = SwingInteractiveReporter.wrap(new WindowsExecutableReporter("cmd /C notepad++""cmd /C notepad++") {
         @Override
         protected String[] buildApproveNewCommand(File approvalDestinationFile fileForVerification) {
             return new String[] {getApprovalCommand(), approvalDestination.getAbsolutePath()};
         }
     });
     private static final ExecutableDifferenceReporter BEYOND_COMPARE = new WindowsExecutableReporter("cmd /C BCompare""cmd /C BCompare");
     private static final ExecutableDifferenceReporter TORTOISE_IMAGE_DIFF = new WindowsExecutableReporter("cmd /C TortoiseIDiff""cmd /C TortoiseIDiff");
     private static final ExecutableDifferenceReporter TORTOISE_TEXT_DIFF = new WindowsExecutableReporter("cmd /C TortoiseMerge""cmd /C TortoiseMerge");
     private static final ExecutableDifferenceReporter WIN_MERGE = new WindowsExecutableReporter("cmd /C WinMergeU""cmd /C WinMergeU");

    
A reporter that calls notepad++ to show you the results.

Returns:
a reporter that calls notepad++
 
     public static Reporter notepadPlusPlus() {
         return ;
     }

    
A reporter that calls Beyond Compare 3 to show you the results.

Returns:
a reporter that calls beyond compare
 
     public static Reporter beyondCompare() {
         return ;
     }

    
A reporter that calls TortoiseIDiff to show you the results.

Returns:
a reporter that calls tortoise image difference tool
 
     public static Reporter tortoiseImage() {
         return ;
     }

    
A reporter that calls TortoiseMerge to show you the results.

Returns:
a reporter that calls tortoise difference tool for text
    public static Reporter tortoiseText() {
        return ;
    }

    
A reporter that calls WinMerge to show you the results.

Returns:
a reporter that calls win merge
    public static Reporter winMerge() {
        return ;
    }
New to GrepCode? Check out our FAQ X