println it

Software blog about tools, builds and making it all work

Java

Intellij IDEA + Git performance = KIS

Once upon a time .. something happened to Intellij IDEA. Every Git operation was taking a very long time and all I had to do is to wait while staring at it. “Compare with Latest Repository Version” was taking ages to complete. Something was definitely wrong and although I blamed IDEA EAP builds initially, that [...]

, , ,

Ubuntu: Installing Apache Portable Runtime (APR) for Tomcat

After reading “Introducing Apache Tomcat 6″ presentation by Mladen Turk I decided to enable Apache Portable Runtime (APR) native library for Tomcat. It was supposed to be as easy as but as you may guess, it was a little bit more than that. 1. Installing Apache APR. “Most Linux distributions will ship packages for APR” [...]

, , , ,

Watch out, illegal Jetty URL

Is the following URL legal? http://host?param=value Well, for Jetty 7.x it is not. And I couldn’t understand why before a friend of mine pointed to a missing “/”: http://host/?param=value As it appears, if you have a ContextHandler registered to service “/” requests, as we did, Jetty rejects any of them coming without a slash with [...]

,

Neat Delicious trick – keywords combination

The real beauty of Delicious lies in keywords combinations. I mentioned already that Delicious is my #2 most favorite productivity tool. Within time I developed a set of the most frequently-used keywords in the right column that can be combined with tags in the left column: “hudson” – Mailing list – “ml” “spring” – Issue [...]

, , , , , , ,

Artifactory REST API with Spring 3 RestTemplate

Artifactory’s REST API is something I was using quite a lot recently and would like to share my experience here. Normally, there’s no need to turn to the REST API when working with Artifactory and in most cases Maven, Hudson or TeamCity plugins are the only ones “talking” to it. But in this specific case [...]

, , , ,

Ant FTP task: adding progress indicator and timeout

Ant FTP task provides no option to display how much the download has progressed so far, similarly to wget or curl verbose options. Setting connection timeout isn’t possible either. But I had to implement it one day and here is what I have found out: Ant FTP task uses org.apache.commons.net.ftp.FTPClient Keeping track of download progress [...]

, , ,

Groovy 1.7.3: AnnoMojo + GroovyMojo!

I waited a lot. Oh boy, I did.   .. Rewind back half a year ..   Writing Maven plugins, or MOJOs, is a real need when you work with Maven. It just feels unnatural not to. Default Maven behavior and set of plugins is only good for common situations and the moment you’re doing [...]

, , ,

Artifactory Online – the case of distributing Groovy++

After working with open source Artifactory version and thoroughly exploring it’s add-ons I knew it would come a moment to put my hands on its cloud solution – Artifactory Online. It just made sense to “close the loop” this way .. Тhe moment I’ve heard about online instance, running 24×7 without having to take care [...]

, , ,

Uploading files – multipart HTTP POST and Apache HttpClient

I had to implement a files transferring mechanism where one machine was sending files to another using “multipart/form-data” POST request. It can be done using Apache’s Commons FileUpload and HttpClient. The receiving part was an easy one: We parse an incoming request with ServletFileUpload and get a list of FileItems in return. Each FileItem is [...]

, , , , ,

Searching for classes inside *.jar files

Just a quick tip about searching for classes inside *.jar files. TC rocks! I was introduced Agent Ransack today but .. nothing beats good old Alt+F7 :)  

,

Previous Posts