source: gradle/update.gradle @ edb352b9

Last change on this file since edb352b9 was 0bfe45be, checked in by str4d <str4d@…>, 5 years ago

Start of buildscript for generating updates

  • Property mode set to 100644
File size: 2.8 KB
Line 
1task prepUpdateRouter(type: Copy) {
2    dependsOn ':core:jar', ':router:jar'
3    // Pass in paths as a closure, so they are not executed during configuration
4    from {[
5        project(':core').jar.archivePath,
6        project(':router').jar.archivePath
7    ]}
8    into 'pkg-temp/lib'
9}
10
11task prepUpdateSmall(type: Copy) {
12    dependsOn prepUpdateRouter
13    dependsOn ':apps:ministreaming:jar', ':apps:streaming:jar'
14    dependsOn ':apps:routerconsole:jar', ':apps:i2ptunnel:i2ptunnelJar'
15    dependsOn ':apps:routerconsole:war', ':apps:i2ptunnel:war'
16    dependsOn ':apps:addressbook:war'
17    // Base dir
18    into 'pkg-temp'
19    into('lib') {
20        from {[
21            project(':apps:ministreaming').jar.archivePath,
22            project(':apps:streaming').jar.archivePath,
23            project(':apps:routerconsole').jar.archivePath,
24            project(':apps:i2ptunnel').i2ptunnelJar.archivePath,
25        ]}
26        // pulled out of routerconsole.jar in 0.7.12, someday we can take out of updater
27        // name without version so we can overwrite if we upgrade
28        from('apps/jrobin/jrobin-1.5.9.1.jar') {
29            rename { 'jrobin.jar' }
30        }
31    }
32    into('webapps') {
33        from {[
34            project(':apps:routerconsole').war.archivePath,
35            project(':apps:i2ptunnel').war.archivePath,
36            project(':apps:addressbook').war.archivePath,
37        ]}
38    }
39}
40
41task prepUpdate(type: Copy) {
42    dependsOn prepUpdateSmall
43    dependsOn ':apps:BOB:jar', ':apps:sam:jar'
44    dependsOn ':apps:i2psnark:i2psnarkJar', ':apps:systray:jar'
45    //dependsOn ':apps:desktopgui:jar'
46    dependsOn ':apps:susidns:war', ':apps:susimail:war'
47    dependsOn ':apps:i2psnark:war'
48    // Base dir
49    into 'pkg-temp'
50    into('lib') {
51        from {[
52            project(':apps:BOB').jar.archivePath,
53            project(':apps:sam').jar.archivePath,
54            project(':apps:i2psnark').i2psnarkJar.archivePath,
55            // include systray changes in 0.7.5
56            project(':apps:systray').jar.archivePath,
57            // removed from updater in 0.9
58            //project(':apps:desktopgui').jar.archivePath,
59        ]}
60        // as of 0.7.12; someday, we can remove these from the updater
61        from 'apps/susidns/src/WEB-INF/lib/jstl.jar'
62        from 'apps/susidns/src/WEB-INF/lib/standard.jar'
63    }
64    into('webapps') {
65        from {[
66            project(':apps:susidns').war.archivePath,
67            project(':apps:susimail').war.archivePath,
68            project(':apps:i2psnark').war.archivePath,
69        ]}
70    }
71    from('history.txt') {
72        filter(org.apache.tools.ant.filters.HeadFilter, lines:1500)
73    }
74    doLast {
75        String more = '\n\n----------------\n\nEARLIER HISTORY IS AVAILABLE IN THE SOURCE PACKAGE'
76        ant.concat(more, append: 'true', destfile: 'pkg-temp/history.txt')
77    }
78}
Note: See TracBrowser for help on using the repository browser.