DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page XML files excluded from build
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default XML files excluded from build - 07-10-2008, 12:29 PM

I've upgraded to Ganymede and everything seemed to be fine until I attempted to create a new Dynamic Web Project. I have some Spring xml files within my project that I want copied into my build directory at compile time but it appears that Ganymede does not want to let this happen.

My project structure is as follows:
ProjectName
|--src
|--config
|--WebContent
|--|--WEB-INF
|--|--|--lib
|--|--|--classes

I have both the src and config folders defined as source directories. Ganymede compiles my .java files into .class files and outputs them into the WebContent/WEB-INF/classes directory but does not copy the .xml files into the classes directory. Surprisingly it does copy the directory structure from the config directory, including all the .properties files that are contained within, but for some reason the .xml files are excluded. I have not exclusion filters defined for the source folders. In fact, the dialog shows that all files are included.

So does anyone have a solution for this? With Europa, everything worked as expected.

Thanks for the help...
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default XML files excluded from build - 07-17-2008, 12:44 PM

I have the same problem.
Is this a known bug?

.Hed+

Quote:
Originally Posted by cmathrusse View Post
I've upgraded to Ganymede and everything seemed to be fine until I attempted to create a new Dynamic Web Project. I have some Spring xml files within my project that I want copied into my build directory at compile time but it appears that Ganymede does not want to let this happen.

My project structure is as follows:
ProjectName
|--src
|--config
|--WebContent
|--|--WEB-INF
|--|--|--lib
|--|--|--classes

I have both the src and config folders defined as source directories. Ganymede compiles my .java files into .class files and outputs them into the WebContent/WEB-INF/classes directory but does not copy the .xml files into the classes directory. Surprisingly it does copy the directory structure from the config directory, including all the .properties files that are contained within, but for some reason the .xml files are excluded. I have not exclusion filters defined for the source folders. In fact, the dialog shows that all files are included.

So does anyone have a solution for this? With Europa, everything worked as expected.

Thanks for the help...
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default 07-17-2008, 12:48 PM

My resolution to this issue was to completely reinstall Ganymede and rebuild my workspace from scratch. I was unable to find any other solution that worked. I did this in desperation so I could move forward. Something seemed to have gotten corrupted in my Eclipse installation because rebuilding my workspace did not resolve the issue. It was only after I reinstalled Eclipse and rebuild my workspace did the problem get resolved.

I hope this helps...
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default XML files excluded from build - 07-21-2008, 01:32 PM

I´ve just tried to create a new workspace and worked.
Thanks for the help.
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default 07-23-2008, 09:48 AM

Hello,

i had the same problem today. So i tried the workaround described by "cmathrusse". First it worked but after a certain time the problem occured again. I did not made changes to the project. The only thing i have done is to build the project again after i had deleted it from the package explorer (not from the drive) and then imported it again. Is this a eclipse bug? I am not able to work with this unpredictable problem. Does anyone know more about and how to avoid this problem?
Reply With Quote
  (#6 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default XML files excluded from build (resolved) - 08-28-2008, 08:57 AM

Solution described in
ByeoWiki: OliBye_blogentry_080708_1

"Change the Java/Compiler/Building preference, and remove *.xml from the filtered resources."

Hednilson.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting web.xml context parameters from ant in build.xml hat27533 NetBeans 0 01-09-2009 03:13 PM
How to set up my eclipse project to build a jar file from two jar files powah Java 0 11-13-2008 03:55 PM
PDE-Build in Eclipse 3.4 bomantz Eclipse 1 11-06-2008 01:52 PM
Build new RCP on IDE or not? That is the question. AndrewB Eclipse 0 10-30-2008 08:59 AM
Headless build suma_eclipse Eclipse 0 03-06-2008 08:38 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com