Why does headless PDE Build omit directories I've specified in build.properties's bin.includes?
Posted
by Woody Zenfell III
on Stack Overflow
See other posts from Stack Overflow
or by Woody Zenfell III
Published on 2010-05-06T16:13:45Z
Indexed on
2010/05/06
16:18 UTC
Read the original article
Hit count: 394
One of my Eclipse plug-ins (OSGi bundles) is supposed to contain a directory (Database Elements
) of .sql files. My build.properties
shows:
bin.includes = META-INF/,\
.,\
Database Elements/
(...which looks right to me.)
When I build and run from within my interactive Eclipse IDE, everything works fine: calls to Bundle.getEntry(String)
and Bundle.findEntries(String, String, bool)
return valid URL
objects; my tests are happy; my code is happy.
When I build via headless ant script (using PDE Build), those same calls end up returning null
. My tests break; my code breaks. I find that Database Elements
is quietly but simply missing from my plug-in's JAR package. (META-INF
and the built classes still make it in there fine.) I scoured the build log (even eventually invoking ant -verbose
on the relevant portion of the build script) but saw no mention of anything helpful.
What gives?
© Stack Overflow or respective owner