Skip to content

Instantly share code, notes, and snippets.

@basz
Created July 6, 2012 08:29
Show Gist options
  • Select an option

  • Save basz/3058954 to your computer and use it in GitHub Desktop.

Select an option

Save basz/3058954 to your computer and use it in GitHub Desktop.
Can't get HtmlColorLogger going
command I use:
export PHP_COMMAND=/usr/bin/php && export PHING_HOME=/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing && \
export PHP_CLASSPATH=${PHING_HOME}/classes && export PATH=${PATH}:${PHING_HOME}/bin && \
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing/bin/phing \
-buildfile '/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/bushbaby/zf2-module-phing-service/data/build-example.xml' \
-logger 'phing.listener.HtmlColorLogger' show-defaults diet
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
which outputs :
Buildfile: /Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/bushbaby/zf2-module-phing-service/data/build-example.xml
PhingService Demo Project > show-defaults:
[echo]
Built-In Properties
application.startdir Current work directory
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl
env.* Environment variables, extracted from $_SERVER.
env.PHP_COMMAND /usr/bin/php
env.PHING_HOME /Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing
env.PHP_CLASSPATH /Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing/classes
env.PATH /opt/local/bin:/opt/local/sbin:/Users/bas/bin:/opt/local/libexec/git-core:/opt/local/apache2/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing/bin
host.arch System architecture, i.e. i586. Not available on Windows machines.
x86_64
host.domain DNS domain name, i.e. php.net. Not available on Windows machines.
unknown
host.fstype The type of the filesystem. Possible values are UNIX, WINNT and WIN32
UNIX
host.name Operating System hostname as returned by posix_uname(). Not available on Windows machines.
Rattletrap.local
host.os Operating System description as set in PHP_OS variable (see PHP Manual).
Darwin
host.os.release Operating version release, i.e. 2.2.10. Not available on Windows machines.
11.4.0
host.os.version Operating system version, i.e. #4 Tue Jul 20 17:01:36 MEST 1999. Not available on Windows machines.
Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
line.separator Character(s) that signal the end of a line, "\n" for Linux, "\r\n" for Windows system, "\r" for Macintosh.
os.name Operating System description as set in PHP_OS variable.
Darwin
phing.file Full path to current buildfile.
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/bushbaby/zf2-module-phing-service/data/build-example.xml
phing.home Phing installation directory, not set in PEAR installations.
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing
phing.version Current Phing version.
Phing DEV
phing.project.name Name of the currently processed project.
PhingService Demo Project
php.classpath The value of the environment variable PHP_CLASSPATH.
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/phing/phing/bin/../classes:.:/opt/local/lib/php
php.version Version of the PHP interpreter. Same as PHP constant PHP_VERSION (see PHP Manual).
5.3.12
project.basedir The current project basedir.
/Users/bas/Documents/Projects/Lumasol/store.lumasol.nl/vendor/bushbaby/zf2-module-phing-service/data
user.home Value of the environment variable HOME.
/Users/bas
PhingService Demo Project > prepare:
[echo] Making directory ./build (not really)
PhingService Demo Project > build:
[echo] Copying files to build directory... (not really)
[echo] Copying ./about.php to ./build directory... (not really)
[echo] Copying ./browsers.php to ./build directory... (not really)
[echo] Copying ./contact.php to ./build directory... (not really)
PhingService Demo Project > dist:
[echo] Creating archive... (not really)
[echo] Files copied and compressed in build directory OK!
BUILD FINISHED
Total time: 0.0683 seconds
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
(in cli this looks okay (AnsiColorLogger), but in the browser no color span tags are present and weird stuff like the following is present;
============================

 [echo] Copy....
============================
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
in the default logger which is extended i have to confirm only the default logger is used
print_r(get_class($this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment