# Documentation bug for sourceSet srcDir

**URL:** <https://discuss.gradle.org/t/documentation-bug-for-sourceset-srcdir/828>\
**Category:** Old Forum Archive\
**Created:** [July 22, 2014, 2:07am UTC](https://discuss.gradle.org/t/documentation-bug-for-sourceset-srcdir/828 "2014-07-22T02:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warren](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/warren/32/7063_2.png) [@Warren](https://discuss.gradle.org/u/Warren)\
**Post date:** [July 22, 2014, 2:07am UTC](https://discuss.gradle.org/t/documentation-bug-for-sourceset-srcdir/828/1 "2014-07-22T02:07:00Z")

</div>

Both 1.12 and 2.0 show this example for

23.4.1. Changing the project layout

```gradle
sourceSets {
    main {
        java {
            srcDir 'src/java'
        }
        resources {
            srcDir 'src/resources'
        }
    }
}

```

But when executing that I get:

```gradle
> No such property: srcDir for class: org.gradle.api.internal.file.DefaultSourceDirectorySet
  Possible solutions: srcDirs

```

I thought all the documented examples are part of the build/CI process so should be valid working examples?

When changing to srcDirs it indeed works
