|
1 | 1 | /** |
2 | | - * Licensed under the Apache License, Version 2.0 (the "License"); |
3 | | - * you may not use this file except in compliance with the License. |
4 | | - * You may obtain a copy of the License at |
5 | | - * |
6 | | - * http://www.apache.org/licenses/LICENSE-2.0 |
7 | | - * |
8 | | - * Unless required by applicable law or agreed to in writing, software |
9 | | - * distributed under the License is distributed on an "AS IS" BASIS, |
10 | | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
11 | | - * See the License for the specific language governing permissions and |
12 | | - * limitations under the License. |
13 | | - * |
14 | | - * Copyright 2014 Edgar Espina |
| 2 | + * Jooby https://jooby.io |
| 3 | + * Apache License Version 2.0 https://jooby.io/LICENSE.txt |
| 4 | + * Copyright 2014 Edgar Espina |
15 | 5 | */ |
16 | 6 | package io.jooby.adoc; |
17 | 7 |
|
|
35 | 25 | import java.nio.file.Files; |
36 | 26 | import java.nio.file.Path; |
37 | 27 | import java.nio.file.Paths; |
| 28 | +import java.nio.file.StandardCopyOption; |
38 | 29 | import java.util.LinkedHashSet; |
39 | 30 | import java.util.LinkedList; |
40 | 31 | import java.util.UUID; |
@@ -83,6 +74,10 @@ public static void generate(Path basedir, boolean publish) throws Exception { |
83 | 74 | Files.write(it, document(it).getBytes(StandardCharsets.UTF_8)); |
84 | 75 | })); |
85 | 76 |
|
| 77 | + // LICENSE |
| 78 | + Files.copy(basedir.getParent().resolve("LICENSE"),outdir.resolve("LICENSE.txt"), |
| 79 | + StandardCopyOption.REPLACE_EXISTING); |
| 80 | + |
86 | 81 | if (publish) { |
87 | 82 | Path website = basedir.resolve("target")// Paths.get(System.getProperty("java.io.tmpdir")) |
88 | 83 | .resolve(Long.toHexString(UUID.randomUUID().getMostSignificantBits())); |
|
0 commit comments