Skip to content

Instantly share code, notes, and snippets.

@cs278
Created January 7, 2013 16:49
Show Gist options
  • Save cs278/4476479 to your computer and use it in GitHub Desktop.
Save cs278/4476479 to your computer and use it in GitHub Desktop.
Causes http://www.phing.info/trac/ticket/10 in Phing 2.4.14
<?xml version="1.0"?>
<!-- Reproduces http://www.phing.info/trac/ticket/10 -->
<project name="test" default="test" basedir=".">
<target name="test">
<mapper id="myMapper" type="glob" from="*.xml" to="*.lmx" />
<copy todir="/tmp">
<fileset dir="${phing.dir}">
<include name="*.xml" />
</fileset>
<mapper refid="myMapper" />
<!-- <mapper type="glob" from="*.xml" to="*.lmx" /> -->
</copy>
</target>
</project>
$ phing -f test.xml
Buildfile: test.xml
[PHP Error] Argument 1 passed to Mapper::__construct() must be an instance of Project, none given, called in vendor/phing/phing/classes/phing/Project.php on line 767 and defined [line 52 of vendor/phing/phing/classes/phing/types/Mapper.php]
test > test:
[copy] Copying 1 file to /tmp
BUILD FINISHED
Total time: 0.4444 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment