Created
November 9, 2016 21:00
-
-
Save fernando-jascovich/ecbe44ed3c100ad107e3727bb8da55a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task classpath() { | |
| doLast { | |
| println "Building classpath..." | |
| def cp2 = [android.getBootClasspath()[0]] | |
| android.applicationVariants.all { v -> | |
| cp2 += v.javaCompile.getSource() | |
| if(null != v.getTestVariant()) { | |
| cp2 += v.getTestVariant().javaCompile.getSource() | |
| } | |
| } | |
| def classpath = cp2.unique().join(":") | |
| println "Updating emacs..." | |
| exec { | |
| executable "sh" | |
| args "-c", "emacsclient --eval '(setenv \"CLASSPATH\" \""+classpath+"\")'" | |
| } | |
| exec { | |
| executable "sh" | |
| args "-c", "emacsclient --eval '(jdee-bsh-exit)'" | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Android Classpath for emacs jdee!!!