Home Articles Code Programs Photos
Created: 2008-11-29 ~ Updated: 2009-03-21

Programs : RefactorBUDDY

RefactorBUDDY is a tool for refactoring code, markup, etc, which is based around a core function of Find & Replace over a directory tree.

This program is being built in stages. Currently a fully functional multi-pattern find/replace of file names and contents is in place. The next stage is externally definable refactoring "templates" to facilitate package/module, class and member refactoring.

Update 2008-08-26: Version 0.2 - Restore from backup.

Update 2008-09-10: Version 0.3 - EasyEx type definition.

Update 2009-03-15: Version 0.4 - Renaming of directories and files.

The find & replace engine utilizes EasyEx pattern matching technology, with the kind permission of Advanced BusinessLink Corporation. Easy expressions are an alternative to regular expressions, designed to be far less cryptic to build and comprehend.

Note that full help text is not planned until the 1.0 build, although some basic help for using EasyEx is currently included.

Features In Place:

  • Multi-pattern find and replace with compressed archive backup.
  • Custom pattern element definition.
  • Restore from backup.
  • Renaming directories and files.

Download & Installation

Download RefactorBUDDY 0.4.5 (Total downloads: 16)

RefactorBUDDY requires the Java 5 Runtime Engine or better to run. The JRE need only be installed once to run any number of Java applications. If you are unsure whether you already have the JRE installed you can check it on the Java website using the "Do I have Java?" link.

The RefactorBUDDY program is installed manually, simply by copying it to a directory on your computer; the recommended location is a subdirectory named RefactorBUDDY in the standard directory for programs/binaries on your computer (e.g. for Windows this would be:

C:\Program Files\RefactorBUDDY

while for a Linux, OSX or Unix O/S this would be:

/usr/bin/RefactorBUDDY

The program uses the current directory for any files it acesses including the logs and backup archives that it writes. The easiest way to run the program is via a shortcut, launcher or script that sets the current directory to any desired location within your user profile's data directory.

Alternatively, the simplest installation is to drop the JAR executable directly into the desired data directory. This is an ideal way to trial the program; it can be moved to the long-term program location at any time in the future, without affecting any existing data.

If your operating system does not support launching Java programs directly, you can use the following command line:

java -jar RefactorBUDDY.jar

An example of a Window's shortcut is:

Shortcut

Screenshots

The Main Window

Main Window