Decouple update task from install
Now that Gradle runs Helma with the configured dependencies, updating the installation directory has become less crucial
This commit is contained in:
parent
196794cd93
commit
79b7e8092b
2 changed files with 6 additions and 6 deletions
|
@ -33,10 +33,12 @@ Helma is built with [Gradle](https://gradle.org), the build task depends on the
|
|||
|
||||
### Additional Prerequisites
|
||||
|
||||
* [Rsync](https://rsync.samba.org) version ≥ 3.1.0
|
||||
* [Node.js](https://nodejs.org) LTS version
|
||||
* [Rsync](https://rsync.samba.org) version ≥ 3.1.0
|
||||
|
||||
Clone this repository to your machine and start the build process with `./gradlew install`. The build script is going to ask you if you want to update the installation, enter `yes` or `no`.
|
||||
Clone this repository to your machine and run Helma with `./gradlew run`.
|
||||
|
||||
To update the installation from a build, run `./gradlew update` and enter `yes` at the prompt.
|
||||
|
||||
> ⚠️
|
||||
> Please be aware that this step is going to overwrite files in the installation directory – escpecially at a later time when there might be substantial changes. Should this happen by accident you find the previous installation in the `backups` directory.
|
||||
|
|
|
@ -152,10 +152,6 @@ distZip {
|
|||
|
||||
installDist {
|
||||
dependsOn build
|
||||
|
||||
if (!System.getenv('CI')) {
|
||||
finalizedBy 'update'
|
||||
}
|
||||
}
|
||||
|
||||
task processSource(type: Sync) {
|
||||
|
@ -183,6 +179,8 @@ task processSource(type: Sync) {
|
|||
}
|
||||
|
||||
task update {
|
||||
dependsOn installDist
|
||||
|
||||
def rsyncArgs = ['--archive', '--filter', '- backups']
|
||||
|
||||
def confirm = {
|
||||
|
|
Loading…
Add table
Reference in a new issue