[ 
https://jira.duraspace.org/browse/DS-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Donohue updated DS-1060:
----------------------------

    Attachment: ant-build.patch

Attaching a patch would could be a possible approach to resolving this issue 
(see ant-build.patch above, which just patches our 'build.xml' file for Ant).

Essentially, this patch does a few things:
(A) It ensures that whether you run 'ant update' with or without '-Dconfig' 
option, both cases will upgrade you to the latest dspace.cfg and backup your 
existing settings to a dspace.cfg-[date].old file
(B) However, if you use the '-Dconfig' option, a new Ant 'target' called 
'retain_main_config_settings' will attempt to retain/migrate most of your old 
dspace.cfg settings in the newly upgraded dspace.cfg file (* There are some 
exceptions -- see below for more)
(C) Finally, the 'dspace.cfg.default' file is no longer generated (as your 
dspace.cfg file is now auto-updated).

As mentioned in (B) above, there are some exceptions to what configs can be 
migrated/retained easily. Currently, I have NOT been able to figure out how to 
retain the following settings:
* Settings which are commented out by default in new dspace.cfg
* Settings which do not (or no longer) exist in the new dspace.cfg
* Settings which are multi-line (full value takes up multiple lines)
* Settings which exist in another config file (not dspace.cfg) (may be able to 
get this working though with a few more tweaks)

But, even with all those exceptions, most major DSpace settings (your 
dspace.dir, DB settings, mail settings, etc.) all are auto-migrated to the new 
dspace.cfg file. Settings which are not auto-migrated can be moved manually by 
comparing the new dspace.cfg with the dspace.cfg-[date].old file.

I'd appreciate feedback on this direction. It's a change in how things 
currently work, but I also think it's helpful that it attempts to help you by 
auto-migrating many of your existing settings.
                
> When running 'ant update' copy dspace.cfg to *.old in line with all the other 
> config files
> ------------------------------------------------------------------------------------------
>
>                 Key: DS-1060
>                 URL: https://jira.duraspace.org/browse/DS-1060
>             Project: DSpace
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Robin Taylor
>             Fix For: 1.8.0
>
>         Attachments: ant-build.patch
>
>
> Ant target overwrite_configs contains the following line...
> <globmapper from="*" to="*-${build.date}.old" />
> Whereas target prepare_configs contains the following line...
> <globmapper from="*" to="*.default" />
> It may be just a case of bringing prepare_configs in line with 
> overwrite_configs but I haven't had a chance to analyse this properly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to