Check is task will run in Gradle
<pre><code>gradlew update test
</code></pre>

<p>How to check if "test" task is present in list? I need this for "update" task, it read a file from resources if "test" will be and another file if "test" will not be.</p>