# Checkstyle plugins forces a File when the underlying task doesn't not require it

**URL:** <https://discuss.gradle.org/t/checkstyle-plugins-forces-a-file-when-the-underlying-task-doesnt-not-require-it/1075>\
**Category:** Old Forum Archive\
**Created:** [June 11, 2013, 3:33am UTC](https://discuss.gradle.org/t/checkstyle-plugins-forces-a-file-when-the-underlying-task-doesnt-not-require-it/1075 "2013-06-11T03:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quidryan](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/quidryan/32/73_2.png) [@quidryan](https://discuss.gradle.org/u/quidryan)\
**Post date:** [June 11, 2013, 3:33am UTC](https://discuss.gradle.org/t/checkstyle-plugins-forces-a-file-when-the-underlying-task-doesnt-not-require-it/1075/1 "2013-06-11T03:33:00Z")

</div>

According to [http://checkstyle.sourceforge.net/anttask.html](http://checkstyle.sourceforge.net/anttask.html) the Checkstyle task can take a config attribute which can be a file, BUT it also can be a relative location which it’ll lookup using ClassLoader.getResource(). The Gradle checkstyle task though enforces that the input be a real file.

Additionally the checkstyle task (via Ant) supports a URL, and Gradle does not expose it that field or possibility.

This should be a bug that is tracked.

---

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [June 21, 2013, 3:08am UTC](https://discuss.gradle.org/t/checkstyle-plugins-forces-a-file-when-the-underlying-task-doesnt-not-require-it/1075/2 "2013-06-21T03:08:00Z")

</div>

Raised as GRADLE-2800. Thanks.
