Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not create task/type: 'scp'. Make sure that this class has been declared using taskdef / typedef. (3.0.0-alpha4) #1372

Closed
tricoos opened this issue Sep 1, 2020 · 4 comments
Assignees
Milestone

Comments

@tricoos
Copy link

tricoos commented Sep 1, 2020

Using ScpTask with the 3.0.0-alpha4 version just leads to an error:

In build.xml:

<target name="deploy">
        <echo msg="Deploying to the server..."/>
        <scp username="..." host="..." todir="..." pubkeyfile="..." privkeyfile="...">
            <fileset dir="${outputdir}">
                <include name="latest.txt"/>
            </fileset>
        </scp>
    </target>

Error:
Could not create task/type: 'scp'. Make sure that this class has been declared using taskdef / typedef.

Documentation:
https://www.phing.info/guide/chunkhtml/ScpTask.html

Version Info:

  • PHP 7.3.19-1~deb10u1
  • PHING 3.0.0-alpha4 (phar archive)

PHPINFO
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
libssh2 version => 1.8.0
banner => SSH-2.0-libssh2_1.8.0

@tricoos
Copy link
Author

tricoos commented Sep 1, 2020

Aha, in commit 79d0bec (PR #1267) in Feb 16 2020 it seems to have been moved to "its own repo". But that still does not explain why it is not in the phar archive anymore.

@mrook
Copy link
Member

mrook commented Sep 1, 2020

Probably because we broke something in the .phar build process. Will investigate.

@siad007
Copy link
Member

siad007 commented Sep 1, 2020

@mrook I guess there are not all files available in the phar as you mentioned above. Will also have a look if the files custom.task.properties and custom.type.properties are available in the phar distribution.

@mrook mrook added this to the 3.0.0-rc1 milestone Sep 2, 2020
@mrook
Copy link
Member

mrook commented Sep 2, 2020

Both custom files were not part of the phar build process, that's been fixed now (and will be incorporated in the next release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants