Bug 153682 - AJDT fails to build project when "Default output folder" is the project itself
Summary: AJDT fails to build project when "Default output folder" is the project itself
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 1.4.1   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 23:22 EDT by Thiago Souza CLA
Modified: 2006-08-15 10:14 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 Thiago Souza CLA 2006-08-12 23:22:08 EDT
Hi,

  If .classpath defines the following line:
    <classpathentry kind="output" path=""/>

  AJDT fails to build the project with the following exception:

java.lang.IllegalArgumentException
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1565)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:137)
at org.eclipse.ajdt.core.builder.CoreOutputLocationManager.workspacePathToFile(CoreOutputLocationManager.java:35)
at org.eclipse.ajdt.core.builder.CoreOutputLocationManager.<init>(CoreOutputLocationManager.java:43)
at org.eclipse.ajdt.core.builder.CoreProjectProperties.getOutputLocationManager(CoreProjectProperties.java:457)
at org.aspectj.ajde.internal.CompilerAdapter.configureProjectOptions(CompilerAdapter.java:581)
at org.aspectj.ajde.internal.CompilerAdapter.genBuildConfig(CompilerAdapter.java:170)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:97)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

IllegalArgumentException thrown: Path must include project and resource name: /cortex-microkernel

Regards,
Thiago Souza
Comment 1 Matt Chapman CLA 2006-08-15 05:49:22 EDT
Reproduced. This only seem to happen in the unusual case of a project where the project folder is the root for source and class files, and "allow output folders for source folders" is set, and a separate output folder is set for a source folder in the project.
Comment 2 Matt Chapman CLA 2006-08-15 10:14:20 EDT
Now fixed in:

1.4.1.200608150941 for Eclipse 3.2 (build.170)
1.5.0.200608150934 for Eclipse 3.3M1 (build.5)