The buildpack provides a number of other utilities that may help in implementing components.
The ClassFileUtils
class provides a method for getting all of the class files in an application.
The ConfigurationUtils
class provides a method for getting the parsed contents of a configuration file from the buildpack configuration directory.
The GroovyUtils
class provides a set of methods for finding groovy files and determing if they are of any special kind (e.g. they have a main method, they are a pogo, etc.).
The JavaMainUtils
class provides a a set of methods for determining the Java main class of an application if it exists.
The Properties
class provides a Ruby class that can read in a Java properties file and acts as a Hash
with that data.
The shell
method encapsulates a standard shell invocation in the buildpack. It ensures that the output of the command is suppressed unless the command fails. When that happens, the content of stdout
and stderr
are printed. This method is mixed into the BaseComponent
class and all of its subclasses.