[jbosstools-dev] [Fwd: [jbosstools-commits] JBoss Tools SVN: r3756- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/action/server.]

Viacheslav Kabanovich scabanovich at exadel.com
Mon Sep 24 12:07:38 EDT 2007


> Does this also work for EJB projects now ?

Yes, for WAR and EJB projects, I look up for EAR
projects using them.

Slava

----- Original Message ----- 
From: "Max Rydahl Andersen" <max.andersen at redhat.com>
To: "Viacheslav Kabanovich" <scabanovich at exadel.com>
Cc: <jbosstools-dev at lists.jboss.org>
Sent: Monday, September 24, 2007 7:57 PM
Subject: Re: [jbosstools-dev] [Fwd: [jbosstools-commits] JBoss Tools SVN:
r3756-
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/
action/server.]


> Viacheslav Kabanovich wrote:
> > Hello Max,
> >
> > Changes today:
> >
> > If WAR is referenced by EAR, I touch %ear
content%/META-INF/application.xml,
> > otherwise I touch % war content%/WEB-INF/web.xml.
> >
> > Content dir is obtained by using wst model.
> >
>
> Ok, so the answers to my original questions is:
>
>  >>1) Why is both the manifest.mf and web.xml being touched for ear
>  >>deployment ? The war is inside the ear so just touching the ear
> should >>be enough; doesn't touching both trigger risk a double-restart ?
>
> Fixed by this:
>  > If WAR is referenced by EAR, I touch %ear
> content%/META-INF/application.xml,
>  > otherwise I touch % war content%/WEB-INF/web.xml.
>
>  >>2) We should also check that if the war is inside an ear the ear
>  >>descriptor should be touched; and if not in an ear the war descriptor
>  >>should be touched. Do we do that already ?
>
> Does this also work for EJB projects now ?
>
>  >>3) The code scans *all* project files multiple times - that can't be
>  >>very efficient for large projects.
>
>  >>Since these projects knows where their descriptors are why are we
>  >>scanning for them ?
>
> I guess this is fixed now too ;)
>
>  >4) btw. seam-gen uses this for ear's:
>  >
>  >    <target name="restart" depends="explode" description="Restart the
> exploded archive">
>  >        <touch file="${ear.deploy.dir}/META-INF/application.xml"/>
>  >    </target>
>
>  >Why did you choose manifest.mf for ear ?
>
> Not relevant anymore it seems ;)
>
> /max
>




More information about the jbosstools-dev mailing list