Lines 210-235
Link Here
|
210 |
|
210 |
|
211 |
mkdir(dir: '${eclim.plugins}') |
211 |
mkdir(dir: '${eclim.plugins}') |
212 |
|
212 |
|
213 |
// if the eclim version has changed, stop eclimd before deploying |
|
|
214 |
pluginsDir = new File(binding.getVariable('eclim.plugins')) |
215 |
existing = null |
216 |
pluginsDir.eachDirMatch(~/org\.eclim_.*/){ |
217 |
file -> existing = file |
218 |
} |
219 |
|
220 |
if (existing != null && existing.getName() != "org.eclim_${version}"){ |
221 |
echo('###\n# New eclim version, shutting down old version...\n###') |
222 |
execute("${existing.path}/bin/eclim", '-command shutdown', failonerror=false) |
223 |
execute("${existing.path}/bin/eclim", |
224 |
'-f ${basedir}/src/test/resources/eclimrc.test -command shutdown', |
225 |
failonerror=false) |
226 |
} |
227 |
|
228 |
delete(includeemptydirs: true){ |
229 |
fileset(dir: '${eclim.plugins}', includes: 'org.eclim*/**/*') |
230 |
dirset(dir: '${eclim.plugins}', includes: 'org.eclim*') |
231 |
} |
232 |
|
233 |
copy(todir: '${eclim.plugins}'){ |
213 |
copy(todir: '${eclim.plugins}'){ |
234 |
fileset(dir: '${build.plugins}', includes: '**/*') |
214 |
fileset(dir: '${build.plugins}', includes: '**/*') |
235 |
} |
215 |
} |
Lines 242-255
Link Here
|
242 |
}else{ |
222 |
}else{ |
243 |
chmod(dir: '${eclim.plugins}/org.eclim_${eclim.version}/bin', |
223 |
chmod(dir: '${eclim.plugins}/org.eclim_${eclim.version}/bin', |
244 |
includes: '**/*', excludes: '*.sed', perm: 'ugo+x') |
224 |
includes: '**/*', excludes: '*.sed', perm: 'ugo+x') |
245 |
// java symlink support sucks, especially if the link is broken |
|
|
246 |
exec(executable: 'rm'){ |
247 |
arg(line: '${eclipse.home}/eclim ${eclipse.home}/eclimd') |
248 |
} |
249 |
symlink(link: '${eclipse.home}/eclim', |
250 |
resource: '${eclim.plugins}/org.eclim_${eclim.version}/bin/eclim') |
251 |
symlink(link: '${eclipse.home}/eclimd', |
252 |
resource: '${eclim.plugins}/org.eclim_${eclim.version}/bin/eclimd') |
253 |
} |
225 |
} |
254 |
|
226 |
|
255 |
replace(file: '${eclim.plugins}/org.eclim_${eclim.version}/plugin.properties', |
227 |
replace(file: '${eclim.plugins}/org.eclim_${eclim.version}/plugin.properties', |