setUrl
val file = _files.buildFile {
setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
}
_console.log(file.getFile().length())
def file = $files.buildFile {
setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
}
$console.log(file.getFile().length())
let file = $files.buildFile((fileBuilder) => {
fileBuilder.setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
})
$console.log(file.getFile().length())
local file = _files:buildFile(function(fileBuilder)
fileBuilder:setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
end)
_console:log(file:getFile():length())
<?php
$file = $files->buildFile(function ($fileBuilder) {
$fileBuilder->setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar");
});
$console->log($file->getFile()->length());
def fn(fileBuilder):
fileBuilder.setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
file = _files.buildFile(fn)
_console.log(file.getFile().length())
file = $files.buildFile { |fileBuilder|
fileBuilder.setUrl("https://github.com/m8test/runtime-release/raw/refs/heads/main/frameworks/android-34.jar")
}
$console.log(file.getFile().length())
Last modified: 29 April 2025