Announcement

Collapse
No announcement yet.

browser plugin or using BC in a browser?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • browser plugin or using BC in a browser?

    Does BC provide for a means to run a file compare in a browser window? Firefox, MSIE?

    At present I'm running a Java Servlet based (Tomcat) Testsuite which runs a diff on two files on the server side, then converts this to HTML and displays the result in a browser window (frame).

    Could that be done with BC also, e.g. "html"-lize the result, or better, providing some means of interaction?

    --
    Christoph

  • #2
    Hello,

    Beyond Compare doesn't have the built-in interface to run as an html app, but it can generate HTML reports using automated script. This script is run as a command line application that can pass in parameters, such as:
    bcompare.exe "@c:\script.txt" "c:\folder1parameter" "c:\folder2parameter"

    Where the locations can then be accessed in script with %1 and %2. If your applet can generate and run this command line, you could pass in the parameters, for example. A more complicated applet could even dynamically generate the contents of the script.txt file before running it.

    Is this the type of interaction you are looking for?

    Please also review your current BC3 license to make sure you aren't going over your user limit. See the "Per-User License Key" section.
    http://www.scootersoftware.com/shop.php?zz=kb_license
    Aaron P Scooter Software

    Comment


    • #3
      And not to forget:
      BC is also able to load files via http-method.

      Simply try to put an URL like http://www.google.com in any file compare, and the HTML-sourcecode will get loaded ...

      Bye
      Christoph

      Comment


      • #4
        Originally posted by Aaron View Post
        Hello,
        ...
        bcompare.exe "@c:\script.txt" "c:\folder1parameter" "c:\folder2parameter"

        Where the locations can then be accessed in script with %1 and %2. If your applet can generate and run this command line, you could pass in the parameters, for example. A more complicated applet could even dynamically generate the contents of the script.txt file before running it.

        Is this the type of interaction you are looking for?

        Please also review your current BC3 license to make sure you aren't going over your user limit. See the "Per-User License Key" section.
        http://www.scootersoftware.com/shop.php?zz=kb_license
        Thanks. That would be a possible solution.

        Interesting that you are bringing up the licensing issue. I didn't think of that point in the first place.

        Situation:

        I have a webapp that I'm using in the company's intranet. That webapp is a Testsuite that does a compare between the output of the current and the previous version of a product.

        So in this case bcompare.exe would run on the server invoked by the webapp.

        The output can be viewed by a couble of people, but initiated is the compare
        only once by the webapp, when the release is compared to the previous release, to see if there are any differences in program output.

        Would that be conformant with a single user license?

        --
        Christoph

        Comment


        • #5
          Originally posted by Aaron View Post
          Hello,

          Beyond Compare doesn't have the built-in interface to run as an html app, but it can generate HTML reports using automated script. This script is run as a command line application that can pass in parameters, such as:
          bcompare.exe "@c:\script.txt" "c:\folder1parameter" "c:\folder2parameter"

          Where the locations can then be accessed in script with %1 and %2. If your applet can generate and run this command line, you could pass in the parameters, for example. A more complicated applet could even dynamically generate the contents of the script.txt file before running it.

          Is this the type of interaction you are looking for?

          Please also review your current BC3 license to make sure you aren't going over your user limit. See the "Per-User License Key" section.
          http://www.scootersoftware.com/shop.php?zz=kb_license
          I come back on your suggestion.

          Does this work min BC2 also?
          What would have to be in that script?

          --
          Christoph

          Comment


          • #6
            This rough plan would work with BC2.

            The script would depend on the actions needed. A basic script could be:
            folder-report layout:side-by-side options:display-mismatches &
            output-to:%3 output-options:html-color &
            %1 %2


            The command line for this script could be:
            bc2.exe "@c:\script.txt" "c:\folder1" "c:\folder2" "c:\logs\bclog.html"

            I would strongly suggest testing this on the basic command line before attempting to integrate it into a larger solution.
            Aaron P Scooter Software

            Comment


            • #7
              Originally posted by Krischu View Post
              So in this case bcompare.exe would run on the server invoked by the webapp.

              The output can be viewed by a couble of people, but initiated is the compare
              only once by the webapp, when the release is compared to the previous release, to see if there are any differences in program output.

              Would that be conformant with a single user license?
              Yes, in this case we consider the server to be the "user" of Beyond Compare, so a single-user license is adequate.
              Tim T Scooter Software

              Comment

              Working...
              X