
You will need a recent version of the Java runtime environment (as well as a complete JDK if you plan to modify the source code).ĭownload this repository (you can download or clone the repo by clicking the button to the right of this page).Īdd the absolute path of the bin directory to your path.

#GROOVY FORMATTER INSTALL#
OS, you will need to install a bash terminal (git, cygwin, etc.). Only a bash script has been made for this program, so if you work on a windows That being said, all software associated with this program isĬovered under the Apache and Eclipse Public licenses. In addition, the groovy formatter has been modified so that it wouldĬancel any formatting of source code that contained unrecognizable syntax. This formatter has been tested on over 1000 groovy and java files. The java and groovy formatters incase you prefer different standards.
#GROOVY FORMATTER HOW TO#
In addition, there are instructions on how to add your own preferences to Feel free to download this repository and add formatters of your own. Below are directions on how to setup and use this formatter, but also included is information on how to add more formatters to this project. However, this project has the potential to format an unlimited number of languages. So it was decided to extract those classes and add them to this project. The Eclipse IDE and The Groovy-Eclipse plugin provide effective java and groovy source code formatters respectively, See documentation for SimpleDateFormat for format. For example: def d new Date (0) def tz TimeZone.getTimeZone ('GMT') println d.format ('dd/MMM/yyyy', tz) would return the string '01/Jan/1970'. Into one easy-to-use command-line feature. public String format ( String format, TimeZone tz) Create a String representation of this date according to the given format pattern and timezone.

Originally converted from the groovy.tmbundle. String padLeft (Number numberOfCharacters) Pad the String with the spaces appended to the left. The goal of this project is to combine the formatting capabilities of various projects in the open source community Adds syntax highlighting and snippets to Groovy files in Atom. Groovy - padLeft () Pad the String with the spaces appended to the left.This method has 2 different variants.
