🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# B.44 Tempfile Task This task sets a property to the name of a temporary file. Unlike PhingFile::createTempFile(), this task does not actually create the temporary file, but it does guarantee that the file did not exist when the task was executed. Table B.45:聽Attributes NameTypeDescriptionDefaultRequired`property``String`Sets the property you wish to assign the temporary file to.n/ayes`destdir``String`Sets the destination directory. If not set, the basedir directory is used instead.basedirno`prefix``String`Sets the optional prefix string for the temp file.n/ano`suffix``String`Sets the optional suffix string for the temp file.n/ano`deleteonexit``Boolean`Whether the temp file will be marked for deletion on normal exit (even though the file may never be created).falseno`createfile``Boolean`Whether the temp file should be created by this task.falseno B.44.1 Example `<tempfile property="temp.file"/>`create a temporary file `<tempfile property="temp.file" suffix=".xml"/>`create a temporary file with the .xml suffix `<tempfile property="temp.file" destDir="build"/>`create a temporary file in the `build` subdirectory