I think we should consider adding "dev/" to cake's classpath in bin/cake. This would let a project define its custom tasks in dev/ instead of in src/, so that the task code does not get deployed in JARs and WARs.
Of course, we're also talking about making the location of dev/ customizable, but as far as I can tell, cake itself doesn't do any parsing of the project.clj to figure out what those locations are, so we are always going to be kinda screwed there. I've made the change nonetheless (just added 6 characters: "dev/",) and it seems to work.
I think we should consider adding "dev/" to cake's classpath in bin/cake. This would let a project define its custom tasks in dev/ instead of in src/, so that the task code does not get deployed in JARs and WARs.
Of course, we're also talking about making the location of dev/ customizable, but as far as I can tell, cake itself doesn't do any parsing of the project.clj to figure out what those locations are, so we are always going to be kinda screwed there. I've made the change nonetheless (just added 6 characters: "dev/",) and it seems to work.