RE: development build cycle

"Mike McKinney" <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <1B721572A2C99342BC3AADFED9A684B0033D0A@gate.platinumsolutions.com>
I use tomcat in development and have made a quick-deploy target in my ant file that speeds things up a bit (must have autoDeploy=true for this to work)
here is the target:
 
<target name="quick-deploy">
  <echo>Getting the currently deployed war file</echo>
  <copy file="${tomcat.webapps.dir}/${war.file}" tofile="${war.file"/>
 
  <echo>Updateing our copy of the war with new jsp's and classes</echo>
  <war destfile="${war.file}" update="true">
    <fileset dir="${basedir}/my-app/src/jsp/struts"/>
    <classes dir="${basedir}/my-app/target/classes"/>
  </war>
 
  <echo>Unzipping our war back into the tomcat webapps dir (where it was deployed before)</echo>
  <unzip src="${war.file}" dest="${tomcat.webapps.dir}/${webapp.name}"/>
 
  <echo>Deleting our temp copy of the war file</echo>
  <delete file="${war.file}"/>
</target>
 
You might have to tweak things a bit as I don't know the layout of your build environment.
 
Keep in mind, this will only work for slightly modified models and JSPs... speeds things up quite a bit if you are just tweaking things.  Any changes you make to static vars, build config files, xdoclet tags will require a complete rebuild (you'll find this out as you go).  You might get an "Out of Synch" error from tomcat if you modify something the classloader can't easily replace... just kill your tomcat instance and restart it once the "unzip" is done.
 
This helped me, hope it helps you...
 
Mike

________________________________

From: keelgroup-keelframework.com-admin-rI8AND0JKYOgdSakss0wQjGcDxdMUgRv@public.gmane.org on behalf of Gene McCullough
Sent: Tue 5/17/2005 12:06 PM
To: Keel Developers
Subject: [Keelgroup] development build cycle



Is there anything I can do to speed up the build process while
developing?  I'm using a struts webapp client, and to build the war
takes a *good* 5 minutes (nice for little cat naps, bad for
productivity).  Is there a maven command to not build as a war, just
deploy to a directory?

Actually, building the uberjar is the time consuming part (as I think
Shash may have already pointed out in a post earlier that I can no
longer find).  Any ideas?

TIA
gene
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
winmail.dat (application/ms-tnef, 5.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.