phingofficial / guide Goto Github PK
View Code? Open in Web Editor NEWThe Phing user guide
License: Other
The Phing user guide
License: Other
Hi, currently I find very hard to update documentation, more specifically Optional Tasks file source/appendixes/optionaltasks.xml
is very large.
So what do you think about splitting this file in many files (one per task)?
I can take care of this if you agree. Thanks :)
Describe the bug
Random errors when calling 3+ parallel tasks
Steps To Reproduce
create test.xml
<?xml version="1.0" ?>
<project name="parallel_test" basedir="." default="parallel_test">
<target name="parallel_test">
<parallel threadCount="3">
<exec executable="php" passthru="true"><arg line="-v"/></exec>
<exec executable="php" passthru="true"><arg line="-v"/></exec>
<exec executable="php" passthru="true"><arg line="-v"/></exec>
</parallel>
</target>
</project>
run:
phing -f test.xml
Expected behavior
it should output php version info 3 times
Screenshots / terminal output
parallel_test > parallel_test:
[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Task/System/Condition/OsCondition.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Task/System/Condition/OsCondition.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/CommandlineArgument.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Type/CommandlineArgument.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/Commandline.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Type/Commandline.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Task/System/Condition/OsCondition.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/CommandlineArgument.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/Commandline.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
BUILD FAILED
Class "Phing\Task\System\Condition\OsCondition" not found
Total time: 0.0702 seconds
Class "Phing\Task\System\Condition\OsCondition" not found
BUILD FAILED
Class "Phing\Type\CommandlineArgument" not found
Total time: 0.0703 seconds
BUILD FAILED
Class "Phing\Type\Commandline" not found
Total time: 0.0703 seconds
Class "Phing\Type\CommandlineArgument" not found
Class "Phing\Type\Commandline" not found
[PHP Error] fopen(/tmp/dpm_OJ1dS9): Failed to open stream: No such file or directory [line 115 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]
[PHP Error] filesize(): stat failed for /tmp/dpm_OJ1dS9 [line 116 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]
BUILD FAILED
fread(): Argument phingofficial/phing#1 ($stream) must be of type resource, bool given
Total time: 0.0760 seconds
fread(): Argument phingofficial/phing#1 ($stream) must be of type resource, bool given
Additional context
Error each time can be little bit different but most of the time it is in the end:
[PHP Error] fopen(/tmp/dpm_ncYpUs): Failed to open stream: No such file or directory [line 115 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]
PHP version: 8.0.14 (but the same problem also in PHP8.1)
Phing 3.0.0-RC3
Describe the bug
I am running into a couple of issues running the phpunit tests for the latest/main of phing. I am running them on a 32-bit linux system.
Steps To Reproduce
Checkout/clone phing and run the unit tests on a 32-bit system.
$ composer install
$ cd tests
$ ../bin/phing
Expected behavior
All tests should pass on a clean checkout/clone of the repo.
Additional context
I didn't see anything that said the phing tool, or the unit tests, were dependent on a 64-bit system. But there are a couple of places that make this assumption by using int
types. Since the php int
type is system dependent, these should be set up in a way that works on any 64 or 32-bit system. Or it should be documented that a 64-bit system is required to use phing.
Documentation needs update on SizeSelector, FileSize and Truncate Tasks to cover the generalized units behavior.
Related to phingofficial/phing#1482
We should document with an example how to set excludesfile and defaultexcludes handling for FileSets.
Related to phingofficial/phing#1498
The examples in the DirSet online docs (section D5) don't show dirsets, just filesets. Is that intentional?
I would join the maillist from phing.tigris.org as per the documentation suggestion, but it doesn't seem to be accessible.
Filelist is dolcumentated the wrong way regarding the required attributes.
Fixes phingofficial/phing#1522
Related to phingofficial/phing#1316 we should add the subphing
task to the documentation.
We want to use Monolog in our Projects. In these Projects we also use Phing.
Could you add an Example which describes how to use/configure the MonologListener?
Related to phingofficial/phing#1349
Hi, in #34 I split optionaltasks.xml
in smaller files. I'm thinking about doing the same but with coretasks.xml
.
Please let me know if you are interested, otherwise please feel free to close this issue :)
The command
attribute of the ExecTask is marked as deprecated, but all Examples use this attribute.
Could you add some examples for the the alternative syntax with executable
attribute?
Could you also add some more complex rewrite examples, eg when using pipes in the command?
We use commands like the following in our project.
<exec command="ls -1 ${dir}/*.sql | grep -Ev '/[0-9]+\.sql$'" outputProperty="files"/>
<exec command="mysql --execute='SELECT COUNT(`TABLE_NAME`) FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`="${db.server.main.name}" AND `TABLE_NAME` LIKE "_DbVersion"' --host='${db.server.main.host}' --port='${db.server.main.port}' --user='${db.server.main.username}' --password='${db.server.main.password}' --database='${db.server.main.name}' -s -N | sed -e '$!d'" outputProperty="dbVersionExists" />
We want to use Monolog in our Projects. In these Projects we also use Phing.
Could you add an Example which describes how to use the MonologListener?
Related to phingofficial/phing#1324 we should add the new extension points feature.
Related to phingofficial/phing#1628
-logger phing.listener.DefaultLogger
causes error:
Phing\Exception\ConfigurationException: Error importing phing.listener.DefaultLogger.php in phar://C:/phing/phing-3.0.0-RC1.phar/src/Phing/Phing.php:1395
We need a subchapter and example to extend phing by an own listener/logger implementation.
https://www.phing.info/guide/hlhtml/#ch.extending
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.