# How to perform specific tasks on buildship Refresh and Import

**URL:** <https://discuss.gradle.org/t/how-to-perform-specific-tasks-on-buildship-refresh-and-import/22120>\
**Category:** Help/Discuss\
**Tags:** buildship\
**Created:** [March 27, 2017, 2:24pm UTC](https://discuss.gradle.org/t/how-to-perform-specific-tasks-on-buildship-refresh-and-import/22120 "2017-03-27T14:24:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jjstreet](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjstreet](https://discuss.gradle.org/u/jjstreet)\
**Post date:** [March 29, 2017, 5:25pm UTC](https://discuss.gradle.org/t/how-to-perform-specific-tasks-on-buildship-refresh-and-import/22120/2 "2017-03-29T17:25:37Z")

</div>

I asked a question similar to yours a while back. Buildship does execute `eclipse` and `eclipseWtp` tasks if such tasks are available (from applying the plugins). It does this on gradle 3.0+.

> [@Buildship does not run eclipseWtp task](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245):
>
> I’m trying to figure out why my multiproject, when imported into eclipse through buildship does not have the wst component nature attached like it should. I’m using 1.0.21 and gradle 2.14.1. I’ve made sure every project applies the eclipse-wtp plugin by specifying it in the allprojects closure of the main build script. I could have sworn this worked at some point, now I’m stumped as to why its not. What are the requirements for importing a multi-project project and having buildship run the ecl…

It does not do this for earlier versions of gradle because those tasks were essentially busted.

You could make one of those tasks depend on your custom task, or make your custom task run after one of those via `mustRunAfter`

Also note that buildship is a young project still very much in development. You could offer your suggestions as issues in github as well.

---

_[View the full topic](https://discuss.gradle.org/t/how-to-perform-specific-tasks-on-buildship-refresh-and-import/22120)._
