Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 11907 Details for
Bug 65186
Can't attach source from project directory [build path]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test. Apply on HEAD
patch_for_65186_tests.txt (text/plain), 1.66 KB, created by
Olivier Thomann
on 2004-06-10 16:05:16 EDT
(
hide
)
Description:
Regression test. Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-06-10 16:05:16 EDT
Size:
1.66 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java,v >retrieving revision 1.29 >diff -u -r1.29 AttachSourceTests.java >--- src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java 23 Apr 2004 17:38:59 -0000 1.29 >+++ src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java 10 Jun 2004 18:26:00 -0000 >@@ -578,4 +578,39 @@ > root.close(); > } > >+/** >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=65186 >+ */ >+public void testAddProjectAsSourceAttachment() { >+ IJavaProject javaProject = null; >+ try { >+ javaProject = createJavaProject("Test", new String[]{""}, >+ new String[]{"/AttachSourceTests/test.jar"}, null, null, ""); >+ this.createFolder("/Test/test1"); >+ this.createFile("/Test/test1/Test.java", >+ "package test1;\n" + >+ "\n" + >+ "public class Test {}"); >+ IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(this.getFile("/AttachSourceTests/test.jar")); >+ this.attachSource(root, "/Test", null); >+ IClassFile cf = root.getPackageFragment("test1").getClassFile("Test.class"); >+ assertSourceEquals( >+ "Unexpected source for class file P1.D", >+ "package test1;\n" + >+ "\n" + >+ "public class Test {}", >+ cf.getSource()); >+ } catch (CoreException e) { >+ e.printStackTrace(); >+ assertTrue(false); >+ } finally { >+ if (javaProject != null) { >+ try { >+ getWorkspaceRoot().getProject("Test").delete(true, null); >+ } catch (CoreException e) { >+ assertTrue(false); >+ } >+ } >+ } >+} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65186
:
11906
| 11907 |
12205