Exclude classes from product export [message #329011] |
Tue, 10 June 2008 14:07 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi,
I have excluded some classes from build path (as they don't compile) in
Eclipse, but when exporting using the Eclipse Product Export Wizard, the
files are added and I get errors. I assume I need to specify this in
build.properties, but I can't figure out how. Now it looks like:
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
jar/batik-awt-util.jar,\
+ more
What do I need to add in order to exclude a package from the export (so
it is not even compiled into .)? I found some options in eclipse help
but can't get it to work, and need some help which is relevant for me:
exclude.. = src/my/package/
src.excludes = src/my/package/
bin.excludes = src/my/package/
Thanks a lot,
/Ola Spjuth
|
|
|
Re: Exclude classes from product export [message #329104 is a reply to message #329011] |
Thu, 12 June 2008 18:19 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Andrew Niefer![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=aniefer%40gmail.com) Messages: 990 Registered: July 2009 |
Senior Member |
|
|
The excludes are not applied to the javac call but rather are used when
gathering everything to be jarred.
The only way I can think of to exclude something from the compile would
be to rename the file (.java.exclude) before the compile and restore it
later.
You can do this using customBuildCallbacks :
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. pde.doc.user/guide/tasks/pde_custom_callbacks.htm
Use the targets pre.@dot and post.compile.@dot
-Andrew
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105631
Ola Spjuth wrote:
> Hi,
>
> I have excluded some classes from build path (as they don't compile) in
> Eclipse, but when exporting using the Eclipse Product Export Wizard, the
> files are added and I get errors. I assume I need to specify this in
> build.properties, but I can't figure out how. Now it looks like:
>
> source.. = src/
> output.. = bin/
> bin.includes = META-INF/,\
> .,\
> jar/batik-awt-util.jar,\
> + more
>
> What do I need to add in order to exclude a package from the export (so
> it is not even compiled into .)? I found some options in eclipse help
> but can't get it to work, and need some help which is relevant for me:
>
> exclude.. = src/my/package/
> src.excludes = src/my/package/
> bin.excludes = src/my/package/
>
> Thanks a lot,
>
> /Ola Spjuth
|
|
|
Powered by
FUDForum. Page generated in 0.03767 seconds