Ticket #69 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

mkdir and delete tasks don't work properly together

Reported by: anonymous Assigned to: hans
Priority: major Milestone: 2.3.0
Component: phing-tasks-system Version: 2.2.0
Keywords: Cc:

Description

I have attached a build.xml that I am using for a project. It is very simple, there is an init task which all other tasks (except clean) depend on, this should create a folder called "build". The clean task deletes this folder. These tasks work fine when run individually. However, when I try run the clean task and then a task which depends on init I see very strange behaviour:

On the first run of "phing clean deploy-local) (build folder not yet created) clean does nothing (this is correct, no folder to delete). The init target then runs and creates the folder and then the deploy target. All well and good up to this point. Then I run the exact same command again and clean this time removes the build folder, but now when init gets run (and it is run), mkdir outputs nothing and the build folder is not created and our build falls over.

I have attached a file (output.txt) showing the output of running the command twice.

My OS is Kubuntu Linux 6.06 64-bit AMD.

Attachments

output.txt (0.9 kB) - added by adrian.woodhead@gmail.com on 02/05/07 11:57:40.
output of running phing command twicce
build.xml (3.7 kB) - added by adrian.woodhead@gmail.com on 02/05/07 11:58:43.
phing build file

Change History

02/05/07 11:57:40 changed by adrian.woodhead@gmail.com

  • attachment output.txt added.

output of running phing command twicce

02/05/07 11:58:43 changed by adrian.woodhead@gmail.com

  • attachment build.xml added.

phing build file

02/05/07 18:14:53 changed by hans

  • owner set to hans.
  • status changed from new to assigned.
  • milestone set to 2.2.1.

04/18/07 08:51:14 changed by mrook

  • component set to cruisecontrol-builder-plugin.

It seems this is a side-effect of the caching of the results stat functions such as "is_dir()".

04/18/07 08:54:19 changed by mrook

  • status changed from assigned to closed.
  • resolution set to fixed.
  • component changed from cruisecontrol-builder-plugin to phing-tasks-system.
  • milestone changed from 2.2.1 to 2.3.0.

Fixed in r185 (trunk).


Add/Change #69 (mkdir and delete tasks don't work properly together)




Action