Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6487

Synergy 7.1 CLI appends whitespace characters to output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • synergy-plugin
    • None
    • Windows

      The Command Line Interface to Synergy 7.1 appends additional whitespace characters to the command results. This additional whitespace causes issues when the command results are compared to hardcoded strings such as in the isStaticProject() method in the SynergySCM class.

      I compiled the trunk with a quick change to the Commands.java source file to solve this issue. The change is as follows:
      On line 203, I changed "command.parseResult(output);" to "command.parseResult(output.trim());"
      to remove the trailing whitespace from the command result.

      I haven't much time to look at the code of the entire plugin, and haven't used Java in many years, so there will likely be a better solution
      However this was a quick fix that allowed me to get this plugin up and running and should point someone in the right direction to solve the issue.

      Cheers.

            jribette jribette
            travis_p travis_p
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: