Re: war file
Xue-Feng Yang <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Very nice and thank you again. Can I make the compiled HTML java files, not just class files, available? Xue-Feng --- Jacob Kjome <[email protected]> wrote: > > Use: > ant -projecthelp > > that will show you all the targets. Notice the one > second from the bottom > in the output of "-projecthelp": > > "war Build .war archive of the > Barracuda package" > > Just type: > ant war > > You'll find the .war file in: > Barracuda/WEB-INF/tmp$/Barracuda.war > > > Note that you can also do: > ant catalina-install > > That makes development a lot easier. It will > install your app to Tomcat > from whever the build currently is on your machine. > You just have to do a > couple things. > > 1. make sure you add a user to the > CATALINA_HOME/conf/tomcat-users.xml > file which has the role of "manager" such as... > > <user user="manager" password="simpsons" > roles="manager,admin"/> > > Make sure you restart Tomcat after adding this. > > 2. The Barracuda/src/build.properties file has > manager.username=manager > and manager.password=simpsons as defaults. So, with > the above, you should > be all set. However, if you want to use a different > username and password, > you can create a ${user.home}/.build.properties > file. The contents of that > file will override Barracuda's default > build.properties file. Here's the > contents my mine... > > build.compiler=jikes > build.debug=on > build.deprecation=off > build.optimize=on > build.verbose=off > manager.username=mymanageruser > manager.password=crazyhardtoguesspassword > > Note that you'll have to create the > ".build.properties" file via the > command line on Windows since the Windows GUI > doesn't allow you to create a > file which starts with a non-alphanumeric character > such as a period which > is required here. > > Also note the path to my .build.properties file > (just for reference) is.... > C:\Documents and Settings\jacobk\.build.properties > > > Now just make sure Tomcat is started and do: > > to install the Barracuda app... > ant catalina-install > > to remove the Barracuda app (do below or just > restart Tomcat)... > ant catalina-remove > > > Note that this way of deploying Barracuda will not > be persisted across > Tomcat restarts. If you want things to persist, > do... > > ant catalina-deploy and catalina-undeploy > > be careful with that, though, because it will > rewrite your server.xml so > you'll lose the nice formatting there and since the > app will be deployed as > a .war file, logging to file within the WEB-INF/logs > path will not work > since there is no file system access to the webapp. > > Let me know if you have questions. Oh, and I wrote > a doc that partially > covers this which you can view at > barracudamvc.org... > http://www.barracudamvc.org/Barracuda/docs/contrib_package.html > > > Jake > > > At 01:18 PM 4/3/2003 -0500, you wrote: > >Hi Jake, > > > >I couldn't find the war file in the build. Is there > >any ANT build/target I can use to make a war file > for > >deployment? > > > >Thanks. > > > > > > > >______________________________________________________________________ > >Post your free ad now! http://personals.yahoo.ca > >_______________________________________________ > >Barracuda mailing list > >[email protected] > >http://barracudamvc.org/lists/listinfo/barracuda > ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca