[GRADLE-2018] Without applying the Java plugin, the EAR's app dir is not added to the eclipse projects deployment assembly Created: 30/Dec/11  Updated: 04/Jan/13  Resolved: 09/Mar/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-6
Fix Version/s: 1.0-rc-1

Type: Bug
Reporter: Andrew Oberstar Assignee: Szczepan Faber
Resolution: Fixed Votes: 0


The EclpseWtpPlugin fails to account for the EAR plugin's application directory (src/main/application) unless you have the JavaPlugin applied.

With the JavaPlugin it pulls in the main source set as a source dir on the EclipseWtpComponent. Without the JavaPlugin it should add the application dir.

Since this doesn't get added the

A workaround for now would be to add this to your build:

eclipse.wtp.component.sourceDirs << file(appDirName)

Comment by Andrew Oberstar [ 30/Dec/11 ]

Oops... forgot to finish my sentence...

Since this doesn't get added, the deployment assembly in the eclipse project is wrong, ignoring the contents of your app dir when eclipse generates the EAR.

Comment by Szczepan Faber [ 09/Mar/12 ]

Pushed. Thanks for the patch!

Generated at Wed Jun 30 12:10:34 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.