forked from softprops/assembly-sbt
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update unzip logging to be more verbose, add locking on jar unzip pro…
…cess
- Loading branch information
Showing
5 changed files
with
143 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,63 @@ | ||
# check if the file gets created and unzips and creates hardlinks | ||
> clean | ||
> assembly | ||
> checkLogContains Unzipping into unzip cache: slf4j-api-1.6.1.jar | ||
> checkLogContains Unzipping into unzip cache: commons-io-2.4.jar | ||
> checkLogContains Unzipping into unzip cache: logback-classic-0.9.29.jar | ||
> checkLogContains Unzipping into unzip cache: logback-core-0.9.29.jar | ||
> checkLogContains Unzipping into unzip cache: scala-library-2.11.12.jar | ||
> checkLogContains Creating hardlinks from unzip cache: slf4j-api-1.6.1.jar | ||
> checkLogContains Creating hardlinks from unzip cache: commons-io-2.4.jar | ||
> checkLogContains Creating hardlinks from unzip cache: logback-classic-0.9.29.jar | ||
> checkLogContains Creating hardlinks from unzip cache: logback-core-0.9.29.jar | ||
> checkLogContains Creating hardlinks from unzip cache: scala-library-2.11.12.jar | ||
# Ensure all warnings have time to be printed | ||
$ sleep 1000 | ||
> checkLogContains Unzipping slf4j-api-1.6.1.jar into unzip cache | ||
> checkLogContains Unzipping commons-io-2.4.jar into unzip cache | ||
> checkLogContains Unzipping logback-classic-0.9.29.jar into unzip cache | ||
> checkLogContains Unzipping logback-core-0.9.29.jar into unzip cache | ||
> checkLogContains Unzipping scala-library-2.11.12.jar into unzip cache | ||
> checkLogContains Creating hardlinks of slf4j-api-1.6.1.jar from unzip cache | ||
> checkLogContains Creating hardlinks of commons-io-2.4.jar from unzip cache | ||
> checkLogContains Creating hardlinks of logback-classic-0.9.29.jar from unzip cache | ||
> checkLogContains Creating hardlinks of logback-core-0.9.29.jar from unzip cache | ||
> checkLogContains Creating hardlinks of scala-library-2.11.12.jar from unzip cache | ||
$ exists target/scala-2.11/foo.jar | ||
|
||
# check if already cached | ||
> clearLog | ||
> assembly | ||
# Ensure all warnings have time to be printed | ||
$ sleep 1000 | ||
> checkLogContains Assembly up to date | ||
|
||
# check if creates from cache files | ||
> clearLog | ||
$ delete target/scala-2.11/foo.jar | ||
> assembly | ||
> checkLogContains Including from output cache: slf4j-api-1.6.1.jar | ||
> checkLogContains Including from output cache: commons-io-2.4.jar | ||
> checkLogContains Including from output cache: logback-classic-0.9.29.jar | ||
> checkLogContains Including from output cache: logback-core-0.9.29.jar | ||
> checkLogContains Including from output cache: scala-library-2.11.12.jar | ||
# Ensure all warnings have time to be printed | ||
$ sleep 1000 | ||
> checkLogContains Including slf4j-api-1.6.1.jar from output cache | ||
> checkLogContains Including commons-io-2.4.jar from output cache | ||
> checkLogContains Including logback-classic-0.9.29.jar from output cache | ||
> checkLogContains Including logback-core-0.9.29.jar from output cache | ||
> checkLogContains Including scala-library-2.11.12.jar from output cache | ||
|
||
# check for using unzip cache | ||
> clean | ||
$ absent target/scala-2.11 | ||
> clearLog | ||
> assembly | ||
> checkLogContains Creating hardlinks from unzip cache: slf4j-api-1.6.1.jar | ||
> checkLogContains Creating hardlinks from unzip cache: commons-io-2.4.jar | ||
> checkLogContains Creating hardlinks from unzip cache: logback-classic-0.9.29.jar | ||
> checkLogContains Creating hardlinks from unzip cache: logback-core-0.9.29.jar | ||
> checkLogContains Creating hardlinks from unzip cache: scala-library-2.11.12.jar | ||
# Ensure all warnings have time to be printed | ||
$ sleep 1000 | ||
> checkLogContains Creating hardlinks of slf4j-api-1.6.1.jar from unzip cache | ||
> checkLogContains Creating hardlinks of commons-io-2.4.jar from unzip cache | ||
> checkLogContains Creating hardlinks of logback-classic-0.9.29.jar from unzip cache | ||
> checkLogContains Creating hardlinks of logback-core-0.9.29.jar from unzip cache | ||
> checkLogContains Creating hardlinks of scala-library-2.11.12.jar from unzip cache | ||
> checkunzip | ||
|
||
> cleanunzip | ||
> clearLog | ||
> clean | ||
> clearLog | ||
> assemblyCacheDependency | ||
> checkLogContains Unzipping into unzip cache: slf4j-api-1.6.1.jar | ||
> checkLogContains Unzipping into unzip cache: commons-io-2.4.jar | ||
> checkLogContains Unzipping into unzip cache: logback-classic-0.9.29.jar | ||
> checkLogContains Unzipping into unzip cache: logback-core-0.9.29.jar | ||
> checkLogContains Unzipping into unzip cache: scala-library-2.11.12.jar | ||
# Ensure all warnings have time to be printed | ||
$ sleep 1000 | ||
> checkLogContains Unzipping slf4j-api-1.6.1.jar into unzip cache | ||
> checkLogContains Unzipping commons-io-2.4.jar into unzip cache | ||
> checkLogContains Unzipping logback-classic-0.9.29.jar into unzip cache | ||
> checkLogContains Unzipping logback-core-0.9.29.jar into unzip cache | ||
> checkLogContains Unzipping scala-library-2.11.12.jar into unzip cache | ||
|
||
> cleanunzip |