Community
Participate
Working Groups
Created attachment 152532 [details] patch An API currently exists to determine if a project has a single root structure. However, this is only exposed in code specific to deploy right now. It also does not give any information as to why the project does not have a single root structure. I have created a new utility class that can be called to determine if a component has a single-root structure or not. Flags can be passed into the API to also get back information regarding why it is not single-root. I have also added API to allow the user to get the single-root container back when the structure does adhere to the single-root rules. The isSingleRootStructure code from J2EEFlexProjDeployable will later be removed as part of Bug 265798 and IArchive will now handle processing the optimized members code that currently calls this.
Code checked into HEAD
Looks great. Can we consider this api interface for common jst plugin rather than Java EE? What is specific to Java EE, sounds like this is useful for any deployment type