-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, Master
-
Component/s: Liferay Themes
-
Labels:None
-
Story Points:24
-
Fix Priority:2
-
Git Pull Request:
In a liferay-hook.xml file it should be possible to reference language property files with wildcards:
<?xml version="1.0"?> <!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 7.0.0//EN" "http://www.liferay.com/dtd/liferay-hook_7_0_0.dtd"> <hook> <language-properties>content/Language*.properties</language-properties> </hook>
The build scripts are designed to resolve widcards and substitute the liferay-hook.xml with an expanded version.
Steps to reproduce
- Create a theme with language keys and a liferay-hook.xml which references the language property files with a wildcard
- Language keys go in {THEME_ROOT}/src/WEB-INF/src/content
- liferay-hook.xml goes in {THEME_ROOT}/src/WEB-INF
- Build the theme with gulp deploy
- Check the generated liferay-hook file in this path: build/WEB-INF/liferay-hook.xml
Expected Result:
build/WEB-INF/liferay-hook.xml should contain a list of all language property files that exist according to the wildcard path
Actual result:
build/WEB-INF/liferay-hook.xml has the same content as src/WEB-INF/liferay-hook.xml, and creates an empty liferay-hook.xml.processed
- links to