-
Bug
-
Resolution: Unresolved
-
Major
-
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.