public class GrailsUpdater extends java.lang.Object
Handles updating the grails-cli shadowJar under `~/.grails/wrapper`
Constructor and description |
---|
GrailsUpdater(java.util.List<GrailsReleaseType> allowedTypes, GrailsVersion preferredVersion)
|
GrailsUpdater(java.util.List<GrailsReleaseType> allowedTypes, GrailsVersion preferredVersion, java.lang.String possibleGrailsHome)
|
Type Params | Return Type | Name and description |
---|---|---|
|
public java.io.File |
getExecutedJarFile()
|
|
public GrailsVersion |
getSelectedVersion()
|
|
public boolean |
needsUpdating()
|
|
public static java.lang.String |
readableSize(long bytes, boolean addSeconds) |
|
public boolean |
update() Fetches the selectedVersion and if it already exists, replaces the jar file. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
allowedTypes
- the release types that are allowed to be updated topreferredVersion
- the preferred version to update toallowedTypes
- the release types that are allowed to be updated topreferredVersion
- the preferred version to update topossibleGrailsHome
- a possible directory for the grails home
Fetches the selectedVersion and if it already exists, replaces the jar file.