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 129892 Details for
Bug 269985
Full Build triggered when using class folder on classpath and custom builder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch and testcase
patch.txt (text/plain), 2.90 KB, created by
Kent Johnson
on 2009-03-25 16:45:16 EDT
(
hide
)
Description:
Proposed patch and testcase
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2009-03-25 16:45:16 EDT
Size:
2.90 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/builder/ClasspathDirectory.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathDirectory.java,v >retrieving revision 1.38 >diff -u -r1.38 ClasspathDirectory.java >--- model/org/eclipse/jdt/internal/core/builder/ClasspathDirectory.java 7 Mar 2009 01:08:10 -0000 1.38 >+++ model/org/eclipse/jdt/internal/core/builder/ClasspathDirectory.java 25 Mar 2009 20:45:17 -0000 >@@ -33,7 +33,7 @@ > > ClasspathDirectory(IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet) { > this.binaryFolder = binaryFolder; >- this.isOutputFolder = isOutputFolder; >+ this.isOutputFolder = isOutputFolder || binaryFolder.getProjectRelativePath().isEmpty(); // if binaryFolder == project, then treat it as an outputFolder > this.directoryCache = new SimpleLookupTable(5); > this.accessRuleSet = accessRuleSet; > } >#P org.eclipse.jdt.core.tests.builder >Index: src/org/eclipse/jdt/core/tests/builder/EfficiencyTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/EfficiencyTests.java,v >retrieving revision 1.14 >diff -u -r1.14 EfficiencyTests.java >--- src/org/eclipse/jdt/core/tests/builder/EfficiencyTests.java 27 Jun 2008 16:02:02 -0000 1.14 >+++ src/org/eclipse/jdt/core/tests/builder/EfficiencyTests.java 25 Mar 2009 20:45:18 -0000 >@@ -27,6 +27,37 @@ > return buildTestSuite(EfficiencyTests.class); > } > >+ public void testProjectAsClassFolder() throws JavaModelException { >+ IPath projectPath1 = env.addProject("Project1"); //$NON-NLS-1$ >+ env.addExternalJars(projectPath1, Util.getJavaClassLibs()); >+ >+ IPath projectPath2 = env.addProject("Project2"); //$NON-NLS-1$ >+ env.addExternalJars(projectPath2, Util.getJavaClassLibs()); >+ env.addClassFolder(projectPath2, projectPath1, false); >+ >+ env.addClass(projectPath2, "p1", "X", //$NON-NLS-1$ //$NON-NLS-2$ >+ "package p1;\n"+ //$NON-NLS-1$ >+ "public abstract class X {}\n" //$NON-NLS-1$ >+ ); >+ >+ env.addClass(projectPath2, "p2", "Y", //$NON-NLS-1$ //$NON-NLS-2$ >+ "package p2;\n"+ //$NON-NLS-1$ >+ "public class Y {}\n" //$NON-NLS-1$ >+ ); >+ >+ fullBuild(); >+ >+ env.addClass(projectPath2, "p1", "X", //$NON-NLS-1$ //$NON-NLS-2$ >+ "package p1;\n"+ //$NON-NLS-1$ >+ "public class X {}\n" //$NON-NLS-1$ >+ ); >+ >+ incrementalBuild(projectPath2); >+ >+ // if a full build happens instead of an incremental, then both types will be recompiled >+ expectingCompiledClasses(new String[]{"p1.X"}); //$NON-NLS-1$ >+ } >+ > public void testEfficiency() throws JavaModelException { > IPath projectPath = env.addProject("Project"); //$NON-NLS-1$ > env.addExternalJars(projectPath, Util.getJavaClassLibs());
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 269985
:
129882
| 129892