on 12-14-2004 10:46 AM
Hi,
I have made a strange experience with the DTR and Webdynpro projects? When I checkout a Webdynpro project contained in the Repository (with 'Create Project'), I get the respective sources files but I loose the classpath of the project. Could anybody tell me if there is a way around this?
Cheers,
Heiko
Message was edited by: Heiko Nolte
Hi Heiko,
Did you uncheck the box for checking in the classpath file of the project also when a new project is created.
You can find that in Window -> Preferences -> Team -> Ignored Resources.
Here just uncheck the box for .classpath and .project.
Regards
Sidharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Heiko,
AFAIK and from my memory the .classpath and .project files are not checked into the DTR. This is generated by the IDE for every developer when he creates a project and will be local.In the DTR these files will appear as file with a blue icon of a house(signifying a local file)
Regards
Pran
Hi Sidharth,
thanks for your suggestion. The respective setting prevents a .project and .classpath file from being created. But this is not quite what I would have expected. I thought when a Webdynpro Project is put under source control, another developer should be able to check out the whole project with the .classpath and the .project file.
Cheers,
Heiko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The .project and .classpath files get generated in Netweaver Developer Studio based on the settings of the DC Metadata. When you select 'Create Project', you are filling a brand new file in your filesystem based on the definition.
You need to define your project dependencies using the Used DCs mechanism in this file ( .dcdef in your filesystem ).
Hi Heiko
The .dcdef file is created when you a create a new DC through the DC View. When you create a new DC a request for an Activity will be prompted by NDS. After you have created an Activity the files that will be genreated will be attached to this Activity. You can check in this Activity or continue to develop. If you check in your Activity the folders cfg,def, ModelFolder ,src ,test and the file .dcdef will be checked in.
To work on a development component , you can use the option "Create Project" ,if the component is locally available you can use the option "Sync Sources". Any modification of the project from then on will automatically prompt you to create an Activity.
Eg: If you are defining relationships then the system automatically prompts you to create an Activity for it to check out the .dcdef file into.
Once your development is complete checkin of the Activity will will update the file in DTR with the latest one
Regards
Pran
Hello Pran,
thanks for your explanation. I hope I get you right here. This means, when I haven't got any DC on my local machine and I want to checkout a DC somebody else has checked in, I have to submit the "Create Project" command.
I did this an retrieved the project. But the problem was that the respective .classpath file missed all references to required jars the original project had. I had to add them manually. Do you know if there is a way around this proceeding?
Best regards,
Heiko
Hi,
AFAIK, when you work with Development components, you couldn't make the "simple" Java Project dependencies. All the dependencies should be described in a terms of development components. So if you want some functionality in your DC, you make DC from this functionality and then use this new DC from your original one.
Hope it helps.
Victor.
Hello Heiko
Yes that is correct you have to do a "Create Project"
Even I faced problems adding external jars. Check this post for adding external jars
Alernatively if your using standard SAP provided apis like security etc. You can add this by the "Used DC" reference . Right click the "Used DCs" option in your project and select from the component sap.com_SAP-JEE_1 the public parts that would contain the reference to the jars. Hope this helps
Regards
Pran
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.