dspace 1.7.2 中 dspace.cfg 的修改程序,以及正確的位置

在dspace 1.7.2 的版本中,如果要更新dspace.cfg,是不建議直接修改 [dspace]/config/dspace.cfg ,官方手冊是這樣寫的:

Update Reminder

Things you should know about editing dspace.cfg files.
It is important to remember that there are * two dspace.cfg files after an installation of DSpace.*
  1. The "source" file that is found in [dspace-source]/dspace/config/dspace.cfg
  2. The "runtime" file that is found in [dspace]/config/dspace.cfg
    The runtime file is supposed to be the copy of the source file, which is considered the master version. However, the DSpace server and command programs only look at the runtime configuration file, so when you are revising your configuration values, it is tempting to only edit the runtime fileDO NOT do this. Always make the same changes to the source version of dspace.cfg in addition to the runtime file. The two files should always be identical, since the source dspace.cfg will be the basis of your next upgrade.
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--build.dir ant update_configs
This will copy the source dspace.cfg (along with other configuration files) into the runtime ([dspace]/config) directory.
You should remember that after editing your configuration file(s), and you are done and wish to implement the changes, you will need 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.
※ 但是要特別注意,經實作後,發現有個地方不對,它建議改「[dspace-source]/dspace/config/dspace.cfg」,但改這裡最後完成後面的程序時,卻是拿「[dspace-source]/dspace/target/dspace-1.7.2-build.dir/config」裡面的 dspace.cfg 做為更新的依據,因此如果要改,最好是拿「[dspace-source]/dspace/target/dspace-1.7.2-build.dir/config」去改才對。

留言

熱門文章