diff command line

Having trouble installing Oxygen? Got a bug to report? Post it all here.
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

diff command line

Post by rparree »

Hi,

How do you start the diff tools with command line arguments (e.g, the two files or directories you want to compare). I need to use these tools in conjunction with SVN.


tx.,
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi,

Starting with Oxygen version 6.1 this is possible.
In the Oxygen installation folder there are 2 executable shells (diffFiles.bat and diffDirs.bat if running on Windows)
You can give one or two command line arguments to each of the shells.

Eg: To start diff between 2 directories

Code: Select all

diffDirs.bat "c:\Program Files" "c:\ant"
Notice that if there are spaces in the path names, the paths need to be surrounded by quotes. Also one argument can be missing in which case the second directory will be chosen manually by the user.

The same goes for the files diff utility as well.

Hope this helps.
Regards, Radu.
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

Post by rparree »

Tx.,

However it doesn't work. I looked into the batch file as well and the comment line arguments are also not passed on to the Java Command:

Code: Select all

java -Dcom.oxygenxml.app.descriptor=ro.sync.diff.ui.DiffDirectoriesMainFrameDescriptor -Xmx180m -cp %CP% ro.sync.exml.Oxygen
I tried to put %1 and %2 in the batch file but it also doesn't work.

btw: this is from my Oxygen 6.1 directory.

Any suggestions?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

I think you are using version 6.1. Please install version 6.1.1, the latest version available on the Download page and you will have the %1 and %2 parameters in the script file:

Code: Select all

java  -Xmx180m -Dcom.oxygenxml.app.descriptor=ro.sync.diff.ui.DiffFilesMainFrameDescriptor -cp %CP% ro.sync.exml.Oxygen %1 %2
Best Regards,
Sorin
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

Post by rparree »

Thanks!

That did the trick.
Post Reply