Skip to content

Instantly share code, notes, and snippets.

@fernando-jascovich
Created November 9, 2016 21:00
Show Gist options
  • Select an option

  • Save fernando-jascovich/ecbe44ed3c100ad107e3727bb8da55a4 to your computer and use it in GitHub Desktop.

Select an option

Save fernando-jascovich/ecbe44ed3c100ad107e3727bb8da55a4 to your computer and use it in GitHub Desktop.
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)'"
}
}
}
@fernando-jascovich
Copy link
Author

Android Classpath for emacs jdee!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment