此内容没有您所选择的语言版本。
3.3. Setting Preferences
3.3.1. Setting Preferences 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The ModeShape Preferences dialog allows for resource versioning to be set along with specific file types and folders that you never wish to have published to or unpublished from a ModeShape repository.
Procedure 3.3. Setting preferences
Open ModeShape Preferences dialog.
The ModeShape Preferences dialog is accessed by navigating to-> -> . This dialog allows you to set whether resource versioning will be used for your ModeShape repository or not.Figure 3.7. ModeShape preferences dialog
Activate resource versioning.
Click the Enable resource versioning checkbox to activate resource versioning.
3.3.2. Ignored Resources 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can manage the resources to be published using the Ignored Resources menu.
Procedure 3.4. Manage Ignored Resources
Open Ignored Resources Preferences dialog.
Click the Ignored Resources menu item under ModeShape on the Preferences dialog. On this screen you can manage the resources that will not be published to your ModeShape repository.The current excluded file types and folders are presented as the list of checkbox items that appear under the Ignored Resources heading.Figure 3.8. ModeShape: Ignored Resources preferences dialog
Add a new resource to the Ignored Resources list.
To add a new file extension type or folder name to be filtered from publishing, click the New button, enter the details and click the Apply button so that your preference changes are saved.Figure 3.9. ModeShape: Ignored Resources preferences dialog
Remove a resource from the Ignored Resources list.
To remove an entry, select an entry from the list in the Preferences dialog and click the Remove button. Ensure that you click the Apply button so that your preference changes are saved.
Note
If you decide to ignore a resource that has been published in the past, ensure that all instances are unpublished before ignoring it, otherwise you will not be able to unpublish the resource either. That said, this can be an effective way of ensuring a resource cannot be unpublished by accident. Remember though that, since preference settings are only local to your working environment, in a multi-user ModeShape repository someone else could unpublish it.