These are things I often need to use but forget. They aren't tricky or difficult, just reminders. * denotes a recommended method.
Return an empty/blank result...
Use `IFERROR(0/0)`
IF(TRUE(),"blah",IFERROR(0/0))
// --- Utility functions ----------------------------------------------- | |
inline fun <reified T : Task> task(noinline configuration: T.() -> Unit) = | |
tasks.registering(T::class, configuration) | |
// Usage | |
val customInstallation by task<Copy> { | |
description = "Copies latest gradle-kotlin-dsl snapshot over the custom installation." | |
dependsOn(copyCurrentDistro) | |
from(distribution) | |
into("$customInstallationDir/lib") |
// From https://github.com/gradle/kotlin-dsl/blob/70aca202558f2f6e43cd8ead3ec95d669bfd7b33/build.gradle.kts#L69 | |
// Preserve file modified dates without using ant.copy task | |
val copyCurrentDistro by task<Copy> { | |
description = "Copies the current Gradle distro into '$customInstallationDir'." | |
from(gradle.gradleHomeDir) | |
into(customInstallationDir) | |
exclude("**/*kotlin*") | |
// preserve last modified date on each file to make it easier |
set -a; . conf-file; set +a |
set -- each one of us is a part of STDIN |
If anyone is interested in more tutorials of things they find mentioned here or would like a sample set of settings files with instructions on how to safely try it out, let me know! ~monkey/fuzzyweapon
Please use the comments section (if you can) to provide feedback, corrections, improvements.
In this guide, we'll be stepping through a tutorial that demonstrates some advanced techniques.
Before doing this, make sure that you setup Chrome to be your default browser or the updater will fail (Firefox will be supported-ish in a future release which you will get automatically).
%APPDATA%\ATLauncher\instances
, delete your NowWhat folder, and then re-make it
%APPDATA%\ATLauncher\instances\NowWhat
foldercd %APPDATA%\ATLauncher\instances\NowWhat