Linux Diff tool as External tool in Jdev to compare two files

Hi, I was looking for adding any diff tool to compare two files in Jdev. I added the usual Linux "diff <file1> <file2>" to compare two files. The way I have provided arguments compares a file against itself.
Program: diff
Arguments: ${file.name} ${file.name}
Directory: ${file.dir}
My requirement to to right click on the two files which I want to compare and the open them in any diff tool.
Any ideas?
Regards,
Ramesh

Which jdev version?
I don't see how this can be done. How do you select two files in jdev?
As you provided the same name as file1 and file2 it's clear that you compare the file to itself.
Timo

Similar Messages

  • How to compare two files in Java & uncommon text should print in Diff text

    Hi All,
    can any one help me to write a java program..
    How to compare two files in Java & uncommon text should print in Diff text file..
    Thanks
    Sam

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • Tool or script to compare two oracle Reports?

    Hi:
    Anybody knows any tool or script to compare or conciliate two Oracle reports?
    The idea is to detect the differences to impact then in the older report.
    I tried comparing each .REX with a text file comparing tool (like a Unix diff), but the differences I found were bassed in tables and fields used when we save the report to the database. The main problem using that is how to impact the differences found in the Report Builder.
    The following are 2 examples of diferences found, which I dont know how to impact them in the Reports Builder
    DEFINE ROSSTRINGS
    BEGIN
    groupid = 15453
    stringid = 0
    lfid = 0
    cs = 31
    len = 7
    str = (BINARY)
    &lt;&lt;"
    5020426f 6f6b0000
    "&gt;&gt;
    END
    DEFINE SRW2_LAYOUT
    UITAG = 18039
    HDR_CHAR_HGT = 65
    I'll thanks a lot yours suggestion or ideas.
    Sincerily, Sebastian Barbieri

    May beu2026 Business Object u2013 Crystal Reports can explain us how is a report built and how we can find the u201Cdata sourcesu201D. If it can beu2026 I will be able to make a program to compare the u201Cdata fieldsu201D in two, three, four,u2026 reports.
    It will be very useful to compare if two reports have the same u201Cdata fieldsu201D or, two directories have the same number of reports and everyone in the first folder have the consequent in the second folder.
    Of course, when I talking about folders, Iu2019m want to say two folders who contains reports but each folder have reports linked to different DBMS (Oracle, SQL Server,u2026).
    Edited by: Carles Hernández on Jan 13, 2009 5:03 PM
    Edited by: Carles Hernández on Jan 13, 2009 5:05 PM

  • API for tools that show differences  between two file in applet

    I am searching Api for tools that show differences between two data file
    that represent as bytes[] in the memory in applet .
    the applet is not sign Applet.

    I gotta it.
    File f=new File("\\\\"+"Linshuaibing"+"\\card\\DSC00134.jpg");[Thank you very much v!

  • Usage of diff tool

    I need to use the diff tool to compare two files and print only different lines from the second file. Identical lines will be ignored. Can someone help me out?
    I have been reading the manpage and experimenting for a few hours but the search does not turn out the way I expected.

    user@host ~
    $ echo "
    line1
    line2
    Line3
    linefour" > test1
    user@host ~
    $ echo "
    line1
    line2
    line3
    line4
    line5" > test2
    user@host ~
    $ diff -u test1 test2
    --- test1 2007-06-27 00:19:13.000000000 -0600
    + test2 2007-06-27 00:21:57.000000000 -0600
    @@ -1,5 +1,6 @@
    line1
    line2
    -Line3
    -linefour
    +line3
    +line4
    +line5
    user@host ~
    $ diff -u test1 test2 | grep ^+
    + test2 2007-06-27 00:21:57.000000000 -0600
    +line3
    +line4
    +line5
    ================
    Of course, you can pipe all of that into
    | grep -v "+ test2"
    to eliminate the header line as well.
    Not sure if that is what you're looking for; sorry if I grossly simplified your question.
    I'm not sure what problem you're actually trying to solve, but I imagine this concept would only be useful for identifying line edits, not line movements or more significant changes.
    Why -u on diff? just a habit for me ... I use Subversion and unified diff is its format of choice.
    If this indeed is what you're looking for you may want to research the "Unix Philosophy:" small tools designed to work together with text.
    If your trying to do something more sophisticated than what I'm assuming, sorry to point out the obvious. Perhaps you could give a more full description of your problem if this is the case.

  • V1.5.3 - 'diff' tool flags things as different when they are the same

    Using the 'diff' tool to compare databases. Resultant 'diff' script contains a lot of statements like this :
    ALTER TABLE "tabl1" MODIFY ("column1" NOT NULL ENABLE);
    .. but when i run them on the target, it tells me that the columns are already not null. No, i'm not running on the wrong db. In fact running that command on both the source and destination dbs elicits the same error :
    Error starting at line 1 in command:
    ALTER TABLE "tabl1" MODIFY ("column1" NOT NULL ENABLE)
    Error report:
    SQL Error: ORA-01442: column to be modified to NOT NULL is already NOT NULL
    01442. 00000 - "column to be modified to NOT NULL is already NOT NULL"
    *Cause:   
    *Action:
    Additionally, the 'diff' script when asked to compare functions includes the function definition in it's output. However running that on the target and then re-running the diff still flags that function as different.

    Further, i had a table defined in both db, same columns different column lenght :
    CREATE TABLE CDB_R_FIRMS_ADDRESSES
    INT_FIRM_ID INTEGER NOT NULL,
    ADDRESS_UUID VARCHAR2*(50 CHAR)* NOT NULL,
    ADDRESS_TYPE INTEGER NOT NULL
    CREATE TABLE CDB_R_FIRMS_ADDRESSES
    INT_FIRM_ID NUMBER NOT NULL,
    ADDRESS_UUID VARCHAR2*(200 BYTE)* NOT NULL,
    ADDRESS_TYPE NUMBER NOT NULL
    .. and 'diff' failed to spot the difference! If 'diff' does not consider '50 char' different to '200 byte', what does it consider a difference ?Am i not using 'diff' as it was intended ?

  • DW: Diff tools for Windows Users?

    Hi,
    I was making some changes to a few pages and saw the option to compare files. Then it said I needed a third-party diff tool in order to use this function. I went to preferences and saw where I could add this and started looking through the help files. It says to google diff or file comparison tools. I have been searching for an hour now and I only managed to find 3 programs for MAC users. Some of the sites I found said you need a third-party program/tool...same as Adobe's help info...a lot o help that is LOL. And a lot of this stuff is from 2003 and 2005...I am sure there are people in 2011 using these things?!
    Are there some you know of that work on the Windows systems? I have Windows XP Pro 32-bit at this time.
    Thanks for anyone's help.

    I was looking this up with several different terms/orders and it was not giving me appropriate results. And yes, sometimes I swear these search engines are broken.
    #1 I am a firm believer in, "If you don't know, look it up!" And that includes my old dictionary sitting right here next to me on my bookshelf.
    #2 I will look high and low for answers and for whatever reason, a specific word combination made the entire difference between searches. I find this amusing,
        because sometimes one can type in the exact word search and still come up with other bologna.
    #3 I am brand new to Adobe and from day 1 I had issues with known bugs, so after 2-3 months I am out of the gates and running and trying to learn
        as much as I can about this stuff before this fall. I am working on learning PHP, MySQL, and Apache before my fall classes and rather than just
        give up with something I came here, where Adobe assures me I can get answers on all my questions because everyone is so "friendly and helpful"?!
    #4 As you can see, I have not flooded these forums with all my "stupid" questions...but I could certainly change that.
    I hate asking others for help, and that first line of yours, including that quaint little video, is the very reason! [Personal comments deleted by moderator]
    Well aside from your [deleted] tone, I went ahead and gave you a vote for your answer.
    Thank you [deleted by moderator]

  • Web Dynpro Diff tool

    Hi,
    Currently, i'm getting started with the modification of the ESS using Web DynPro. According to the instruction in both JDI and NWDI cookbok, i will need to use Web DynPro diff tool to compare new SP and modified version of the older SP. Where do i find the Web DynPro diff tool? A learning material on how to use it would be very helpful. Thanks.
    julius

    Hi Julius,
    Check this Link, this will be helpfull,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0314e07-4df0-2910-71a0-b6457a1672b6
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/371ad7e4-0601-0010-1db0-bfbb584f3acf
    Regards,
    Arun

  • NCL 1.2 on OpenSUSE 10.2 problems (3): Incompatibility with Linux RCS tools

    I have an RCS repository that lives on a NetWare 6.5 server that I'd
    like to be able to maintain with the Linux RCS tools via NCL. In fact,
    that's the major reason for me installing the NCL. So, with the caveat
    that it's NCL 1.2 on OpenSUSE 10.2, following Loki's instructions to get
    it installed, this seems like something that should work, but doesn't.
    Getting access to the files themselves is no problem. That much works. I
    can use rlog to view the checkin comments log ok, so basic access to the
    files is working. What doesn't work is updates or changes.
    It looks like RCS' tools make changes to the files by making a new file,
    then deleting the current one and renaming the new one in its place. So
    for a file named bob.xml, the RCS repository file is RCS/bob.xml. A new
    version of bob.xml being checked in involves making a new RCS/bob.xm_
    file with the changes in it (this works), then removing RCS/bob.xml
    (this fails), and renaming RCS/bob.xm_ to RCS/bob.xml (this also fails).
    Now if I go to the bash command line and perform these same operations,
    I can do them. So they can be done, just not by RCS' tools.
    RCS is v5.7-898 installed from YaST.
    Has anybody else tried this before and got it working? Bug in RCS? Bug
    in NCL? Any suggestions for getting it working, or at least something to
    test or try to figure out why not?
    David Gersic dgersic_@_niu.edu
    I'm tired of receiving rubbish in my mailbox, so the E-mail address is
    munged to foil the junkmail bots. Humans will figure it out on their own.

    David,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Any diff-like tools for comparing two .vcf (vcard) files?

    Hi all,
    I'm used to keeping contact information backups in .csv form, its just much simpler to parse with sed/awk etc., I have a small home-cooked script to move fields around between Evolution .csv files and JPilot .csv files such that they match (brittle, but worked for me).
    Current Evolution doesn't seem to support csv output anymore, though, and to be honest the brittle-ness of having to hard-code in my scripts which column in the csv was what data always stung a bit. Evolution DOES output vcards, as does J-Pilot. Unfortunately, parsing vcards with sed/awk and the like promises to be real headache-inducing.
    Basically, has anyone heard of tools for comparing .vcf files? Sort of like diff (which works line-by-line on text) but working element by element on .vcf files.

    Daenyth wrote:
    http://search.cpan.org/dist/Text-vCard/ … essbook.pm
    Write one?
    Was afraid the answer was gonna be that.

  • Diff tool - Bug with comments not escaped

    Diff tool in version 3.1.07
    I have a new table that includes comments on the columns. Some of those comments have single quotes in them like in the words "don't" or "user's". The diff script is not escaping those quotes in the CREATE TABLE DDL so the DDL fails.
    Another issue is that semicolons are not placed at the end of CREATE OR REPLACE FORCE VIEW statements.
    Edited by: EdInWisconsin on Feb 13, 2012 8:39 AM

    Found another issue:
    Forward slashes not placed at end of statements to create/replace packages or procedures. This caused several of my procs to run together and was pretty obvious once it happened but easy to miss when reviewing the script and obviously caused problems.

  • SQL DEV DIFF TOOL : OMITS OBJECT IDENTIFIER CLAUSE

    Hi,
    The following is encountered in SQLDeveloper 3.2.20.09 where using Tools > Database Diff... results in DDL that omits the "OBJECT IDENTIFIER IS PRIMARY KEY" clause.
    Test SQL:
    create type dummy_typ as object
      id_num    integer,
      other_num integer
    create table dummy_otbl of dummy_typ
      constraint dummy_otbl_pk primary key ( id_num ) using index
      object identifier is primary key;
    When the diff tool generates the create table script it creates it but omits the OBJECT IDENTIFIER IS PRIMARY KEY clause. 
    Example:
      CREATE TABLE "AIMS_FEATURES"."DUMMY_OTBL" OF "AIMS_FEATURES"."DUMMY_TYP"
      ( CONSTRAINT "DUMMY_OTBL_PK" PRIMARY KEY ("ID_NUM") ENABLE
    Is this a Bug of sorts? Thanks in advance for your responses
    Cheers,
    Anand

    Possibly.
    What's the DDL for the object you're comparing it to, or is it just 'missing?'
    I'm looking at the DDL generated for the object in the object editor and it's including the phrase so the DIFF should also pick that up.
      CREATE TABLE "HR"."DUMMY_OTBL" OF "HR"."DUMMY_TYP"
       ( CONSTRAINT "DUMMY_OTBL_PK" PRIMARY KEY ("ID_NUM")
      USING INDEX (CREATE UNIQUE INDEX "HR"."DUMMY_OTBL_PK" ON "HR"."DUMMY_OTBL" ("ID_NUM")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" )  ENABLE
       ) OBJECT IDENTIFIER IS PRIMARY KEY
       PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" ;

  • How do I use the move tool in CS5 to put two images on to an A4 sheet?

    Have recently upgraded from CS3 to CS5.
    I often print out two images on A4 paper.  Under CS3 I would simply adjust and crop 2 images to say 7 ins x 5 ins, after that bring up a new A4 sized sheet (file, new), then using the move tool I'd move the two separate images on to the A4 sheet and print.  Fine!
    Now under CS5, once I've adjusted my first image then try to bring up a second image to adjust that one I seem to lose the first one from the screen.  But on going back via Bridge and clicking on the image it re-appears - problem is, I lose the second image.
    When I bring up a new A4 sheet neither of the images stay on the screen and there is nothing to move.
    Have been into Preferences to see if there is anything there to help but can't see anything.
    Does anyone know what is happening here and what I'm doing wrong i.e. how do I get 2 separate images on to an A4 sheet?
    Thanks,
    Bob Eveleigh.

    There have been changes since cs3, mainly that cs5 uses tabs.
    Tabs can be confusing if your coming from cs3.
    If your in the tabbed mode, try going to Window>Arrange>Tile.
    All your open documents should be visible on the screen.
    If this is the cause of your frustrations, you can read more here:
    http://help.adobe.com/en_US/photoshop/cs/using/WS8599BC5C-3E44-406c-9288-C3B3BBEB5E88.html #WS6389D09B-91D5-4474-9AED-C52AE33356EB
    MTSTUNER

  • Need free OST viewer tool to help to view OST files without connecting to MS Exchange Server and MS Outlook.

    Need free OST viewer tool to help to view OST files without connecting to MS Exchange Server and MS Outlook.

    Hi Howard,
    As I know, Microsoft does not provide any kind of inbuilt tool or free software to only view OST file, even without the connectivity with exchange server (Offline).
    Try SysTools OST Viewer freeware which helps you to view all OST file save at your system in an easy way, whether you want to see the attachments or other items of OST file.
    Note: This is a free inbuilt utility, but try it on your own risk as I am not much aware about it and its working. But this tool sounds good according to your requirement and hopefully it would give you 100% satisfaction.
    Thanks
    Clark Kent

  • Set value TextTemplatingFileGenerator to custom tool property of a t4 template file at run time(programmatically) in an MVC Project

    In Solution Explorer we can set the Custom Tool property for a t4 Template file in the Properties window. But can anybody help me doing the same at run time?
    I want to assign the value TextTemplatingFileGenerator programmatically to the Custom Tool Property.
    Thanks in advance...

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for