sangy14 / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
0 stars 0 forks source link

Source Attachment Locations for App Engine SDK jars lost after Eclipse restarting #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a new project 
- File/New/Project../Google/Web Application Project
- Click Next 
- Enter Project name and package name
- Uncheck  "Use Google Web Toolkit"
- Check "Use Google App Engine" and select "Use default SDK"
- Click Finish

2. Result: New project is created with dependency on App Engine SDK container 
in classpath

3. Right click on App Engine SDK/geronimo-jta_1.1_spec-1.1.1.jar on the left 
navigation window and choose Properties menu item

4. Result: Java Source Attachment property page is opened with Location path is 
empty

5. Click "External File..." and select file at 
C:/geronimo-jta_1.1_spec-1.1.1-sources.jar and click OK
File is downloaded from 
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.
1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar

6. Result: geronimo-jta_1.1_spec-1.1.1.jar is displayed with little icon 
indicated source code is attached successfully.

7. Exit Eclipse and start Eclipse again, check source attachment location for 
geronimo-jta_1.1_spec-1.1.1.jar 

8. Result: No source attachment location is set for 
geronimo-jta_1.1_spec-1.1.1.jar.

Expected result: source attachment location for the library 
geronimo-jta_1.1_spec-1.1.1.jar should be 
C:/geronimo-jta_1.1_spec-1.1.1-sources.jar.

What is the expected output? What do you see instead?
The source attachment locations for libraries should be kept after Eclipse 
restarted. But they aren't.

What version of the product are you using? On what operating system?
Eclipse 3.6, Eclipse 3.7
Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by hathanht...@gmail.com on 15 Jan 2012 at 4:21

GoogleCodeExporter commented 9 years ago
It looks like 
http://google-plugin-for-eclipse.googlecode.com/svn/trunk/plugins/com.google.app
engine.eclipse.core/src/com/google/appengine/eclipse/core/sdk/GaeSdk.java will 
rebuild classpath entries for GAE container every time Eclipse is started. And 
this will make values for these entries to be lost. 

Original comment by hathanht...@gmail.com on 15 Jan 2012 at 4:56