Gradle copy task, relative path
<p>I have two gradle modules(<strong>A</strong> and <strong>B</strong>). Module <strong>B</strong> depends on module <strong>A</strong>.</p>

<p>Module <strong>A</strong> contains <code>Copy</code> task from relative path:</p>

<pre><code>task copyStrings(type: Copy){
    from '../path/'
    into 'folder'
}

tasks.preBuild.dependsOn('copyStrings')
</code></pre>

<p>When I execute <code>./gradlew assemble</code> from module <strong>A</strong> it works perfectly.</p>

<p>But when I am assembling module <strong>B</strong>, gradle can't found such directory, because relative path is made from module <strong>B</strong> directory.</p>

<p>Is there any way to set working directory for <code>Copy</code> task?</p>