Skip to content

Instantly share code, notes, and snippets.

@er1c
Created September 29, 2021 19:25
Show Gist options
  • Save er1c/eeef3bfba385ed17b73af75dccd3b812 to your computer and use it in GitHub Desktop.
Save er1c/eeef3bfba385ed17b73af75dccd3b812 to your computer and use it in GitHub Desktop.
# 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
$ exists target/scala-2.11/foo.jar
# check if already cached
> clearLog
> assembly
> 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
# 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
> checkunzip
> cleanzip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment