Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/build.xml

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: updated Ant/Maven build configuration files Created Oct. 3, 2016, 6:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus-android/build.gradle ('k') | libadblockplus-android/pom.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/build.xml
diff --git a/libadblockplus-android/build.xml b/libadblockplus-android/build.xml
index c41390f90787663c05fb2519b73246b3b625ad60..67c08ea74b4eb0e9d98576f378cb5ef10f0efd81 100644
--- a/libadblockplus-android/build.xml
+++ b/libadblockplus-android/build.xml
@@ -71,6 +71,21 @@
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
+
+ <!--
+ Walaround for the issue: ant does not copy assets from libraries by default
+ http://stackoverflow.com/questions/5889833/android-library-assets-folder-doesnt-get-copied
+ -->
+ <target name="-post-compile" if="${project.is.library}">
+ <echo>Post Compile: add assests from ${asset.absolute.dir} to ${out.library.jar.file}</echo>
+ <jar destfile="${out.library.jar.file}" update="true">
+ <zipfileset
+ dir="${asset.absolute.dir}"
+ prefix="assets"
+ excludes="**/*.java ${android.package.excludes}"/>
+ </jar>
+ </target>
+
<!-- version-tag: custom -->
<import file="${sdk.dir}/tools/ant/build.xml" />
« no previous file with comments | « libadblockplus-android/build.gradle ('k') | libadblockplus-android/pom.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld