I personally use the targets in the beehive source tree for working with the server and the distribution for the webapp bits.

Patrick.



Scott Semyan wrote:

I'm talking about deploying the app to the server.

-----Original Message-----
From: Patrick Osborne Sent: Tuesday, March 15, 2005 6:04 PM
To: Beehive Developers
Subject: Re: Proper way to build a webapp from a dist?



Are you talking about "deploying" the webapp to the server or "deploying" the beehive jars into the webapp lib dir?

<dist home>/ant/beehive-runtime.xml handles copying the jars into the
webapp but not removing them.

Patrick.

Scott Semyan wrote:



Actually, the deploy and undeploy targets still appear in the Beehive/ant/buildWebapp.xml but I don't think they exist in the distribution. It would be cool if they did...

Scott

-----Original Message-----
From: Scott Semyan
Sent: Tuesday, March 15, 2005 5:37 PM
To: Beehive Developers
Subject: RE: Proper way to build a webapp from a dist?

Got it working now. Thanks. It looks like there is no deploy target anymore. This is too bad since hitting the web page everytime you want to deploy is kind of a pain...

Scott

-----Original Message-----
From: Jeremiah Johnson
Sent: Tuesday, March 15, 2005 4:33 PM
To: Beehive Developers
Subject: RE: Proper way to build a webapp from a dist?

I believe that this is what is currently the proper way:

1. Copy build.properties and build.xml from <BEEHIVE_HOME>/samples/netui-blank/WEB-INF/src to your WEB-INF/src directory (where <BEEHIVE_HOME> is the root of your distribution).
2. Edit your copy of build.properties to correctly set the value of beehive.home=<BEEHIVE_HOME> (again, where <BEEHIVE_HOME> is the root of





your distribution). You can use beehive.home=${os.BEEHIVE_HOME} if you





have the BEEHIVE_HOME environment variable set to the root of the distribution.
3. Edit your copy of build.xml to set the contextPath property.
4. ant build war


In the case of the Pet Store, you can find the build.xml scripts in the





WEB-INF/src there as well. You probably won't need to update any of the files to build the Pet Store since it is within distribution. Note





that petstoreWeb.war is deposited at <BEEHIVE_HOME>/samples if you use 'ant build war'.

- jeremiah

-----Original Message-----
From: Scott Semyan
Sent: Tuesday, March 15, 2005 5:21 PM
To: Beehive Developers
Subject: Proper way to build a webapp from a dist?

What is the proper way to build a web app from a distribution? I can't find any ant scripts for the Petstore app (for example) when I generate





a distribution. I know I can use the script from the svn enlistment but





it seems a distribution should be standalone.

Scott Semyan















Reply via email to