Thanks for the help Tim and Peter.

@Tim: Yes, I noticed that ant update_configs produced .new files and I
had to manually merge them. This was mentioned after ant target was
completed, so that's helpful.

@Peter: Not sure if we need to do maven package for updating DSpace
configuration. I just did 'ant update_configs' and it worked. But
that's nice workaround for avoiding ant update and renaming.

I looked at build.xml file to get better idea on what's going on. It
seems like init_configs is for reverting back to original/initial
default configuration. The manual note seemed to be confusing though.

Thanks,
CS.



On Thu, Jun 24, 2010 at 12:58 PM, Peter Dietz <dietz...@osu.edu> wrote:
> Hi Carlos,
> The wording of the documentation is _a_good_way_ to keep your config
> directories in sync with each other. However, its a bit more work
> than necessary. Since it is true that you can directly alter
> [dspace]/config/dspace.cfg, and then restart tomcat, and your change takes
> effect.
>
> Here's my trick...
> Since I usually find it overkill to do a full maven package / ant update
> -Doverwrite=true for the simplest config updates, I use a local source-code
> version control system to keep everything in sync.
> I import the dspace.org dspace-source-1.6.1 code into my local repository.
> I'll call it dspace-production
> svn
> export http://scm.dspace.org/svn/repo/dspace/tags/dspace-1.6.2/ dspace-production
> svn import dspace-production http://svnrepo/dspace-production
> Then on the server I check out the source from my svn repo to
> [dspace-source].
> svn checkout http://svnrepo/dspace-production
> /path/to/dspace-source/dspace-production
> I also checkout the config directory to [dspace]/config
> svn checkout http://svnrepo/dspace-production/dspace/config /dspace/config
>
> Thus, I can make config changes to the checkout on my local PC and commit
> it. Then on the server, I can either go to [dspace]/config, svn update,
> tomcat restart. Or, you could go to [dspace-source], svn update, then do the
> full mvn package / ant update -Doverwrite=true / tomcat restart.
> Thus my configs stay in sync. The only annoyance is things like
> ${dspace.dir} are always getting expanded.
>
>
>
>
> Peter Dietz
> Systems Developer/Engineer
> Ohio State University Libraries
>
>
>
> On Thu, Jun 24, 2010 at 10:15 AM, Tim Donohue <tdono...@duraspace.org>
> wrote:
>>
>> Hi Carlos,
>>
>> It's 'ant update_configs' to update a DSpace configuration.  But, be
>> forewarned that if this finds existing files it will *not* overwrite the
>> existing configuration -- rather it will place a new version
>> side-by-side so that you can compare them and decide what needs updating.
>>
>> So, when you run 'ant update_configs', for any configs that need
>> updating you'll see a '[config-file-name].new' file appear (e.g. you'll
>> see a 'dspace.cfg.new' appear next to your existing 'dspace.cfg').
>> You'll need to check these *.new files to see if you want the updates
>> made.  By default we do not overwrite your existing configs as we don't
>> want to accidentally lose any customizations you may have made.
>>
>> You can type 'ant help' to get an explanation of the various 'ant'
>> commands available.
>>
>> - Tim
>>
>>
>>
>>
>> On 6/23/2010 11:21 PM, Carlos S wrote:
>> > Could someone please help on this?
>> > http://www.dspace.org/1_6_0Documentation/ch05.html#N119D4
>> >
>> > Is it update_configs or init_configs to update dspace configuration?
>> >
>> > --
>> > CS.
>> >
>> >
>> >
>> > On Wed, Jun 23, 2010 at 1:26 AM, Carlos S<neu...@gmail.com>  wrote:
>> >> Hi,
>> >>
>> >> I need some help regarding DSpace configuration update after changing
>> >> '[dspace-source]/dspace/config/dspace.cfg' file. Do I need to run ant
>> >> update_config or 'ant init_config'. The manual for DSpace 1.6 ,
>> >> section 5.1.2 seemed to be confusing as it says:
>> >>
>> >> {{{
>> >> . To keep the two files in synchronization, you can edit your files in
>> >> [dspace-source]/dspace/config/ and then you
>> >> would run the following commands:
>> >> cd /[dspace-source]/dspace/target/dspace-<version>-build.dir
>> >> ant update_configs
>> >>
>> >>
>> >> • To run ant -Dconfig=/[dspace]/config/dspace.cfg update if you are
>> >> updating your dspace.cfg file and
>> >>   wish to see the changes appear. Follow the usual sequence with
>> >> copying your webapps.
>> >> • If you edit dspace.cfg in [dspace-source]/dspace/config/, you should
>> >> then run 'ant init_configs'
>> >>   in the directory
>> >> [dspace-source]/dspace/target/dspace-1.5.2-build.dir so that any
>> >> changes you may
>> >>   have made are reflected in the configuration files of other
>> >> applications, for example Apache. You may then need to restart
>> >>   those applications, depending on what you changed.
>> >> }}}
>> >>
>> >> Any help on how to update configuration? Also, do I need to run any
>> >> maven commands?
>> >>
>> >> --
>> >> Thanks,
>> >> CS.
>> >>
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> > lucky parental unit.  See the prize list and enter to win:
>> > http://p.sf.net/sfu/thinkgeek-promo
>> > _______________________________________________
>> > DSpace-tech mailing list
>> > DSpace-tech@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to