Page 1 of 1
skipping { } difference in java, etc
Posted: Tue Apr 26, 2005 11:08 am
by bugsBunny
(using EDP 3.3 beta) can't find any indication that the Ignore options will not flag the following fragments as different (or, show them as same)
foo {
vs.
foo
{
since we have lots of coders using various combinations, it would be better if we didn't have to re-format (and then, re-re-format when diff-ing on commit to cvs).
i'm supposing that this is a long standing issue with programming folks. does EDP (or any diff program

) do this??
Posted: Tue Apr 26, 2005 12:48 pm
by bugsBunny
well, sounds like a job for PlugInMan. found the tuts, but can't find how to make the following work:
using either jacobe or jalopy, one can get a re-formatted file. jacobe does it like this:
SomeClassFile.java
is reformatted and put in
SomeClassFile.java.jacobe
in the same directory. so, using wincvs calling EDP and jacobe as the plugin, how to tell EDP that the files to be compared are:
$INPUTFILENAME.jacobe
from the local directory and repository (wincvs copies to the user's temp directory on win2K)? it isn't necessary to be able to move differences between the two files. so far, i get the identical message and can't see the files when i do Show Anyway. it seems the EDP doesn't quite know what files are what.
Posted: Tue Apr 26, 2005 5:30 pm
by psguru
Here's what you need to use for arguments:
-stdout $INPUTFILEPATH
This will redirect Jacobe output to the standard output, where EDP will pick it up from. I tested it, and it kinda works. The only problem is that, when output to stdout, Jacobe uses the following end-of-line characters for each line: 0D, 0D, 0A. This makes EDP add one blank line after each line (it treats the first 0D as the Mac-style linebreak, and the 0D, 0A as the DOS-style linebreak).
To see how EDP works correctly try the following plug-in:
App: cmd
Args: /c type $INPUTFILEPATH
Posted: Wed Apr 27, 2005 4:42 am
by bugsBunny
like a charm. cool.
Posted: Wed Apr 27, 2005 6:44 am
by bugsBunny
e-mailed the jacobe folk. there is a cfg file, and a switch
--lineterm=2
which tells it to use unix line termination. now all looks well. so long as one doesn't use jacobe standalone. but that's another episode.
Posted: Wed Apr 27, 2005 5:24 pm
by psguru
Cool. Looks like a good way to compare Java files.
Posted: Fri Apr 29, 2005 8:29 pm
by bugsBunny
i heartily recommend jacobe for java formatting. they had a workaround within an hour or so, and updated the download to deal with the odd line terms within a day.