Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Exclude classes from product export
Exclude classes from product export [message #329011] Tue, 10 June 2008 14:07 Go to next message
Eclipse UserFriend
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
Andrew Niefer is currently offline Andrew NieferFriend
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
Previous Topic:Eclipse distro for xml editing
Next Topic:fastview position
Goto Forum:
  


Current Time: Tue Jul 16 16:59:05 GMT 2024

Powered by FUDForum. Page generated in 0.03058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top