Fork me on GitHub
#boot
<
2018-01-27
>
seancorfield00:01:35

@ashnur If you run that command, you'll get a new folder called example and inside there will be a build.boot file with tasks to run and build the example. I'm suggesting you do that and look at the generated Boot file so you can see an example of how to build a standalone JAR file.

ashnur05:01:28

no need for the conditional, i did that and i looked the tasks and i kinda see similar structures as in the cli arguments which is quite nice, and i kinda see functions that i suppose are transforming some things in some other thing

ashnur05:01:29

what i don't know is how to make this into a dev task from a run task, or how else can i use this. it's great that i can compile a jar but it's not the only use case i need

seancorfield06:01:57

Then I'm afraid I don't understand what you're asking for... I can only suggest you read the Boot documentation for more information about writing tasks... ¯\(ツ)

ashnur06:01:20

@U04V70XH6 please trust me that i am trying. but when i look at this page. https://github.com/boot-clj/boot/wiki/Tasks i get vertigo. do i need to get into every detail of every page just so i can try this tool? i was thinking, there should be probably some people who already built some examples, so other people don't have to go through the same steep learning process? btw. i started with trying tenzing +om with add to it boot-figwheel but the readmes appeared as if they were coming from two parallel worlds.

sekao15:01:48

has anyone successfully made a boot script that loads a build.boot from another directory? i tried calling load-file with the path to the build.boot, but it fails because it can't find the "src" that file references in its set-env!. changing the cwd with (System/setProperty "user.dir" ...) beforehand doesn't seem to help.

martinklepsch15:01:47

@sekao interesting question, don’t have an answer — mind sharing why you’re wanting to do this?

sekao15:01:59

i have several boot projects and i want to write a boot script that builds all of them. i know i could just write a bash script to do this but doing it all within a single boot/jvm instance would be nice

seancorfield20:01:33

We have build.boot in one folder that pulls in another, but they're at the same level on the file system so we use relative "up and over" paths to everything and that works fine.

build/
    build.boot
clojure/
    build.boot ; containing (load-file "../build/build.boot")
then we use paths like this:
(merge-env! :resource-paths #{"../clojure/lowlevel/src"})

seancorfield20:01:55

That relative path works in both build and clojure @sekao