Created
January 7, 2013 16:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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