生成 phar 包的 Apache Ant 任务?
我正在将我的 php 项目移动到 phar 包,虽然 Eclipse(我使用 e4.1)很好地生成 phas,但我在相应地更新项目的部署 ant 脚本时遇到了问题...
注意: < em>我不想使用 ant 的 exec 来调用操作系统的 php 运行时来做到这一点。我不能总是依赖它...
A. 是否有一个可以生成 phar 包的 ant 任务?
B. 有没有办法无头调用Eclipse的phar导出任务?
C. 有没有办法使用 eclipse 的 php 运行时通过 ant 执行 php 脚本?
I'm moving my php projects to phar packages and while Eclipse (I'm using e4.1) generates phars nicely, I have a problem with updating project's deployment ant scripts accordingly...
NOTE: I don't want to use ant's exec to call operating system's php runtime to do that. I cannot always rely on it to be there...
A. Is there an ant task which can generate phar packages?
B. Is there a way to call Eclipse's phar export task headlessly?
C. Is there a way to execute php script by ant using eclipse's php runtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
手册指出:
因此,您只需压缩一些文件并将生成的文件命名为
.phar
。The manual states:
So you can just zip some files up and name the resulting file
.phar
.Eclipse 的 PHP 运行时也是一个位于插件文件夹深处的 php 可执行文件。
Eclipse's PHP runtime is also a php executable that is located deeply in a plugin folder.