inuishan

Untitled

Jun 22nd, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. apply plugin: "java"
  2. apply plugin: 'war'
  3. sourceSets {
  4. main {
  5. java {
  6. srcDir 'src'
  7. }
  8. resources {
  9. srcDir 'resources'
  10. }
  11. }
  12. test {
  13. java {
  14. srcDir 'test'
  15. }
  16. }
  17. }
  18.  
  19. configurations {
  20. runtime_bundle
  21. }
  22.  
  23. dependencies {
  24. compile fileTree(dir: 'lib/ai', include: ['*.jar'])
  25. }
  26.  
  27. war {
  28. from('../resources') {
  29. into('WEB-INF/classes')
  30. include('widget-templates/**')
  31. }
  32. webInf { from 'web/WEB-INF' } // adds a file-set to the WEB-INF dir.
  33. webXml = file('web/WEB-INF/web.xml') // copies a file to WEB-INF/web.xml
  34. classpath configurations.runtime_bundle
  35. }
Add Comment
Please, Sign In to add comment