I often want to add a custom task to a build, just as an example, I
might want to call a Java method in my code after it has built which
will generate a property file to be included in the distribution.

If this was just a make file or some sort batch file, then that would
just be an extra line in the build file.

In ant, yeah, it would be padded out with lots of XML, but it would
still be the addition of a fairly simple ant task.

In leiningen, it seems that I can create a leiningen/*.clj file with a
clojure function in it which will call my task.

In Maven, it seems that I have to go through this procedure?

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

... creating a Java class, annotating it with metadata, creating an
XML manifest file for it, packaging it in a jar file, installing it in
the local maven repository, referring to it from the project's pom.

Is it really that complicated?

-- 
Dave

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to