Rebuild DSpace (JSP)
From DSpace Wiki
(Redirected from Rebuild DSpace)
Contents |
[edit] Rebuild DSpace
[edit] Directories:
- [dspace-source]
- [dspace-source]/build/
- [Tomcat]/webapps/ (Mac OSX Server:
/library/jboss/3.2/deploy)- Note: JBOSS comes pre-installed with Mac OS X server. However, for both server and desktop editions Tomcat may be used as with other platforms.
[edit] Quick Restart (Just restarts the web server after configuration changes*)
(*Exception – Changes to Messages.properties always requires a rebuild!)
- Stop Tomcat(WARNING: this will bring down the website)
- (Linux / OS X / Solaris) [Tomcat]/bin/shutdown.sh
- (Mac OS X Server) Use Server Admin to stop Tomcat (“Application Server”)
- (Windows) Use Tomcat Service Monitor (in Notification Area) to stop Tomcat
- Start Tomcat
- (Linux / OS X / Solaris) [Tomcat]/bin/startup.sh
- (Mac OS X Server) Use Server Admin to start Tomcat (“Application Server”)
- (Windows) Use Tomcat Service Monitor (in Notification Area) to start Tomcat
[edit] Quick Build: (Quick build after smaller, usually JSP-based, changes)
- Log on to the server DSpace is running on (e.g. ssh). Make sure to login as the user who initially installed DSpace!
- Open a command prompt (if you don’t have one already), and
cd[dspace-source] -
ant update(recompiles all DSpace code and reinstalls third-party JAR files) - Alternatively, if you do not need to reinstall JAR files, you could instead run ant build_wars (which just recompiles DSpace code)
-
cp build/*.war[Tomcat]/webapps/- (Mac OS X Server)
cp build/*.war /library/jboss/3.2/deploy
- (Mac OS X Server)
- Test changes in DSpace
[edit] Full Refresh/Rebuild: (Completely refresh all of DSpace)
- Log on to the server DSpace is running on (e.g. ssh). Make sure to log in as the user who initially installed DSpace!
- Open a command prompt (if you don’t have one already), and
cd[dspace-source] -
ant clean(removes old compiled code) -
ant update(recompiles all DSpace code and reinstalls third-party JAR files) - Stop Tomcat(WARNING: this will bring down the website)
- (Linux / OS X / Solaris) [Tomcat]/bin/shutdown.sh
- (Mac OS X Server) Use Server Admin to stop Tomcat (“Application Server”)
- (Windows) Use Tomcat Service Monitor (in Notification Area) to stop Tomcat
-
cp build/*.war[Tomcat]/webapps/- (Mac OS X Server)
cp build/*.war /library/jboss/3.2/deploy
- (Mac OS X Server)
- (Optional, but recommended) Completely remove any
dspaceordspace-oaidirectories created in [Tomcat]/webapps(/library/jboss/3.2/deployfor Mac) - BE CAREFUL… you don’t want to remove the wrong directory!- To force Tomcat to recompile everything, you may also wish to remove any
dspaceordspace-oaidirectories created in [Tomcat]/work/Catalina/localhost
- To force Tomcat to recompile everything, you may also wish to remove any
- Start Tomcat
- (Linux / OS X / Solaris) [Tomcat]/bin/startup.sh
- (Mac OS X Server) Use Server Admin to start Tomcat (“Application Server”)
- (Windows) Use Tomcat Service Monitor (in Notification Area) to start Tomcat
- Test your changes in DSpace
