Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 76900 - Run configurations should be saved in the .project file
Summary: Run configurations should be saved in the .project file
Status: RESOLVED DUPLICATE of bug 19521
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 09:15 EDT by Robert (Kraythe) Simmons CLA
Modified: 2004-10-27 10:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert (Kraythe) Simmons CLA 2004-10-24 09:15:52 EDT
Run configurations for a project should be saved in the .project file. This 
way if you are working on several projects, you only see run configurations in 
the menu for the particular project. Run configurations for closed projects 
would not appear in the run menu.
Comment 1 Robert (Kraythe) Simmons CLA 2004-10-24 09:16:34 EDT
As an addendum, the run configurations might be available from the project 
properties as well. 
Comment 2 Olivier Thomann CLA 2004-10-24 21:20:50 EDT
Move to JDT/Debug
Comment 3 Jared Burns CLA 2004-10-24 22:40:50 EDT
Can you give some more details about what you have in mind? We already have a 
few stories for launch configurations:
1. Non-shared (default) launch configurations - These configs are stored in the 
metadata. Storing these configs with the project would defeat their "non-shared" 
nature. So nothing will change here.
2. Shared launch configurations - Configurable on the Common tab, you can choose 
to have the config file written wherever you want in the workspace. This puts 
configs in a project and is probably what you're looking for.
3. Project builders - Go to the Builders tab of the projet properties and you'll 
see that you can add and configure launch configs. These configs are stored in 
the project and run as builders via the .project file. If you have configs that 
you want to be run with each build of a project, this will do the job.

Is there something more that you need?
Comment 4 Darin Wright CLA 2004-10-25 15:31:55 EDT
Marking as works for me. No additional work planned.
Comment 5 Robert (Kraythe) Simmons CLA 2004-10-26 06:11:28 EDT
Well, that is a little rude. You could at least give me time to reply.  
 
I am aware that you can configure builder tools to do various build activities. 
Im afraid that perhaps I wasnt clear enough. What I mean is in a project you 
often select an editor in the project and use "Run" toolbar icon; then the run 
configuration window will pop up. At which point you can add a new 
configuration for applet or application or workbench.  
 
Except in the case of shared configurations, these are almost always specific 
to the project. For example, If I create a run configuration to test my SLeak 
plugin, I want to have certain plugins active and others not. However, if Im 
testing the memory debug graph that Im working on then I want to have 
completely different plugins active.  
 
This is even more the case when developign client software for a customer. The 
run configurations are specific to the project.  
 
So I would suggest that all Non-shared run configurations are saved in the 
project file from which they are created. Obviously shared configs will be 
saved in the workspace as before. With this change the behavior would be that 
when the user opens a particular project, their run configurations will be 
added to the run menu for use. If they subsequently close the project, these 
configurations would be removed from the run menu.  
 
In closing, I would like to say that I am re-opening the bug and I dont think 
it is terribly useful to close things before there is understanding on what the 
issue is.  
Comment 6 Darin Wright CLA 2004-10-26 09:30:54 EDT
I beleive this is the same request as bug 19521 - i.e. when a project is 
closed, do not show it's associated launch configurations.

This bug report suggests to use the .project file as a solution. However, 
the .project file is shared in the repository with other developers, and is 
thus not the correct solution (this would mean all configs are shared with all 
developers).

Propose to mark as duplicate of bug 19521.
Comment 7 Darin Wright CLA 2004-10-27 10:07:37 EDT
Marking as dup.

*** This bug has been marked as a duplicate of 19521 ***