So the proscribed way to run Clojure from the command line is to type:
>java -cp clojure.jar clojure.main
at the command prompt.
How about adding *clojure.bat* to the distribution for us Windows
people. A shell script for Unix would be nice too...
@echo off
cls
java -cp %~dp0\clojure.jar cloju
Okay, so I use Java daily at work, and I am one of the local Maven
experts. We use Eclipse, and I have been using CounterClockWise
primarily for REPL.
I'm not looking for an alternate way to run Clojure. I am not looking
for an alternate build mechanism. I just think it would be more
polished t
I am running the following command line:
c:\apps\jdk1.6.0\bin\java.exe -server -cp "C:\apps\clojure-1.2.0\\lib
\clojure-1.2.0-master-SNAPSHOT.jar;C:\apps\clojure-1.2.0\\lib\clojure-
contrib-1.2.0-SNAPSHOT.jar" clojure.main Blah.clj
If Blah.clj does not exist, I get a FileNotFoundException. Howev
Okay, I guess I wasn't specific.
I tried with something simple, like:
(println "alsjflsjlajlsdjas")
Since I got nothing at the output, I also tried with invalid Clojure,
like:
aslfjasljf This is invalid clojure.
In both cases, there was no output.
In the case where Blah.clj did not exist, I got
Okay, I am a big enough programmer to admit when I have made a rookie
mistake.
My first version of Blah.clj contained a function. Of course, this
does not output anything.
Later, I apparently was editing a different file and running the one
with only the function defined. So no matter what I ch
Okay, so you can actually print password-masked characters. But I
can't figure out how to actually do anything I couldn't already do
with my command-line before JLine, except I can't seem to exit the
Clojure REPL with CTRL+c.
I'm curious because I have a number of Java-ish command line
utilities,
http://sandflea.googlecode.com/svn/site/SNAPSHOT/maven-clojure-plugin/example-execute-simple.html
I was originally going to try to put this into *clojure-maven-plugin*,
but realized that there are lots of subtleties to cover that would be
difficult as a sub-contributor. So I have created
sandflea
Thanks for the feedback! It seems like JLine operation is supposed to
be obvious to anyone who uses *nix regularly. I know a couple of guys
who this might interest, so I'll run this info by them and see if they
bite. Thanks again!
--
You received this message because you are subscribed to the
On May 16, 7:22 am, "Hugo Duncan"
wrote:
>> ...
>
> In case you are interested, I recently implemented some of the
> infrastructure to allow you to write maven plugins in clojure. A simple
> example that just logs basedir is here:
>
> http://github.com/hugoduncan/clojure-mojo-example/blob/mast
If you are taking Saul's approach, you might also want to take a look
at generating XHTML, since XML support in Clojure is so easy, and
strict HTML is a little more limiting. And if you were looking at
Raphael, take a second look at plain-ol' SVG. It's already very good
in Opera, Chrome, FireFox,
Yes, Geoff, you have come up with an interesting scenario. It is
definitely possible to do this if you compile libraries in a different
project and then reference them from the plugin, or in the project.
I'm not sure how to approach this for adding newly compiled classes
from the current project.
As a follow-up, I have released a version of this plugin with support
for ANT and a Clojure library that lets you to attach artifacts to
your Maven project manually. I've added examples of (1) how to create
complex assemblies easily, using Clojure ANT, and Maven, and (2) how
to add Clojure documen
Okay, yes, what you are asking is possible, and I know how to do it.
Of course, to see the compiled artifacts on the classpath, you'll have
to be running in a state that runs after they have been created. :-)
This shouldn't be terribly hard to do, but it's a bit arcane. I'll
see if I can make it
Tracking this issue at http://code.google.com/p/sandflea/issues/detail?id=2
--
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 patien
Now that I've had more time to think about it, I think your original
idea should be the default, and only, behavior. Scripts should be
able to access dependencies of the project, and, if possible, the
compiled project classes as well (available after they are compiled).
The code I checked into /tr
It sure seems like we need a good stub generator for Clojure. Java-
interop just doesn't seem complete without it.
On May 22, 10:12 pm, ka wrote:
> Hi, any responses?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, se
If you are interested, I have been working on a template project to
let me create a REPL that comes preloaded with whatever JARs and AOT-
compiled Clojure I want. Be warned - it's Maven! :-) and the REPL
script is a BAT file for Windows - I haven't done anything with Unix
yet. Wouldn't be hard
As a follow-up, the classloading feature talked about in this thread,
along with a few extra features and improved documentation with
examples is available in version 1.1.0.2.
http://code.google.com/p/sandflea/wiki/MavenClojurePlugin The maven-
clojure-plugin wiki page.
I had been using GMaven:ex
Classloaders are generally additive. The system classloader pulls in
standard Java libraries and anything else you specify on the command
line. Then you can add classloaders, and they delegate back to the
parent classloader as a default behavior. When you want to get rid of
the JAR references fo
I agree with Meikel on this one. Java isn't the best language, but
they figured out how to package code in a way that makes it easy to
reuse - the JAR. Maven may not be the easiest thing in the world to
work with, but they got dependency management right.
clojure-contrib should probably be broke
Why not design it so that it can be backed by Swing or SWT or HTML
(perhaps with some AJAX) or whatever? It seems kind of silly to do an
abstraction on a single backend, don't you think?
On May 27, 4:37 pm, Luke VanderHart wrote:
> Thanks, Heinz... I may.
>
> Right now I'm still exploring what I
The issue that you'll run into is that there is one lexical scope that
is shared by all calls to Clojure. The only ways around this are (1)
run it in another process, and (2) load the Clojure JARs into a
ClassLoader at runtime, and throw the ClassLoader away after every
call.
The overhead for opt
master repo of
> clojure-maven-plugin.
>
> Would be good to keep things to one mojo imho.
>
> --
> Pull me down under...
>
>
>
>
>
> On Sun, May 16, 2010 at 1:54 PM, Jason Smith wrote:
>
> >http://sandflea.googlecode.com/svn/site/SNAPSHOT/maven-clojure-p
[Note, you can implement this solution by writing stub classes by
hand. This means you write stubbed out Java classes, run Javac first,
and allow Clojure to overwrite the stubbed class files when it
compiles. This is easy to do in Maven, and not difficult in ANT. And
I have not actually tried th
The Java stubs are, ideally, a temporary thing. They don't need to be
around forever. However, I know of no way at present to generate them
automatically.
Also, you are solving half the problem. Generating the stubs and
class files at the same time does not solve the compile-time
dependency pro
really not much to the Maven part of this (aside from some
rather arcane knowledge).
See also
http://groups.google.com/group/clojure-maven-plugin/browse_thread/thread/1d710e7d75a564b7
(related)
On Jun 5, 5:41 am, ka wrote:
> On Jun 5, 1:33 am, Jason Smith wrote:
>
>
>
>
>
&
Why not just treat is as a vector, do vector math operations on it,
and be done with it? 1+2j is equivalent to [1 2]. 1+2j represents a
2-D vector, does it not? Not only does this handle imaginaries, but
higher forms, such as [1 2 3 4]. The beauty of Lisp is that once you
accept the basic synta
I really like the idea of modularizing the language. Not just the
Java parts, since Clojure compiles to class files as well. The
clojure.jar / clojure-contrib.jar split is artificial, and the bigger
these libraries get, the more obvious it will become that they need to
be broken into multiple sep
I just have to mention that what some people on this thread are asking
for may just not be feasible. The Java legacy behind Clojure can't
realistically be hidden. Nor should it be.
Clojure is very tied to the JVM, with all its power and all its
complexities. Eclipse and IDEA and NetBeans are fac
So look, I think the actual CompSci guys (looking to teach) are asking
for simplicity, and the Java guys are saying it's not that simple.
>From my perspective, I am steeped in Java, and I am looking for new
tools for my toolbelt. I can work with Eclipse or NetBeans, and I can
roll Clojure into exi
30 matches
Mail list logo