This content has been marked as final.
Show 5 replies
-
1. Re: Redundant WAR deployer redundancy
alesj Oct 16, 2009 3:16 AM (in response to dmlloyd)"david.lloyd@jboss.com" wrote:
Where should these classes exist? At the least, WARStructure should be moved to one place or the other.
It depends on their dependencies.
e.g. EARStructure depends on JBossAppMetaData, which is definitely
something I don't wanna pull in for Deployers (--> keeping the project generic)
Whereas WarStructure, doesn't have any ext dependency, hence should/could only live in Deployers.
I guess when I was porting WarStructure from AS to Deployers
I left it in AS for back compatibility.
This should be removed for AS trunk --> only keeping the one in Deployers. -
2. Re: Redundant WAR deployer redundancy
emuckenhuber Oct 16, 2009 3:57 AM (in response to dmlloyd)"alesj" wrote:
I guess when I was porting WarStructure from AS to Deployers
I left it in AS for back compatibility.
This should be removed for AS trunk --> only keeping the one in Deployers.
AFAIK there was a discussion last year to only keep the WarStructure in the AS codebase and have a mock implementation for the deployers tests only. Adrian then ported the WarStructure to AS. -
3. Re: Redundant WAR deployer redundancy
alesj Oct 16, 2009 4:12 AM (in response to dmlloyd)"emuckenhuber" wrote:
AFAIK there was a discussion last year to only keep the WarStructure in the AS codebase and have a mock implementation for the deployers tests only. Adrian then ported the WarStructure to AS.
What was the reason to do so?
For me it makes more sense to keep the one in Deployers,
as then I don't have to fix/port any new features when I "mock" the .war deployment in Deployers.
And with .wars being mostly the only ones that have a bit diff CL policy,
we do/should use WarStructure a lot.
Perhaps if the AS WarStructure would in the future use some of the ext metadata classes,
we should just make sure there are properly exposed hooks in Deployer's WarStructure,
and make AS's AdvancedWarStrucutre extends WarStrucutre. -
4. Re: Redundant WAR deployer redundancy
emuckenhuber Oct 16, 2009 7:37 AM (in response to dmlloyd)"alesj" wrote:
"emuckenhuber" wrote:
AFAIK there was a discussion last year to only keep the WarStructure in the AS codebase and have a mock implementation for the deployers tests only. Adrian then ported the WarStructure to AS.
What was the reason to do so?
For me it makes more sense to keep the one in Deployers,
as then I don't have to fix/port any new features when I "mock" the .war deployment in Deployers.
And with .wars being mostly the only ones that have a bit diff CL policy,
we do/should use WarStructure a lot.
Perhaps if the AS WarStructure would in the future use some of the ext metadata classes,
we should just make sure there are properly exposed hooks in Deployer's WarStructure,
and make AS's AdvancedWarStrucutre extends WarStrucutre.
There was a bug in the WarStructure and it would have required a deployers release. I think that all War*Deployers should be in the same project, as they belong together - tests should go there as well. As long as it does not affect the core functionality of the deployers. -
5. Re: Redundant WAR deployer redundancy
dmlloyd Oct 16, 2009 10:29 AM (in response to dmlloyd)Well, I'm not updating it in two places, and leaving "mock" code around is rather useless I would say.
So... take your pick ;)