瀏覽代碼

Fix some bugs.

tags/v0.2.0
YJC 3 年之前
父節點
當前提交
2046b81ec9
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. +3
    -2
      project.clj
  2. +2
    -2
      src/tservice/plugins/xps2pdf.clj

+ 3
- 2
project.clj 查看文件

{:provided {:provided
{:dependencies {:dependencies
[[org.clojure/clojure "1.10.1"] [[org.clojure/clojure "1.10.1"]
[tservice "0.5.0"]]}
[tservice "[0.5.4, )"]]}


:uberjar :uberjar
{:auto-clean true {:auto-clean true
:omit-source true :omit-source true
:javac-options ["-target" "1.8", "-source" "1.8"] :javac-options ["-target" "1.8", "-source" "1.8"]
:target-path "target/%s" :target-path "target/%s"
:resource-paths ["resources"]}})
:resource-paths ["resources"]
:uberjar-name "xps2pdf.tservice-plugin.jar"}})

+ 2
- 2
src/tservice/plugins/xps2pdf.clj 查看文件

(fs-lib/create-directories! workdir) (fs-lib/create-directories! workdir)
; Launch the batchxps2pdf-convert ; Launch the batchxps2pdf-convert
(spit (fs-lib/join-paths workdir log-path) (json/write-str {:status "Running" :msg ""})) (spit (fs-lib/join-paths workdir log-path) (json/write-str {:status "Running" :msg ""}))
(publish-event! :batchxps2pdf-convert {:from-files from-files :to-dir workdir})
(publish-event! "batchxps2pdf" {:from-files from-files :to-dir workdir})
{:files [pdf-path {:files [pdf-path
zip-path] zip-path]
:log log-path})) :log log-path}))
:plugin-type :ToolPlugin :plugin-type :ToolPlugin
:response-type "data2files"}))
:response-type :data2files}))


;;; ------------------------------------------------ Event Processing ------------------------------------------------ ;;; ------------------------------------------------ Event Processing ------------------------------------------------



Loading…
取消
儲存