I'm attaching a little script, entitled "c", I wrote that does both the Maven assemble and the ant compile. I execute this every time I make a change to a "source" object - that is, any object that resides under the {dspace-source} directory. This includes .jsp .java messages.properties, etc - any object that lives in the {dspace-source} directory. I also have another script, entitled "cc" that does the exact same thing as this one, except that it does a "mvn clean package" instead of "mvn package". The purpose of these scripts is just to save me some typing, i.e., I only have to type "c" instead of the mvn and ant commands, and it does the directory changing so I can just execute this script from under {dspace-source}.
Every time I execute this script, I then have to restart my web server (we use Sun Webserver7) in order to have my changes picked up by the web application.
Note: Any time I change dspace.cfg (or any other object in my /dspace installation directory), I do NOT have to execute this little script - I only have to restart my web server for my changes to be picked up.
-----Original Message-----
From: Glenn Little [mailto:lit...@cs.ucsd.edu]
Sent: Wednesday, February 09, 2011 3:13 PM
To: Brian Freels-Stendel
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] modifying config dspace.cfg
Wow.. okay... complex but makes sense given the whole
dspace/java/tomcat context I guess. The thing that seems weird to me
now is the "mvn package" command, which takes a while to run and seems
to rebuild all the apps. Is that really necessary, just to make a
quick change in a config file?
Glenn - this is why, if I’m just making a change to the dspace.cfg file, I edit the one under /dspace/config (my installation directory) because I then don’t have to rebuild the app (with mvn package) - I only have to restart my web server. In fact, once I do the “ant fresh_install” during the initial dspace implementation, I *never* touch {dspace-source}/dspace/config/dspace.cfg again. I will occasionally refer back to it if I need to look at how I initially set a property or something.
Sue
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.