Menu

#1 PDE build is broken.

open
nobody
7
2007-12-12
2007-12-12
No

The problem is the build class path settings in the PDE-generated build.xml
file for the build. It reads - for a component that depends on the model - like
this:

<!-- depending on model -->
<classpathentry name="../model/bin" />
<classpathentry name="${build.result.folder}../org.codecover.model_0.7.0.0/bin"
/>

Now, if the model project is not built, ../model/bin holds nothing. javac then
falls back to the second entry which is broken since there is nothing in
${build.result.folder}../org.codecover.model_0.7.0.0/bin but in
${build.result.folder}../org.codecover.model_0.7.0.0/@dot/bin. Don't ask why,
it's basically all hardcoded in the PDE :-(

Probably we could work around this by settings some tricky build.properties but
since the update site builds well if there was a previous Eclipse/JDT build (so
../$dep/bin has the needed classes), this needs not be resolved as urgently.

This can cause bugs which are hard to track down since obviously different
compiler settings can be used for the parts compiled directly with Eclipse and
the parts compiled indirectly by PDE through the ant build files. Doing double
build is also annoying, especially if you create new builds frequently.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB