Step 2: factor out java-utils

18 views
Skip to first unread message

Stuart Sierra

unread,
Feb 2, 2010, 12:42:08 PM2/2/10
to Clojure Dev
My second goal in the contrib reorganization: get rid of c.c.java-
utils (now c.c.java). The name is oblique, and most of its functions
fit more properly in other namespaces.

Here's what I'm going to do, unless somebody hates it:

* move the following from c.c.java to c.c.io: relative-path-string, as-
file, file, delete-file, delete-file-recursively, as-url

* move as-str from c.c.java to c.c.string

* move the following from c.c.java to a new c.c.properties: get-system-
property, set-system-property, with-system-properties, as-properties,
read-properties, write-properties

* move wall-hack-method and wall-hack-field to a new c.c.nonpublic
(got a better name?) and rename them call-method and get-field

* delete the (now empty) c.c.java

-SS

Stuart Sierra

unread,
Feb 2, 2010, 12:43:09 PM2/2/10
to Clojure Dev
On Feb 2, 12:42 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:
> * move the following from c.c.java to c.c.io: relative-path-string, as-
> file, file, delete-file, delete-file-recursively, as-url

I should mention that this comes from Phil's clojure.io:
http://github.com/technomancy/clojure/blob/io/src/clj/clojure/io.clj

-SS

Stuart Halloway

unread,
Feb 2, 2010, 1:49:20 PM2/2/10
to cloju...@googlegroups.com
Agree with all of these. Suggest c.c.reflection for the wall-hack
functions. And I think that that lib will get some more functions over
time.

Stu

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure Dev" group.
> To post to this group, send email to cloju...@googlegroups.com.
> To unsubscribe from this group, send email to clojure-dev...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/clojure-dev?hl=en
> .
>

Stuart Sierra

unread,
Feb 11, 2010, 4:52:09 PM2/11/10
to Clojure Dev
Ok, this is done now, merged in the master branch. Thanks to Chris
Houser for his help.
-SS


On Feb 2, 12:42 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages