Page 1 of 1

diff command line

Posted: Tue Aug 23, 2005 12:01 pm
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.,

Posted: Wed Aug 24, 2005 8:25 am
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.

Posted: Mon Aug 29, 2005 4:43 pm
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?

Posted: Mon Aug 29, 2005 5:40 pm
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

Posted: Mon Aug 29, 2005 6:28 pm
by rparree
Thanks!

That did the trick.