Fork me on GitHub
#boot
<
2016-04-19
>
bones00:04:06

What’s the canonical way to get “Lein run” functionality? Do I just create a task that requires my namespace and callwhatever function I need?

dave00:04:43

@bones yep, that's basically it

bones00:04:55

ha ha, cheers

micha00:04:13

@martinklepsch: there were a few issues with the checkout task as it currently implemented

micha00:04:03

one issue is that the checkout dep is exploded into the fileset by a task, so it's difficult to use a task that's pulled in via a checkout dep

micha00:04:34

other issues are things like the uber task don't work the same with checkout deps and tasks that are looking at files in the fileset end up seeing the checkout dep files, which isn't really correct

micha00:04:19

the new --checkouts option allows loading the checkout dep early, and it allows proper segregation of checkout dep files

micha00:04:46

so you can use a task defined in the checkout dep as you would use a task in a normal dependency, etc

bones12:04:00

Hi all, I've made a simple task that calls to my code form the boot.build but I'm getting ClassNotFoundException

bones12:04:13

It seems like I'm trying to use the namespace before it's ready.

bones12:04:42

I'm trying to make a "Lein run" equiv

alandipert13:04:43

@bones: do you (require 'boot-server.core) somewhere above the task?

alandipert13:04:13

@bones: also for that task you might consider using with-pass-thru

juhoteperi14:04:42

I managed to get Less4Clj tests running on Windows CI: https://ci.appveyor.com/project/Deraen/less4clj/build/4

juhoteperi14:04:59

With proper test cases this should eventually help with getting stuff to work properly on Windows

alandipert14:04:46

that's neat, is appveyor a windows travis? and free?

juhoteperi14:04:00

Free for open source projects, very slow though. The build takes like 10 minutes to start.

alandipert16:04:30

ah. sounds like it could be useful at the very least for regression testing

clem19:04:30

Is it possible to reference jar resources in a fileset?

martinklepsch19:04:50

@clem: what do you want to do with these?

martinklepsch19:04:08

@clem: the sift task can import files from jars into the fileset

clem19:04:40

I’m working on a task to run pandoc to generate documents. The resources in question are PNG images and templates that I need to run with pandoc. If I can use sift to add them as input files that might just be what I need.

clem19:04:20

Is there a URI format necessary to reference a jar resource?

pesterhazy19:04:48

@clem, I'm really interested in having a pandoc boot task btw

pesterhazy19:04:03

would work well with perun

clem19:04:31

Well, technically this is for work, but I’ll bet they’d be open to releasing the source.

martinklepsch19:04:47

@clem: (sift :add-jar {'org.webjars.npm/basscss-forms #"^*"})

martinklepsch19:04:01

@clem: maybe this helps as an example

clem19:04:08

@martinklepsch: excellent, thanks!

pesterhazy19:04:58

@clem, I'd love to see this, even in a basic version (pandoc is simply great)

clem19:04:48

Cool. Which input/output formats are you looking to be supported?

hlolli21:04:00

Is there a way to concatnate local project dir from boot into (System/getProperty "java.ext.dirs") or -Djava.ext.dirs? I need to include a .jar file containing jni and many .class files. I can already do this with my computer variables, but I would prefer if this was possible per project basis.

bones22:04:15

Thanks @nberger @alandipert - I guess I need to understand Boot a bit more; I’m not sure where/when I should be able to use my code

bones22:04:32

@nberger @alandipert - thanks, requiring the namespace before I used it worked. I was thinking Boot had required all my namespaces that are within the :source-paths I provided