In order to enable export in Eclipse, it is required that build.properties contains the following info:
bin.excludes = [All excluded files and folders, like tests]
Logged In: YES
Hmm, it seems this is not possible in Eclipse builds currently. The corresponding Eclipse bug is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=105631 but it seems not to have much priority. We probably need another solution :-(
I was suggested the following:
"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"
I believe this is now fixed by using cdk-export.