Home » Author Archives: Dustin Marx (page 7)

Author Archives: Dustin Marx

Simple Gradle Java Plugin Customization

gradle-logo

As I demonstrated in the post A First Look at Building Java with Gradle, Gradle is particularly concise and easy to apply to the basics of building a Java application when one uses the Java plugin and places files and directories where this plugin expects them (convention-based project layout). However, it is not always possible to have a structure (especially ...

Read More »

Searching Subversion Logs with Groovy

groovy-logo

There are times when I want to quickly search a Subversion repository by author, by range of revisions, and/or by commit messages. Krzysztof Kotowicz has posted the blog post Grep Subversion log messages with svn-grep that introduces svn-grep, a bash script making use of the command line XML toolkit called xmlstarlet (xmlstarlet is also available on Windows). This is a ...

Read More »

Determining Presence of Characters or Integers in String with Guava CharMatcher and Apache Commons Lang StringUtils

java-logo

A recent Reddit post asked the question, “Is there a predefined method for checking if a variable value contains a particular character or integer?” That question-based title was also asked a different way, “A method or quick way for checking if a variable contains any numbers say or (‘x’,2,’B’) like a list?” I am not aware of any single method ...

Read More »

Gradle Command-Line Conveniences

gradle-logo

In my post A First Look at Building Java with Gradle, I briefly mentioned using Gradle‘s “gradle tasks” command to see the available tasks for a particular Gradle build. In this post, I expand on that brief mention a bit more and look at some related Gradle command-line conveniences. Gradle makes it easy to determine available Gradle tasks for a ...

Read More »

Orika: Mapping JAXB Objects to Business/Domain Objects

java-interview-questions-answers

This post looks at mapping JAXB objects to business domain objects with Orika. Earlier this month, I covered the same mapping use case using reflection-based Dozer. In this post, I’ll assume the same example classes need to be mapped, but they will be mapped using Orika instead of Dozer. Dozer and Orika are intended to solve the same type of ...

Read More »

Sublime Simplicity of Scripting with Groovy

groovy-logo

Many of my blog posts are, as my blog’s title suggests, inspired by actual events. Three experiences this week have reminded me yet again of the simple simplicity of scripting with Groovy. In this post, I briefly look at each of these three events that are only related because they tie to Groovy and to scripting with Groovy. Groovy Provides ...

Read More »

Listening and Logging Ant Output in Groovy

groovy-logo

In the comments section of my post Executing Ant Build File Targets from Groovy, CRC recently asked, “I’ve used your script and it seems to work but I could’t see any output at the console (I’m calling a echo task in build.xml), why?” This is a great question and one that I feel is better answered in a post than ...

Read More »

Dozer: Mapping JAXB Objects to Business/Domain Objects

java-interview-questions-answers

Dozer is an open source (Apache 2 license) "Java Bean to Java Bean mapper that recursively copies data from one object to another." As this description from its main web page states, it is used to map two JavaBeans instances for automatic data copying between the instances. Although these can be any of the many types of JavaBeans instances, I ...

Read More »

More Common Red Flags in Java Development

java-logo

In the post Common Red Flags in Java Development I looked at some practices that are not necessarily wrong or incorrect in and of themselves, but can be indicative of potentially greater problems. These “red flags” are similar to the concept of “code smells” and some of the particular “red flags” I cite in this post have been called “code ...

Read More »

Uncompressing 7-Zip Files with Groovy and 7-Zip-JBinding

groovy-logo

This post demonstrates a Groovy script for uncompressing files with the 7-Zip archive format. The two primary objectives of this post are to demonstrate uncompressing 7-Zip files with Groovy and the handy 7-Zip-JBinding and to call out and demonstrate some key characteristics of Groovy as a scripting language. The 7-Zip page describes 7-Zip as “a file archiver with a high ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close