ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 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