Mercurial > jhg
annotate build.gradle @ 570:36853bb80a35
Tests for HgAnnotateCommand with follow/no-follow option
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 11 Apr 2013 16:07:17 +0200 |
parents | 31bd09da0dcf |
children | 2f33f102a8fa |
rev | line source |
---|---|
468
3ca4ae7bdd38
Clean experimental marks and deprecation code. Update version number to release
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
466
diff
changeset
|
1 /* |
3ca4ae7bdd38
Clean experimental marks and deprecation code. Update version number to release
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
466
diff
changeset
|
2 * Copyright (c) 2012 TMate Software Ltd |
3ca4ae7bdd38
Clean experimental marks and deprecation code. Update version number to release
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
466
diff
changeset
|
3 */ |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
4 def isRelease = false |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
5 |
470
31bd09da0dcf
Switch to 1.1 development
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
468
diff
changeset
|
6 version = '1.1.0-SNAPSHOT' |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
7 description = 'Pure Java API and Toolkit for Mercurial DVCS' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
8 group = 'org.tmatesoft.hg4j' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
9 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
10 apply plugin : 'java' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
11 apply plugin : 'maven' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
12 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
13 sourceCompatibility = '1.5' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
14 targetCompatibility = '1.5' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
15 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
16 sourceSets { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
17 main { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
18 java { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
19 srcDir 'src/' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
20 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
21 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
22 test { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
23 java { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
24 srcDir 'test/' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
25 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
26 resources { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
27 srcDir 'test-data/' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
28 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
29 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
30 cli { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
31 java { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
32 srcDir 'cmdline/' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
33 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
34 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
35 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
36 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
37 repositories { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
38 mavenLocal() |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
39 mavenCentral() |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
40 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
41 |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
42 configurations { |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
43 deployJars |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
44 } |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
45 |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
46 dependencies { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
47 testCompile 'junit:junit:4.8.2' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
48 cliCompile 'junit:junit:4.8.2' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
49 cliCompile files(sourceSets.main.output) { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
50 builtBy compileJava |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
51 } |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
52 deployJars "org.apache.maven.wagon:wagon-http:1.0-beta-2" |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
53 } |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
54 |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
55 def sharedMetaInf = { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
56 from project.file('COPYING') |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
57 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
58 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
59 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
60 task sourcesJar(type: Jar) { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
61 classifier = 'src' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
62 from sourceSets.main.java, sourceSets.test.java, sourceSets.cli.java |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
63 metaInf sharedMetaInf |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
64 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
65 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
66 task cmdlineJar(type: Jar) { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
67 appendix = 'console' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
68 from sourceSets.cli.output |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
69 metaInf sharedMetaInf |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
70 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
71 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
72 jar { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
73 manifest { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
74 attributes ("Implementation-Version": version) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
75 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
76 metaInf sharedMetaInf |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
77 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
78 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
79 artifacts { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
80 archives sourcesJar, cmdlineJar |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
81 deployJars jar, sourcesJar |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
82 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
83 |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
84 install { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
85 configuration = configurations.deployJars |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
86 /* |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
87 repositories.mavenDeployer { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
88 addFilter('f1') { artifact, file -> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
89 println file.name |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
90 println artifact.ext |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
91 println file.name - ('.' + artifact.ext) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
92 println ' ' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
93 def fname = file.name - ('.' + artifact.ext) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
94 println fname.endsWith('src') |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
95 fname.endsWith('src') |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
96 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
97 addFilter('f2') { artifact, file -> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
98 def fname = file.name - ('.' + artifact.ext) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
99 fname.endsWith('console') |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
100 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
101 addFilter('f3') { artifact, file -> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
102 def fname = file.name - ('.' + artifact.ext) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
103 fname.endsWith(version) |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
104 } |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
105 } |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
106 */ |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
107 } |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
108 |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
109 uploadArchives { |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
110 configuration = configurations.deployJars |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
111 repositories { |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
112 mavenDeployer { |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
113 configuration = configurations.deployJars |
470
31bd09da0dcf
Switch to 1.1 development
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
468
diff
changeset
|
114 repository(url: "http://maven.tmatesoft.com/content/repositories/snapshots/") { |
466
3ace1fc95d0a
Use <HOME>/.gradle/gradle.properties
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
462
diff
changeset
|
115 authentication(userName: project.ext.deploySnapshotsRepositoryUser, password: project.ext.deploySnapshotsRepositoryPassword) |
453
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
116 } |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
117 } |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
118 } |
7b883bf03b14
Artifacts upload using gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
452
diff
changeset
|
119 } |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
120 |
459
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
121 |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
122 task findOutWhyProjectCopyDoesntWork() << { |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
123 // files under .hg/ are not copied with copy {} |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
124 ext.myjar = zipTree( 'test-data/test-repos.jar' ) |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
125 ext.destDir = new File(project.getBuildDir(), "hg4j-tests1/") |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
126 outputs.dir ext.destDir |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
127 CopySpec ss = copySpec { |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
128 from ext.myjar |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
129 into ext.destDir |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
130 include '*', '*/.*', '**/.*/*', '**/.*', '**/*', '*/.*/**', '**/**', '.*/**', '**/.hg/*', '**/.hg*' |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
131 eachFile {element -> |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
132 println "AAA:$element.relativePath" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
133 } |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
134 } |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
135 println "includeEmptyDir: $ss.includeEmptyDirs" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
136 println "includes: $ss.includes" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
137 println "allIncludes: $ss.allIncludes" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
138 println "excludes: $ss.excludes" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
139 println "allExcludes: $ss.allExcludes" |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
140 } |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
141 |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
142 |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
143 test { |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
144 // <property name="test-repos-root" value="${java.io.tmpdir}/hg4j-tests/"/> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
145 // <delete dir="${test-repos-root}" quiet="yes"/> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
146 // <unjar src="test-data/test-repos.jar" dest="${test-repos-root}"/> |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
147 |
462
ad0322a4af20
Update tests not to fail with Mercurial 2.2 changes, run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
459
diff
changeset
|
148 File testReposRoot = new File(project.getBuildDir(), "hg4j-tests/"); |
459
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
149 if ( testReposRoot.exists() ) { |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
150 project.delete(testReposRoot) |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
151 } |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
152 testReposRoot.mkdirs(); |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
153 |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
154 zipTree('test-data/test-repos.jar').visit {element -> |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
155 element.copyTo(element.relativePath.getFile(testReposRoot)) |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
156 } |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
157 |
55e9588b84b8
Run tests with gradle
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
453
diff
changeset
|
158 systemProperties 'hg4j.tests.repos' : testReposRoot |
452
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
159 systemProperties 'hg4j.tests.remote' : 'http://hg.serpentine.com/tutorial/hello' |
7dcc920e2d57
Moving towards gradle build
Artem Tikhomirov <tikhomirov.artem@gmail.com>
parents:
diff
changeset
|
160 } |