Here's how I create a WAR and deploy it to my site:

ant all
cd build/roller
mkdir META-INF
cp ../../personal/roller.xml META-INF/context.xml
jar cvf roller.war *

scp roller.war [EMAIL PROTECTED]:~/home/webapps/.

This is all from memory, so hopefully it's accurate. ;-)

Matt

On 12/13/05, Sean Gilligan <[EMAIL PROTECTED]> wrote:
>
> Thanks, Greg.
>
> I realize trying to create an "immutable" war and store all local
> configuration and resources outside the war is non-trivial, but couldn't
> one just take the "build/roller" directory and JAR it up into a
> roller.war file and deploy to Tomcat?  By default Tomcat will "explode"
> the war into a directory.  Some additional  manual configuration will be
> required at this point, but at least it's a start down the path of
> creating a war.
>
> Has anyone done this?  Does it make sense to add an "experimental"
> target in build.xml to create a roller.war?
>
> Thanks,
>
> Sean
>
> Greg Hamer wrote:
> > Sean,
> >
> > The ability to "Deploy as WAR" is an open improvement in the Roller JIRA
> (opened 11/Nov/02).  There is no other detail in the JIRA other than that,
> but it is ROL-95 and can be found at:
> > http://opensource2.atlassian.com/projects/roller/browse/ROL-95
> >
> > There is a thread with details on what changes need to be made on the
> roller-development archive at sourceforge.net.  Here is the long url:
> >
> http://sourceforge.net/mailarchive/forum.php?forum_id=9297&max_rows=25&style=flat&viewmonth=200504&viewday=7
> >
> > hth,
> >
> > g
> >
> > ----- Original Message -----
> > From: "Sean Gilligan" <[EMAIL PROTECTED]>
> > To: <roller-dev@incubator.apache.org>
> > Sent: Tuesday, December 13, 2005 4:58 PM
> > Subject: Building a war?
> >
> >
> > Hi,
> >
> > My apologies if this has been asked before or the answer is obvious.  I
> can't seem to find any documentation on how to build (or install) a .war
> version of Roller.  Can this be done?  Should this be done?
> >
> > Thanks,
> >
> > Sean
>
>

Reply via email to