java - How to add resource folder in gradle and other resource folder -


i have project structure in below manner

src----        |        pdstat---------------------------------------        resources/test.properties                     |                                                      |                                                                                                           b                                                      c                                                      d                                                      resource[having xsd file]  

i need create jar file include everything.my problem after making jar file doesn't include resource folder

project.jar | -----------------psdstat | ------------------test.properties[without resources folder] 

and not including resources[xsd file] folder inside medstat. ant project , converting gradle.i can't change structure of project

please suggest me on this.

i did in below way , working fine

task copynonjavafile<< { copy{  from("src"){   exclude '**/*.java' }  into("build/classes/main") } }  sourcesets {     main {         java {             srcdir 'src'         }     }     test {         java {             srcdir  'test'          }     } }  jar.dependson copynonjavafile 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -