|
|
@ -2,6 +2,7 @@ package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
|
|
|
|
"os/exec" |
|
|
|
"path" |
|
|
|
"path" |
|
|
|
"github.com/inconshreveable/log15" |
|
|
|
"github.com/inconshreveable/log15" |
|
|
|
"path/filepath" |
|
|
|
"path/filepath" |
|
|
@ -159,6 +160,9 @@ func copyFiles(documentsDirectoryPath, javadocPath string) { |
|
|
|
|
|
|
|
|
|
|
|
src := path.Clean(javadocPath) |
|
|
|
src := path.Clean(javadocPath) |
|
|
|
dst := path.Clean(documentsDirectoryPath) |
|
|
|
dst := path.Clean(documentsDirectoryPath) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cpCmd := exec.Command("cp", "-rf", src, dst) |
|
|
|
|
|
|
|
err := cpCmd.Run() |
|
|
|
|
|
|
|
|
|
|
|
srcBase := path.Base(src) |
|
|
|
srcBase := path.Base(src) |
|
|
|
filepath.Walk(src, func(filePath string, info os.FileInfo, err error) error { |
|
|
|
filepath.Walk(src, func(filePath string, info os.FileInfo, err error) error { |
|
|
|