On 20/08/10 4:32 AM, Dillon Sellars wrote:
I know non-code files should generally go into src/main/resources, but for Wicket it's nice to have the html next to the .java files. How can I include **/*.html resources from src/main/java and have them go into the classes directory?

You can simply add src/main/java as a resource directory. Everything under there which is not a .java file will be treated as a resource and copied across. (It will ignore .groovy as well if you're using the groovy plugin, .scala if you're using the scala plugin, and so on):

sourceSets.main.resources.srcDir 'src/main/java'


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to