Modify

Ticket #77 (closed defect: duplicate)

Opened 5 years ago

Last modified 4 years ago

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

comment:1 Changed 5 years ago by hans

  • Status changed from new to closed
  • Resolution set to duplicate
  • Component set to cruisecontrol-builder-plugin

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

comment:2 Changed 4 years ago by hans

  • Milestone changed from 2.2.1 to 2.3.0

Milestone 2.2.1 deleted

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.