Modify ↓
Ticket #77 (closed defect: duplicate)
taskdef doesn't support fileset
| Reported by: | julien@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.3.0 |
| Component: | cruisecontrol-builder-plugin | Version: | 2.2.0 |
| Keywords: | Cc: |
Description
If you try this:
<taskdef name="gettext-findstr" classname="phing.tasks.PhpLintTask" />
<gettext-findstr>
<fileset dir=".">
<include name="**/*.php" />
</fileset>
</gettext-findstr>
You will have this error message:
Fatal error: Argument 1 passed to IntrospectionHelper::createElement() must not be null, called in /home/noplay/coding/phing/classes/phing/UnknownElement.php on line 133 and defined in /home/noplay/coding/phing/classes/phing/IntrospectionHelper.php on line 384
After some search i see this:
function createTask($taskType) {
try {
$cls = "";
$tasklwr = strtolower($taskType);
foreach ($this->taskdefs as $name => $class) {
if (strtolower($name) === $tasklwr) {
$cls = StringHelper::unqualify($class);
break;
}
}
if ($cls === "") {
return null;
}
My task are not into $this->taskdefs when i am in my fileset.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

I believe this is a duplicate as #118, which has now been fixed (in changeset:205).