<div class="gmail_quote">On Tue, Aug 4, 2009 at 3:21 AM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000"><div class="im">
<br>
<blockquote type="cite">
  <blockquote type="cite">
    <pre>2) I also would like to get 3 sub dirs in the &quot;resource&quot; folder:  
&quot;META-IINF&quot; 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
    </pre>
  </blockquote>
  <pre>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 :-)
  </pre>
</blockquote></div>
One thing that should help is that we know integrate with m2eclipse
allowing you to at least use maven.<br>
<br>
I still don&#39;t know (haven&#39;t had time to look into it) how we are going
to handle (in any IDE) that there are <br>
multiple deployment/configuration descriptors in one project - most
non-jbosstools-tools assumes<br>
a specific structure (i.e. persistence.xml is in META-INF and not
called something else) - but maybe<br>
maven&#39;s profile feature can be used for it....something to explore at
least.
</div></blockquote><div><br>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&#39;m not sure if this is m2eclipse&#39;s responsibility or JBoss Tools (users really don&#39;t need to know the details here). This works because Maven 2 behavior is predictable and well defined. With Ant, it&#39;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.<br>
<br>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&#39;s not something you have to do over and over).<br>
<br>Let&#39;s just push profiles as far as they are willing to go. We&#39;ll be Maven ninjas by the time the examples are all setup, no doubt.<br><br>-Dan<br></div></div><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>