Skip to Content
avatar image
Former Member

Java source version compare

How do you view the code differences for .java files versioned in a web dynpro project? They are not in the src fiolder for either active or inactive DC. I do see they are under the gen_wdp folder but the version tools are disabled there.

This I am assuming as a very common practice but I see nothing in the SAP help. I am using release SP18 of dev studio.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 08, 2007 at 08:37 PM

    OK, this is what I see in the InactiveDC window that looks like the files for the view I want. Under src/project/etc ... :

    TimeEntryView.wdcontroller

    TimeEntryView.wdcontroller.xlf

    TimeEntryView.wdview

    TimeEntryView.wdview.xlf

    The contents are all XML - and look like the view properties, model, GUI settings, etc.

    I looked under the DCMetaData folder but I see nothing that looks like a file. Where would the metadata file for the java source code be located?

    Add comment
    10|10000 characters needed characters exceeded

    • All the xml files what you located are meta data files from which actual java files are generated. Look for the versions of the xml files if you want to compare, but i dont think that is easy to distingush the differences.

      Regards

      Abhilash

  • avatar image
    Former Member
    Aug 08, 2007 at 09:51 PM

    Yeah, unless there's a parser tool or some other way to do this - it's not going to work.

    This might explain why I did not find any SAP help docs on comparing java code in web dynpro. Thank for the reply ...

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mike,

      The files like TimeEntryView.wdcontroller also have java code in them. This is used while generation. You can use same tool to check differences here for the code also.

      You can do one more thing. [ This is a bit tedious:) ]

      Take the generated java file in gen_wdp folder and use tools like "WinMerge" to check the difference. [Not a gr8 idea but works 😊 ]

      Regards,

      Ashwani Kr Sharma

  • Aug 08, 2007 at 07:42 PM

    WebDynpro files are stored as meta data files from which NWDS generates java source files. Even in repository only meta data files are stored not .java files.

    If you want to compare the versions of metadata files..do this..

    - Go to Development Configuration Perspective

    - Locate the file and right click - DTR -> Show in -> Version Graph.

    If it is a Web or Java project you can directly view the versions.

    Regards

    Abhilash

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 09, 2007 at 03:38 PM

    OK, I see now that the view code is included in the .wdcontroller file.

    Thanks ....

    Add comment
    10|10000 characters needed characters exceeded