Re: Any best practices for clojure + java mixed language projects?

2011-05-02 Thread Dave Snowdon
Thanks. Will give that a go.
cheers
Dave

On May 1, 8:29 pm, gaz jones  wrote:
> you can set the source path in leiningen to be whatever you like. the
> sample file is quite useful for finding these things out:
>
> https://github.com/technomancy/leiningen/blob/master/sample.project.clj
>
> they key is :source-path. there is also a :java-source-path. cant say
> i have ever used that, but it looks like what you want...

-- 
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


Re: Any best practices for clojure + java mixed language projects?

2011-05-01 Thread gaz jones
you can set the source path in leiningen to be whatever you like. the
sample file is quite useful for finding these things out:

https://github.com/technomancy/leiningen/blob/master/sample.project.clj

they key is :source-path. there is also a :java-source-path. cant say
i have ever used that, but it looks like what you want...


On Sun, May 1, 2011 at 11:47 AM, Dave Snowdon  wrote:
> Hi folks
> I'm a long time Java/C++ developer who's been experimenting with toy clojure
> programs for a few of months. I've at last decided to give clojure a try for
> a more significant project but, given this will incorporate components
> written in java  I'm not sure about the way to structure and build the
> project. I've handled mixed language projects (eg java + C++) before using
> ant but am keen to avoid ant this time around.
> Ideally, I'd like to use leiningen to build the project but I'm not sure how
> tightly leiningen is wedded to its default project directory layout.
> Instead of the default structure of:
> - project.clj
> - README
> - src
> -- myproject
> -- core.clj
> - test
> -- myproject
> -- core_test.clj
>
> I'd like something more like this:
> - project.clj
> - README
> - src
> -- clojure
> -- myproject
> -- core.clj
> -- java
> -- org
> --- example
> --- myproject
> - test
> -- clojure
> -- myproject
> -- core_test.clj
> -- java
> -- org
> --- example
> --- myproject
> Is this extra directory level to separate language specific parts possible
> in leiningen? If possible, is it even desirable or are there better ways to
> structure mixed language projects?
> Any tips and pointers to best practices would be welcome!
> thanks
> 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

-- 
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


Any best practices for clojure + java mixed language projects?

2011-05-01 Thread Dave Snowdon
Hi folks

I'm a long time Java/C++ developer who's been experimenting with toy clojure
programs for a few of months. I've at last decided to give clojure a try for
a more significant project but, given this will incorporate components
written in java  I'm not sure about the way to structure and build the
project. I've handled mixed language projects (eg java + C++) before using
ant but am keen to avoid ant this time around.

Ideally, I'd like to use leiningen to build the project but I'm not sure how
tightly leiningen is wedded to its default project directory layout.

Instead of the default structure of:
- project.clj
- README
- src
-- myproject
-- core.clj
- test
-- myproject
-- core_test.clj

I'd like something more like this:
- project.clj
- README
- src
-- clojure
-- myproject
-- core.clj
-- java
-- org
--- example
--- myproject
- test
-- clojure
-- myproject
-- core_test.clj
-- java
-- org
--- example
--- myproject

Is this extra directory level to separate language specific parts possible
in leiningen? If possible, is it even desirable or are there better ways to
structure mixed language projects?

Any tips and pointers to best practices would be welcome!

thanks

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