Age | Commit message (Collapse) | Author |
|
I've decided that using the ProtectionDomain of the ClassLoader
which loaded the Compiler class is probably a good bet.
This is useful for signed Java applets because the default
ProtectionDomain will not have all the privlages of the applet.
|
|
When the class is loaded it will set the current thread's
context ClassLoader to the ClassLoader which is currently
loading the class.
This turns out to be useful for classes which extend
java.applet.Applet because the current thread's context
ClassLoader is not the JNLPClassLoader when loaded in a browser.
|
|
|
|
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
|
|
|
|
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Previously parse-args was defaulting in-enc and out-enc to the
platform default charset. This contradicted the intent of sh, which is
to default to UTF-8 on all platforms.
This appears not to have been noticed because the unit tests were
still testing for the previous behavior of defaulting to platform
encoding.
(As it turns out the old behavior of using Charset/defaultCharset
would have been wrong on Mac OS X since it claims "Mac Roman" here
despite the fact that Mac OS X uses UTF-8 throughout, including in
Terminal.app, shell and file system.)
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
- correct order for branches for in
- :out and :outenc are separate things
- stderr always gets platform encoding
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
filling the buffer and hanging the process
removed stray println
use clojure.java.io to copy streams, avoiding byte-at-a-time copying
added :inenc option, specifying the input character set
renamed :out input option to :outenc
changed default encoding to 'platform default encoding'. This matches how we handle *out*.
It is much more likely that command-line tools used by sh use platform default encoding. Windows CRT barely supports UTF-8 for example.
write to stdin from a separate thread to prevent stdout blocking before we write anything
Added support for passing a byte array to :in
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
- note need for full package name (in some places, didn't track down)
- note need for redundant hinting (interface hinting flows sometimes?)
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
|
|
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
|
|
defrecord
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
|
|
clojure.lang.IFn for lookup
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
- add clojure.string to build,
- make replace,replace-first use CharSequence in same way
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|
|
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
|