File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -113,20 +113,21 @@ object build extends Build {
113
113
IO .copyFile(scalatronDir / fileToCopy, distDir / fileToCopy)
114
114
}
115
115
116
- for (dirToCopy <- List (" webui" , " doc/pdf" , " bots " )) {
116
+ for (dirToCopy <- List (" webui" , " doc/pdf" )) {
117
117
println(" Copying " + dirToCopy)
118
118
IO .copyDirectory(scalatronDir / dirToCopy, distDir / dirToCopy)
119
119
}
120
120
121
121
val distSamples = distDir / " samples"
122
+ def sampleJar (sample : Project ) = sample.base / (" target/scala-%s/ScalatronBot.jar" format version)
122
123
for (sample <- samples) {
123
- val sampleJar = sample.base / (" target/scala-%s/ScalatronBot.jar" format version)
124
- if (sampleJar.exists) {
124
+ if (sampleJar(sample).exists) {
125
125
println(" Copying " + sample.base)
126
126
IO .copyDirectory(sample.base / " src" , distSamples / sample.base.getName / " src" )
127
- IO .copyFile(sampleJar, distSamples / sample.base.getName / " ScalatronBot.jar" )
127
+ IO .copyFile(sampleJar(sample) , distSamples / sample.base.getName / " ScalatronBot.jar" )
128
128
}
129
129
}
130
+ IO .copyFile(sampleJar(referenceBot), distDir / " bots" / " Reference" / " ScalatronBot.jar" )
130
131
131
132
for (file <- IO .listFiles(scalatronDir / " doc/tutorial" ) if ! file.getName.endsWith(" .md" )) {
132
133
IO .copyFile(file, distDir / " webui/tutorial" / file.getName)
You can’t perform that action at this time.
0 commit comments