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