The Ant “war” task does just that – creates WEB-INF along with META-INF, depending on task attributes.
What is considered a best practice?
Keeping all my libs elsewhere for re-use, like log4j and then build them with “war” task?
Or have everything (including jars) checked-in under WEB-INF?
I have multiple apps that could re-use same libs, images, htmls, etc. Our developers use RAD7/Eclipse.
I’d appreciate any examples with opensource Java Web Apps repo layouts.
If you can reliably, dynamically create it, the don’t check it in. That’s going to cause confusion. In this situation it’s analogous to checking in .class files.
Rather, check in the build file and the artifacts you use to create it, and let the build take care of it.