Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Move language template file to a property #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion componentbuild/shared/macrolib.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
</else>
</if>

<copy file="${builddir}/files/langtemplate.txt" tofile="@{dest}/${@{module}@{lang}_fullname}.js" overwrite="true" outputencoding="utf-8">
<copy file="${langtemplate.file}" tofile="@{dest}/${@{module}@{lang}_fullname}.js" overwrite="true" outputencoding="utf-8">
<filterset>
<filter token="LANG" value="@{lang}" />
<filter token="LANG_MODULE" value="lang/${@{module}@{lang}_fullname}" />
Expand Down
3 changes: 3 additions & 0 deletions componentbuild/shared/properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
</and>
</condition>

<!-- Which file will be used for language template loader -->
<property name="langtemplate.file" value="${builddir}/files/langtemplate.txt" />

<!-- component test module properties -->
<property name="testsdir" value="./tests"/>
<property name="tests.srcdir" value="${testsdir}/src"/>
Expand Down