Bug 41535 - File Not Found ekception when building projects that do not use a separate source directory
Summary: File Not Found ekception when building projects that do not use a separate so...
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.1.4   Edit
Hardware: PC Windows XP
: P1 critical (vote)
Target Milestone: 1.1.4   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 08:01 EDT by Adrian Colyer CLA
Modified: 2012-04-03 13:58 EDT (History)
1 user (show)

See Also:


Attachments
Fix to org.eclipse.ajdt.internal.ui.ajde.ProjectProperties (1.87 KB, patch)
2003-08-14 08:14 EDT, Matthew Webster CLA
andrew.eisenberg: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Colyer CLA 2003-08-14 08:01:13 EDT
java.io.FileNotFoundException: C:
\ColyerRoot\Data\AJDTDev\eclipse\runtime-workspace\ajdt.figures.demo.
complete\gui\FigurePanel$FigureSurface.class (The system cannot find the path 
specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:116)
	at org.aspectj.util.FileUtil.readAsByteArray(FileUtil.java:1004)
	at org.aspectj.weaver.bcel.BcelWeaver.addResource(BcelWeaver.java:158)
	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.
initBcelWorld(AjBuildManager.java:218)
	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.
doBuild(AjBuildManager.java:112)
	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.
batchBuild(AjBuildManager.java:69)
	at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:
102)
	at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.
run(AspectJBuildManager.java:164)

This can be reproduced using the testdata/figures-demo project in ajdt
Comment 1 Matthew Webster CLA 2003-08-14 08:14:16 EDT
Created attachment 5761 [details]
Fix to org.eclipse.ajdt.internal.ui.ajde.ProjectProperties

Small bug in ProjectProperties.getSourcePathResources() added to fix BUG
#36071. The relative path calculation assumed as source directory in the
project e.g. “src”. The testcase uses the project folder. The fix calculates
the offset for each source path.
Comment 2 Adrian Colyer CLA 2003-08-14 08:41:16 EDT
applied Matthew's patch which fixes the bug
Comment 3 Adrian Colyer CLA 2003-08-28 08:15:23 EDT
updated target milestone to 1.1.4