diff options
Diffstat (limited to 'build/android/ant/apk-package-resources.xml')
-rw-r--r-- | build/android/ant/apk-package-resources.xml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/build/android/ant/apk-package-resources.xml b/build/android/ant/apk-package-resources.xml index 3bfd3c9..b716c16 100644 --- a/build/android/ant/apk-package-resources.xml +++ b/build/android/ant/apk-package-resources.xml @@ -71,7 +71,7 @@ list the res folders in project.library.res.folder.path and the corresponding java packages in project.library.packages, which must be semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, hence - the javascript task. + the replacestring filterchain task. --> <path id="project.library.res.folder.path"> <filelist files="${ADDITIONAL_RES_DIRS}"/> @@ -79,10 +79,15 @@ <path id="project.library.bin.r.file.path"> <filelist files="${ADDITIONAL_R_TEXT_FILES}"/> </path> - <script language="javascript"> - var before = project.getProperty("ADDITIONAL_RES_PACKAGES"); - project.setProperty("project.library.packages", before.replaceAll(" ", ";")); - </script> + + <loadresource property="project.library.packages"> + <propertyresource name="ADDITIONAL_RES_PACKAGES"/> + <filterchain> + <replacestring from=" " to=";"/> + </filterchain> + </loadresource> + <!-- Set to empty if not set by the loadresource above --> + <property name="project.library.packages" value=""/> <property name="build.packaging.nocrunch" value="true" /> |