aspose file tools*
The moose likes Groovy and the fly likes Cannot get eclipse to copy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Cannot get eclipse to copy "groovy" files to build folder" Watch "Cannot get eclipse to copy "groovy" files to build folder" New topic
Author

Cannot get eclipse to copy "groovy" files to build folder

Caden Whitaker
Greenhorn

Joined: Jan 15, 2009
Posts: 24
I've updated to eclipse M3.5 and I have the groovy plugin installed

When I go to "Project Properties" I no longer have "groovy" option. Previously with groovy there was a section in project properties where I could turn off compiling.

I cannot for the life of me find this option with the new groovy plugin and the new eclipse. All I want is my groovy files (not the compiled code but the actual groovy files) to show up in my build output (build/classes/com/stuff/groovy)

It's driving me nuts, I've spent 4 hours on this. Does anyone have any suggestions?

Any help would be appreciated
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
You want to remove the filtering of Groovy files done by the builder.
In the Project Properties, go to Java Compiler -> Building and check the Enable Project Specific Settings checkbox.
Then go to Filtered Resources, below Output Folder and, in the text input field, remove the "*.groovy" entry (without quotes).
Best wishes!
Caden Whitaker
Greenhorn

Joined: Jan 15, 2009
Posts: 24
Hey thanks for the reply!

When I go to that section there is only one item listed in "Filtered resources" and that is *.launch

There is no *.groovy listed there

Before this latest groovy release there just used to be a "groovy" section in project properties where I could disable groovy compiling entirely. Did they do away with that option? My entire project has been built around that functionality and now it is gone

Any help would be greatly appreciated
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I checked this more closely, and you are right!
Despite having removed the groovy extension from the list of files to filter, the source files are not copied to the class directory.
It seems like the Groovy plugin introduces some custom behaviour of the builder, something I haven't seen before.
Do you use, or can you consider using, Maven? I know that it can be configured to copy resources to the output folder. I guess this may be an option if everything else fails.
Best wishes!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot get eclipse to copy "groovy" files to build folder