12 2014 档案

Gradle Goodness: Run a Build Script With a Different Name
摘要:Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a differen... 阅读全文

posted @ 2014-12-27 20:45 为梦飞翔 阅读(211) 评论(0) 推荐(0)

Gradle Goodness: Group Similar Tasks
摘要:In Gradle we can assign a task to a group. Gradle uses the group for example in the output of $ gradle -t to output all the tasks of the same group to... 阅读全文

posted @ 2014-12-27 20:43 为梦飞翔 阅读(431) 评论(0) 推荐(0)

Gradle Goodness: Add Incremental Build Support to Tasks
摘要:Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unless it is necessary. We can help Gradle and configu... 阅读全文

posted @ 2014-12-27 20:41 为梦飞翔 阅读(378) 评论(0) 推荐(0)

Gradle Goodness: Add Incremental Build Support to Custom Tasks with Annotations
摘要:In a previous post we learned how we can use the inputs and outputs properties to set properties or files that need to be checked to see if a task is ... 阅读全文

posted @ 2014-12-27 20:37 为梦飞翔 阅读(240) 评论(0) 推荐(0)

Gradle Goodness: Automatic Clean Tasks
摘要:Gradle adds the task rule clean to our projects when we apply the base plugin. This task is able to remove any output files or directories we have def... 阅读全文

posted @ 2014-12-27 20:33 为梦飞翔 阅读(263) 评论(0) 推荐(0)

Gradle Goodness: Excluding Tasks for Execution
摘要:In Gradle we can create dependencies between tasks. But we can also exclude certain tasks from those dependencies. We use the command-line option -x o... 阅读全文

posted @ 2014-12-27 20:28 为梦飞翔 阅读(283) 评论(0) 推荐(0)

Gradle Goodness: Display Available Tasks
摘要:To see which tasks are available for our build we can run Gradle with the command-line option -t or --tasks. Gradle outputs the available tasks from o... 阅读全文

posted @ 2014-12-27 20:16 为梦飞翔 阅读(261) 评论(0) 推荐(0)

Gradle Goodness: Parse Files with SimpleTemplateEngine in Copy Task
摘要:With the copy task of Gradle we can copy files that are parsed by Groovy's SimpleTemplateEngine. This means we can expand properties in the source fil... 阅读全文

posted @ 2014-12-27 20:12 为梦飞翔 阅读(363) 评论(0) 推荐(0)

Gradle Goodness: Copy Files with Filtering
摘要:Gradle Goodness: Copy Files with FilteringGradle's copy task is very powerful and includes filtering capabilities. This means we can change the conten... 阅读全文

posted @ 2014-12-27 20:06 为梦飞翔 阅读(1273) 评论(0) 推荐(0)

Gradle Goodness: Renaming Files while Copying
摘要:With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming... 阅读全文

posted @ 2014-12-27 19:53 为梦飞翔 阅读(610) 评论(0) 推荐(0)

Gradle Goodness: Profiling Information
摘要:If we want to know more about how much time is spent in tasks we can use the --profile command-line option. Gradle will generate a report file in the ... 阅读全文

posted @ 2014-12-27 19:36 为梦飞翔 阅读(203) 评论(0) 推荐(0)

Gradle Goodness: Working with Live Task Collection
摘要:Gradle support the definition of so called live collections. These collections are mostly created based on criteria like with a filter() or matching()... 阅读全文

posted @ 2014-12-27 19:32 为梦飞翔 阅读(223) 评论(0) 推荐(0)

Gradle Goodness: Adding Tasks to a Predefined Group
摘要:In Gradle we can group related tasks using the group property of a task. We provide the name of our group and if we look at the output of the tasks ta... 阅读全文

posted @ 2014-12-27 19:18 为梦飞翔 阅读(499) 评论(0) 推荐(0)

Gradle Goodness: Set Java Compiler Encoding
摘要:If we want to set an explicit encoding for the Java compiler in Gradle we can use the options.encoding property. For example we could add the followin... 阅读全文

posted @ 2014-12-27 19:16 为梦飞翔 阅读(314) 评论(0) 推荐(0)

Gradle Goodness: Unpacking an Archive
摘要:To create an archive with Gradle is easy. We have several tasks like Zip, Tar, Jar, War and Ear to create a new archive. But there is no UnZip or UnTa... 阅读全文

posted @ 2014-12-27 19:13 为梦飞翔 阅读(387) 评论(0) 推荐(0)

Gradle Goodness: Running Java Applications from External Dependency
摘要:With Gradle we can execute Java applications using the JavaExec task or the javaexec() method. If we want to run Java code from an external dependency... 阅读全文

posted @ 2014-12-27 18:53 为梦飞翔 阅读(249) 评论(0) 推荐(0)

Gradle Goodness: Task Output Annotations Create Directory Automatically
摘要:Gradle Goodness: Task Output Annotations Create Directory AutomaticallyOne of the great features of Gradle is incremental build support. With incremen... 阅读全文

posted @ 2014-12-27 09:54 为梦飞翔 阅读(393) 评论(0) 推荐(0)

Gradle Goodness: Init Script for Adding Extra Plugins to Existing Projects
摘要:Gradle Goodness: Init Script for Adding Extra Plugins to Existing ProjectsGradle is very flexible. One of the ways to alter the build configuration is... 阅读全文

posted @ 2014-12-27 09:47 为梦飞翔 阅读(278) 评论(0) 推荐(0)

Gradle Goodness: Changing Name of Default Build File
摘要:Gradle uses the name build.gradle as the default name for a build file. If we write our build code in a file build.gradle then we don't have to specif... 阅读全文

posted @ 2014-12-27 09:41 为梦飞翔 阅读(298) 评论(0) 推荐(0)

Gradle Goodness: Check Task Dependencies With a Dry Run
摘要:We can run a Gradle build without any of the task actions being executed. This is a so-called dry run of our build. We can use the dry run of a build ... 阅读全文

posted @ 2014-12-26 22:34 为梦飞翔 阅读(398) 评论(0) 推荐(0)

Gradle Goodness: Using and Working with Gradle Version
摘要:To get the current Gradle version we can use the gradleVersion property of the Gradle object. This returns a string value we can use for displaying th... 阅读全文

posted @ 2014-12-26 20:21 为梦飞翔 阅读(285) 评论(0) 推荐(0)

Gradle Goodness: Skip Building Project Dependencies
摘要:If we use Gradle in a multi-module project we can define project dependencies between modules. Gradle uses the information from the project dependenci... 阅读全文

posted @ 2014-12-26 20:04 为梦飞翔 阅读(376) 评论(0) 推荐(0)

Gradle Goodness: Continue Build Even with Failed Tasks
摘要:If we run a Gradle build and one of the tasks fails, the whole build stops immediately. So we have fast feedback of our build status. If we don't want... 阅读全文

posted @ 2014-12-26 19:59 为梦飞翔 阅读(354) 评论(0) 推荐(0)

Gradle Goodness: Rename Ant Task Names When Importing Ant Build File
摘要:Migrating from Ant to Gradle is very easy with the importBuild method from AntBuilder. We only have to add this single line and reference our existing... 阅读全文

posted @ 2014-12-26 19:56 为梦飞翔 阅读(267) 评论(0) 推荐(0)

Rename Ant Task Names When Importing Ant Build File
摘要:http://mrhaki.blogspot.jp/2014/12/gradle-goodness-rename-ant-task-names.html 阅读全文

posted @ 2014-12-26 14:34 为梦飞翔 阅读(237) 评论(0) 推荐(0)

Useful for Android the development engineer from Github
摘要:Original:http://sysmagazine.com/posts/216591/Many plowing on open space Github, I found assemblage of interesting designs, source the codes, and libra... 阅读全文

posted @ 2014-12-26 14:28 为梦飞翔 阅读(254) 评论(0) 推荐(0)

Compile a native C Android application
摘要:原文:Compile a native C Android application翻译: Zhiwei.Li通过上网搜索,你可以发现很多种编译Android native应用的方法.我想说的是,不同的控制台应用, 守护程序(daemon), C/C++库,等等.这些程序在你自己的计算机上编译没有任何... 阅读全文

posted @ 2014-12-26 14:25 为梦飞翔 阅读(1428) 评论(0) 推荐(0)

android-non-ui-ui-thread-communications-part-5-5
摘要:This is the last post in my series regarding Android thread communications. Parts 1 through 4 are linked in below.Part 1Part 2Part 3Part 4In this seri... 阅读全文

posted @ 2014-12-26 14:10 为梦飞翔 阅读(399) 评论(0) 推荐(0)

android-non-ui-to-ui-thread-communications-part-4-of-5
摘要:In parts 1-3 of this series, I have explored three different means for an Android non-UI thread to communicate user interface updates to the UI thread... 阅读全文

posted @ 2014-12-26 14:09 为梦飞翔 阅读(292) 评论(0) 推荐(0)

Android Non-UI to UI Thread Communications(Part 3 of 5)
摘要:Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-3-of-5/Continuing my series on Android non-UI thread-to-UI thre... 阅读全文

posted @ 2014-12-26 14:08 为梦飞翔 阅读(355) 评论(0) 推荐(0)

Android Non-UI to UI Thread Communications(Part 2 of 5)
摘要:Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-2-of-5/his isthe second part of my series of blog posts on Andr... 阅读全文

posted @ 2014-12-26 14:06 为梦飞翔 阅读(216) 评论(0) 推荐(0)

Android Non-UI to UI Thread Communications(Part 1 of 5)
摘要:original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-1-of-5/ANDROID UI THREAD AND ANROn the Android platform,applica... 阅读全文

posted @ 2014-12-26 14:04 为梦飞翔 阅读(421) 评论(0) 推荐(0)

Android NDK引用预编译的动态链接库
摘要:NDK里有个例子: android-ndk-r10/samples/module-exports/jni一看就懂了———————————————————————————–从r5版本开始,就支持预编译的库(共享和静态). 也就是说在你的应用中,可包含和使用 预先编译的库。这个功能的用处1. 你想分发你... 阅读全文

posted @ 2014-12-26 13:58 为梦飞翔 阅读(2618) 评论(0) 推荐(0)

ANDROID STUDIO, GRADLE AND NDK INTEGRATION
摘要:Originally posted on:http://ph0b.com/android-studio-gradle-and-ndk-integration/With the recent changes (release 0.7.3 around Dec 27), thenew Android B... 阅读全文

posted @ 2014-12-26 13:55 为梦飞翔 阅读(979) 评论(0) 推荐(0)

Android上使用MP3格式录制声音
摘要:0. 下载LAME 并解压缩http://lame.sourceforge.net/download.phphttp://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz1. 创建jni/libmp3lame/src目录... 阅读全文

posted @ 2014-12-26 13:52 为梦飞翔 阅读(2685) 评论(0) 推荐(0)

Include Native *.so Library in APK With Android Studio
摘要:Originally posted on:http://www.kylethielk.com/blog/include-native-so-library-in-apk-with-android-studio/Using the Android NDK is well documented thro... 阅读全文

posted @ 2014-12-26 13:50 为梦飞翔 阅读(301) 评论(0) 推荐(0)

导航