Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
On Wed, Apr 10, 2013 at 8:41 PM, Maurizio Cucchiara mcucchi...@apache.org wrote: There are a lot of reasons which let me think that having inside the StringEscapeUtils class is a legitimate idea: 1. take a look at SEU's methods [2] 2. adding a new dependency, just for json escaping, seems

Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
. Indeed. :-) Cheers Christian [1] http://goo.gl/EXRqX [2] https://issues.apache.org/jira/browse/LANG-797 On 11 April 2013 12:40, Christian Grobmeier grobme...@gmail.com wrote: private void encodeString(String string, StringBuilder result, JSON annotation) { if(string == null

Re: [LANG] How to escape JSON data

2013-04-11 Thread Christian Grobmeier
On Thu, Apr 11, 2013 at 4:54 PM, Maurizio Cucchiara mcucchi...@apache.org wrote: Anyway, my lib is mainly written for my own use. It seems I have never sent a slash with json, so it didn't pop up. Many javascript libraries work smoothly with slashes. I hear you. Anyway better stick closely to

Re: [Imaging] Will version 1.0 ever be released?

2012-09-17 Thread Christian Grobmeier
Damjan, I recommend you to follow the UsingNexus guide: http://wiki.apache.org/commons/UsingNexus Several people here (including me) have made a release with that. Guess we all will help you whenever you come across problems. If the release procedure is your only problem with the next release it

Re: [Imaging] Will version 1.0 ever be released?

2012-09-17 Thread Christian Grobmeier
On Mon, Sep 17, 2012 at 1:20 PM, Matej Jelovcan zuti...@gmail.com wrote: HI. Any way of obtaining build as-is? Can't build it myself for various reasons :) You can try that snapshot:

Re: [logging] Specify the Log4J configuration file from commons-logging.properties

2012-04-14 Thread Christian Grobmeier
Hello Paul, On Thu, Apr 12, 2012 at 2:59 PM, Paul Holding p...@pholding.co.uk wrote: Is it possible to specify the name of the Log4J configuration file from within the commons-logging.properties file? it should be possible, say the docs. I have tried setting

[sanselan] For server?

2012-03-31 Thread Christian Grobmeier
Hi was thinking about using Sanselan for some transformations on the server side... not sure about it, because it uses so many static methods... is it threadsafe? Or is it a stupid at all to use Sanselan on the backend? Cheers Christian -- http://www.grobmeier.de https://www.timeandbill.de

Re: [email] JavaMail works Commons Email does not

2012-01-10 Thread Christian Grobmeier
On Tue, Jan 10, 2012 at 11:54 AM, Frank Sullivan fsulli...@strikeind.com wrote: Nothing happens.  No exceptions.  No logging (I set logging for org.apache.commons.mail to TRACE).  Nothing. Thats weird. Have you tried to debug and look if all properties are set or if the code is actually

Re: Need doc for Apache Tomcat Native

2011-08-11 Thread Christian Grobmeier
I need to know is it a web server? a what? The website only provides how to install it, how to run it. But I want to know is what is it? It's totally new to me. You need to ask there: http://tomcat.apache.org/lists.html It is a Native Windows and Unix wrapper for platform integration

Re: [digester] Jaxenter interview about Digester3!!!

2011-07-12 Thread Christian Grobmeier
Reads great! Love to see things like that On Tue, Jul 12, 2011 at 7:43 PM, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, just to share with you all a small interview I had with Jaxenter today during lunch-time, I hope that my fellows appreciate how things have been exposed!

Re: [jci] Can someone please make a 1.1 release?

2011-02-20 Thread Christian Grobmeier
Java 1.5 is out since 2004. Even the financial people don't use 1.4 as far as I know. Don't see any reason to keep this any longer. I think i would be for 2.0 without jsr199 support and hopefully deliver 2.1 with jsr199 (or level to 3.0) If bumb to 1.5 would solve most problems I would go for it

Re: [jci] Can someone please make a 1.1 release?

2011-02-20 Thread Christian Grobmeier
I am with you guys ...but bumping to 1.5 doesn't buy us much. Only bumping to 1.6 would make things much easier. Just to make sure I understood right... jci depended on 1.4, but then we started to implement jsr199 which is currently unfinished. Even when unfinished we now need j6 b/c of the

Re: [jci] Can someone please make a 1.1 release?

2011-02-15 Thread Christian Grobmeier
Just don't ask me to implement the JSR-199 based compiler for JCI - I've wrestled with that API a couple of times now and lost :D Haha :) I know. I admit I was on the expert group for that. ...and I told them it sucks (in nicer words) but the wouldn't listen. Just out of interest i read the

Re: [jci] Can someone please make a 1.1 release?

2011-02-15 Thread Christian Grobmeier
No, the implementation is already part of the JDK. It's just that using it seems to be harder to use than it should be. JCI is an easier abstraction. There already is some code in JCI bridging to the JSR199 but it's not fully working yet. So its probably a goal for JCI 2.0 to be a full

Re: [jci] Can someone please make a 1.1 release?

2011-02-15 Thread Christian Grobmeier
I already read the impl is part of JDK and I was wondering if JCI will stop development and is in maintenance mode for the old JDKs TBH ... I was thinking the same. Until Joe asked for a release :) Guess there are more interesting places in the java world at the moment... Anyway it would

Re: [compress] Zip password compressed archive

2011-02-07 Thread Christian Grobmeier
Hi, no, not from what I know. http://www.pkware.com/documents/casestudies/APPNOTE.TXT (search for decryption) even when zip compression is considered weak... wouldn't this be a cool feature for compress 1.2? In the spec is even pseudo code :-) Cheers Christian On Mon, Feb 7, 2011 at 11:32 AM,

[ANNOUNCE] Commons Compress 1.1 released

2010-08-23 Thread Christian Grobmeier
The Commons Compress team is pleased to announce the commons-compress-1.1 release! Commons Compress defines an API for working with compression and archive formats. These include: bzip2, gzip and ar, cpio, jar, tar, zip. Source and binary distributions are available for download from the

Re: [COMPRESS] lzma support

2010-05-10 Thread Christian Grobmeier
Hi, the answer is no. Patches welcome :-) best regards, Christian On Mon, May 10, 2010 at 8:53 AM, Jean-François MAUREL jfr.mau...@gmail.com wrote: Hi everyone, Is it possible to deal with .lzma compressed files? I am using compress-1.0 Best regards -- Jean-François MAUREL

Re: vfs writing to zip files

2010-03-17 Thread Christian Grobmeier
Hi, somebody would need to write a VFS plugin with Compress. I wanted to do it before a while, but suddenly run out of time after the first release of Compress. If you would like to help, welcome :-) Christian On Wed, Mar 17, 2010 at 9:10 AM, Dan Corneanu c...@savatech.ro wrote: Hi, I know

Re: truezip-maven-plugin copy-into usage question

2009-09-25 Thread Christian Grobmeier
I think you need to ask there: http://mojo.codehaus.org/truezip-maven-plugin/mail-lists.html Cheers On Fri, Sep 25, 2009 at 10:34 PM, David Hoffer dhoff...@gmail.com wrote: How do I configure truezip-maven-plugin so that I can have two executions each doing copy-into?  If I have two filesets

Re: [compress] add a memory efficient stream compress InputStream - e.g. a DeflaterInputStream

2009-09-01 Thread Christian Grobmeier
Hi there, I think this one has been addressed in https://issues.apache.org/jira/browse/COMPRESS-83 This change is not released yet. You might want to check the code out from SVN and build it yourself. I have some time left later this year and hopefully this change will come with an 1.1 version

Re: Compress: Reading archives within archives

2009-04-19 Thread Christian Grobmeier
Hi, I nearly didn't - the nightly build directory linked to on the website only shows md5 files, and the SVN link on the main page gives a 404 error and a Python traceback. Fortunately, I discovered a working SVN link in the Wiki, as Compress does exactly what I need (zip, tar.gz and bzip2).

Re: Compress: Reading archives within archives

2009-04-18 Thread Christian Grobmeier
Hi Marian, thanks for using compress! I'm using Commons Compress to generate a list of all file names within an archive. This should also parse archive file within the archive to get a list of all files. However, I can't quite read the inner archive. For the outer archive, I have a file

Re: org.apache.commons.digester.rss.* ?

2009-04-06 Thread Christian Grobmeier
On Mon, Apr 6, 2009 at 6:54 PM, k2 karlk...@spiritone.com wrote: So to put this simply, is there an ftp location for the example files from where I can download the source tree for rss? No you have to go through SVN best. Try this: svn checkout

Re: [COMPRESS] change IOUtils.copy() to return number of bytes copied?

2009-03-28 Thread Christian Grobmeier
IOUtils.copy() currently returns void. If it were changed to return a long of the number of bytes actually copied, then it could be used in the ArchiveInputStream test cases to check that the EOF was reached after the correct number of bytes. E.g. that would show whether any padding was being

Re: SCXML - getting started

2008-07-13 Thread Christian Grobmeier
Hi Anna, I am not only SCXML but also Java beginner and there is a reason that I have to use both. Unfortunately I do not really know how to use Commons SCXML even after reading documentation, because there is to many new things. Can you give me some more SIMPLE examples how to parse xml files

Re: [VFS][commons-compress] How to participate ?

2008-07-03 Thread Christian Grobmeier
Hello Pierre, thanks for offering your help! commons-compress currently has some drawbacks. Torsten and I started a redesign. Since I am not a committer of Apache, we started this redesign as GIT repository. Once we feel that commons-compress is in a good state, Torsten (or another interested

Re: [VFS] Adding 7-zip support

2008-07-02 Thread Christian Grobmeier
Hi Pierre, if you are interested in writing 7-zip support, you may implement this in the compress-lib, which is currently beeing redesigned: http://projects.grobmeier.de/compress-redesign.git/ or: http://projects.grobmeier.de/compress-redesign-draft1.zip The zip support from VFS is only

Re: [VFS] Modifying / Creating zip archives

2008-07-02 Thread Christian Grobmeier
On Wed, Jul 2, 2008 at 4:36 PM, Pierre Chastagner [EMAIL PROTECTED] wrote: Yes TrueZip works pretty well, even if the system limits may be reached when scanning large amount of files. But TrueZip development seems to be abandonned for some time now... Well, Truezip does the trick but I