DZone ForumsDZone Forums  

Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
LinkBack Thread Tools Display Modes

Topic: XML files excluded from build
Old 07-10-2008, 11:29 AM   #1 (permalink)
Member
 
Join Date: Jul 2008
Posts: 2
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...
cmathrusse is offline   Reply /w Quote -


Topic: XML files excluded from build
Old 07-17-2008, 11:44 AM   #2 (permalink)
Member
 
Join Date: Jul 2008
Posts: 3
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...
hednilson.bezerra is offline   Reply /w Quote -


Old 07-17-2008, 11:48 AM   #3 (permalink)
Member
 
Join Date: Jul 2008
Posts: 2
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...
cmathrusse is offline   Reply /w Quote -


Topic: XML files excluded from build
Old 07-21-2008, 12:32 PM   #4 (permalink)
Member
 
Join Date: Jul 2008
Posts: 3
I´ve just tried to create a new workspace and worked.
Thanks for the help.
hednilson.bezerra is offline   Reply /w Quote -


Old 07-23-2008, 08:48 AM   #5 (permalink)
Member
 
Join Date: Jul 2008
Posts: 1
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?
mherrmy is offline   Reply /w Quote -


Topic: XML files excluded from build (resolved)
Old 08-28-2008, 07:57 AM   #6 (permalink)
Member
 
Join Date: Jul 2008
Posts: 3
Solution described in
ByeoWiki: OliBye_blogentry_080708_1

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

Hednilson.
hednilson.bezerra is offline   Reply /w Quote -


Thread Tools
Display Modes



All times are GMT -5. The time now is 12:46 PM.