tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Orser <or...@cns.montana.edu>
Subject Re: ant installer target
Date Tue, 26 Apr 2005 23:22:04 GMT
Mark,

Thanks for replying.

First an update.
Couldn't get this to work with cygwin.
  It would build, but the .exe created would fail on Service Install.

Did get it to work with cmd.exe (this is with the original
build.properties.default.  The nsis installer gets downloaded into
\usr\share\java\nsis2.0.  You have to move the makensis.exe somewhere,
then install nsis into \usr\share\java\nsis2.0) 

ant release (is the proper target and gets all the dependencies right).

ant build dist
ant build installer
looks like it works, but it's misleading, it doesn't really build the 
.exe.  The property execute-installer isn't set, so the installer target 
doesn't really run.  (It says "Build Successful", but the target hasn't 
really run.)  There is nothing in the release\...\bin directory

The modification that should be made to the 
jakarta-tomcat-5\build.xml is:

- <target name="installer"
+ <target name="installer" depends="dist,prepare-release"

Perhaps

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html

should be modified to state that the "ant release" target is what people
want to get everything built.

Cheers, Gary
------------------------------------------------------
Gary Orser  
Montana State University
Department of Cell Biology and Neuroscience
Center for Computational Biology
1 Lewis Hall, Bozeman MT, 59717

On Tue, 26 Apr 2005, Mark Thomas wrote:

> This works for me from a clean build with the following process:
> 
> 1. Build using build.xml as per
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html
> 
> 2. Then cd jakarta-tomcat-5
> 
> 3. build dist
> 
> 4. build installer
> 
> You will need to configure build.properties in both ${tomcat-source} and
> jakarta-tomcat-5
> 
> Mark
> 
> Gary Orser wrote:
> > Not finding any clues in the archives or web...
> > 
> > I've been struggling with trying to get the ant "installer" target to
> > work.  (tried both 5.5.9 tarball and build.xml cvs checkout).  I've tried
> > this both with cygwin, and cmd.exe (ugh!).  Both produce similar results.
> > 
> > In debugging this I've discovered that the installer target should have a
> > depends="prepare-release".  Additionally, the target doesn't copy many files
> > that it needs from ./build and other places to ./dist.
> > 
> > Is this target supposed to work?
> > 
> > How is the .exe distribution being created that is on the tomcat website?
> > Has nsis been deprecated?
> > 
> > Is there some reference/howto that describes this process better?
> > 
> > Am I missing something fundamental here?...
> > 
> > PS.  I had originally thought that this would be a cool way to have a
> > point and click installer for our webapp that needs to be installed as a
> > service.  Just include our app in webapps, change filenames,
> > descriptions,banners, and away we go...  I guess nothing is ever that
> > simple.
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message