Fork me on GitHub
#boot
<
2016-07-01
>
flyboarder00:07:25

(exec :process "bower" :arguments ["install" "--allow-root"] :directory tmp-path :local "node_modules/bower/bin”)

richiardiandrea01:07:13

ok I give up, I will try Deraen's test task

richiardiandrea01:07:49

actually not setting MaxMetaspaceSize works as well πŸ™‚

Jon03:07:52

anything like lein exec in Boot?

martinklepsch12:07:33

@flyboarder: don't forget to add it to the wiki πŸ™‚ (if you haven't already)

flyboarder14:07:01

@jiyinyiyong: I just made a boot-exec yesterday

flyboarder14:07:48

Not sure if that is what you are looking for

alandipert16:07:19

added a make-executable-jar task to this cli tool i've been working on, might interest people - https://github.com/alandipert/e2j

alandipert16:07:39

also demos using proguard, which is a neat thing

flyboarder16:07:47

when using boot/cp what should the dest-tmpfile be? Im trying to copy from the fileset to a tmp dir

micha16:07:23

@flyboarder: you probably don't want to use cp for that

micha16:07:35

that's really a thing that boot uses internally within the fileset

micha16:07:53

you can just copy the files like for example:

micha16:07:19

(deftask copy
  []
  (with-pass-thru [fs]
    (let [outdir (io/file "out")
          files (->> fs
                     (output-files)
                     (by-ext [".clj"])
                     (map (juxt tmp-path tmp-file)))]
      (doseq [[path file] files]
        (io/copy file (io/file outdir path))))))

micha16:07:28

something like that

flyboarder17:07:50

@micha im getting a no such file or directory error

flyboarder17:07:34

hmmm maybe it doesnt exist XD

flyboarder17:07:29

i think im doing something wrong with tmp-file

micha17:07:56

you need to do (doto (io/file tmp in-path) (io/make-parents)) there

micha17:07:24

you need to make sure subdirectories are created before writing the new file

flyboarder17:07:02

@micha that did the trick! thanks πŸ˜…

flyboarder17:07:18

Note to self: make sure destination exists before copying

alandipert17:07:45

@dave: oh jeez i need to just use that

dave17:07:50

πŸ˜‰

dave17:07:30

it looks like your task basically does the same thing

alandipert17:07:31

aha yours has comments and everything

alandipert17:07:39

yeah totally, almost down to the expression

dave17:07:49

great minds think alike

alandipert18:07:20

πŸ“– 🍡 πŸ€“ πŸ€“