|

Challenge with multiple GitHub accounts

There are several great articles giving advice on how to handle multiple GitHub accounts. The one I liked in particular has a pretty self-explanatory title: Automatically use correct SSH key for remote Git repo I value the article for two main reasons: It helped me solve my problem with the authentication agent It gave me an idea of…

Hadoop: How to add all JARs onto the Classpath

I’ve just begun with Apache Hadoop. Getting started isn’t as straightforward as one might wish. There is quite a bit of work to do after the initial installation (“brew install hadoop” in my case). Expect tweaks and workarounds. Fortunately, there is plenty of advice available, such as this excellent blog post. After having installed the latest stable version (2.7.1)…

|

Gradle: Copy selected files without using the exclude pattern

Copying files in Gradle is very intuitive. It’s easy enough to filter out unwanted files using the exclude pattern. Example (see documentation): task copyTaskWithPatterns(type: Copy) { from ‘src/main/webapp’ into ‘build/explodedWar’ include ‘**/*.html’ include ‘**/*.jsp’ exclude { details -> details.file.name.endsWith(‘.html’) && details.file.text.contains(‘staging’) } } The problem occurs, when you only want to copy specific files and…