librelist archives

« back to archive

javac enhancement :java-source-exclude

javac enhancement :java-source-exclude

From:
Gregg Reynolds
Date:
2013-09-23 @ 08:14
Hi,

I needed to exclude some files from javac so I implemented simple support
for a new project map key:

  ;; javac exclusions - vector of file and dir names to exclude from compile
  :java-source-exclude
  ["org/example/foo.java" ; don't javac src/main/java/org/example/foo.java
    "org/example/bar"]  ;; don't javac anything below
src/main/java/org/example/bar

The code is available at https://github.com/greynolds/leiningen on branch
java-source-exclude.  Let me know if you want me to send a pull requests
(that would be my first, so I'm not entirely sure how it works).

Cheers,

-Gregg