[seam-dev] Need advice on what and how to commit new build stuff for the booking sample app on WebSphere v7

Dan Allen dan.j.allen at gmail.com
Tue Aug 4 19:31:51 EDT 2009


On Tue, Aug 4, 2009 at 3:21 AM, Max Rydahl Andersen <max.andersen at redhat.com
> wrote:

>
>  2) I also would like to get 3 sub dirs in the "resource" folder:
> "META-IINF" for files that goes in the ear (ie application.xml), WEB-
> INF for the web module and JPA for file that go into the jpa-ejb jar
>
>
>  This is a big change, but again, we need to address the entire way we
> structure examples in Seam 3, and align with JBoss Tools so that our
> examples work ootb there. This means adopting the JBT structure for
> projects I think.
>
> Again, we need to start a wiki page for this :-)
>
>
>  One thing that should help is that we know integrate with m2eclipse
> allowing you to at least use maven.
>
> I still don't know (haven't had time to look into it) how we are going to
> handle (in any IDE) that there are
> multiple deployment/configuration descriptors in one project - most
> non-jbosstools-tools assumes
> a specific structure (i.e. persistence.xml is in META-INF and not called
> something else) - but maybe
> maven's profile feature can be used for it....something to explore at
> least.
>

I think Maven 2 profiles are the answer, or at least to cover 90%. A tool
should be able to do property replacement between Maven 2 properties and the
replacement tokens in the files. I'm not sure if this is m2eclipse's
responsibility or JBoss Tools (users really don't need to know the details
here). This works because Maven 2 behavior is predictable and well defined.
With Ant, it's just wild west which files get filtered and where the tokens
come from. And the Seam 2 examples use Ant in the most gnarly way.

As for the last 10% (or however many edge cases there are), we can address
those on a case-by-case basis in a way that impacts the tooling the least.
In the worst case scenario, you have to comment out some code in the source
files to support one app server or the other. But I think this is acceptable
in small amounts given that once you decide to target an app server, you
keep using the same one while developing (so it's not something you have to
do over and over).

Let's just push profiles as far as they are willing to go. We'll be Maven
ninjas by the time the examples are all setup, no doubt.

-Dan


-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20090804/61989753/attachment.html 


More information about the seam-dev mailing list