cancel
Showing results for 
Search instead for 
Did you mean: 

Java source version compare

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182294
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Thanks ....

Former Member
0 Kudos

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 ...

former_member186016
Active Contributor
0 Kudos

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

former_member182294
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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?