This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
/
build_pydev.gant
48 lines (42 loc) · 1.54 KB
/
build_pydev.gant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import com.google.gson.Gson
feature_pydev = 'org.python.pydev.feature'
target(name: 'org.eclim.pydev.test'){
depends('test.init')
cmd = getEclimCommand()
port = getEclimdPort()
cmd = "${cmd} --nailgun-port ${port} -command"
result = "${cmd} python_list_interpreters".execute().text
interpreters = new Gson().fromJson(result, List<Map<String, String>>.class)
if (!interpreters){
python = 'which python'.execute().text
if(python){
echo("add python interpreter: ${python}")
"${cmd} python_add_interpreter -p ${python}".execute()
}
}
runTests('org.eclim.pydev'){
createProject('org.eclim.pydev', 'eclim_unit_test_python')
}
}
target(name: 'org.eclim.pydev.classpath'){
pluginClasspath{
include(name: 'dropins/**/plugins/com.aptana.shared_core*/*.jar')
include(name: 'dropins/**/plugins/com.python.pydev*/*.jar')
include(name: 'dropins/**/plugins/org.python.pydev*/*.jar')
include(name: 'plugins/com.aptana.shared_core*/*.jar')
include(name: 'plugins/com.python.pydev*/*.jar')
include(name: 'plugins/org.python.pydev*/*.jar')
}
}
target(name: 'org.eclim.pydev.build.vim'){
// indent/htmldjango.vim and indent/htmljinja.vim rely on indent/html.vim
// from org.eclim.wst, so add that file to our pydev plugin build since wst
// is not a reqirement of pydev.
copy(todir: '${build.vimfiles}/org.eclim.pydev'){
fileset(dir: 'org.eclim.wst/vim'){
include(name: 'eclim/indent/html.vim')
include(name: 'eclim/indent/css.vim')
include(name: 'eclim/indent/javascript.vim')
}
}
}