title: Where to put generated string-resoures that will be included in R.class generation and can be used in layouts?
body: <p>I'm having a custom <em>JavaExec gradle task</em></p>
  
  <p>which I currently use for generating several string resource files for android and other platforms.</p>
  
  <p>I found out that when I'm using gradle directly, like this:</p>
  
  <pre><code>buildTypes {
       debug {
           resValue "string", "test", "test-value"
       }
  }
  </code></pre>
  
  <p>Gradle will generate me a </p>
  
  <blockquote>
    <p>generated.xml</p>
  </blockquote>
  
  <p>under </p>
  
  <blockquote>
    <p>/build/generated/resValues/{debug}/values/</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/G254Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G254Z.png" alt="generated res value directory"></a></p>
  
  <p>depending on my active {buildType}</p>
  
  <p><strong>For the gradle way it works, but I don't want to use gradle directly for generating my resValues. I want to use my custom script instead!</strong></p>
  
  <p>Well, but when my script generates for example a <em>generated-custom.xml</em> it does not work as it should.
  It generates the R.class file correctly, but when I want to use my generated string resources in a layout it won't find any of these.</p>
  
  <p><strong>So my question is:</strong>
  Where do I need to put the generated xml file, so that:</p>
  
  <ul>
  <li>The R.class is generated with these string items</li>
  <li>The string items can be used in layouts aswell (@string/generated_string_key)</li>
  </ul>
  
  <p>Thanks!</p>