Hi,

try this task:

<copy file="c:/hello.txt" tofile="c:/hello.bak">
    <filterchain>
        <!--expandproperties/-->
        <filterreader 
classname="org.apache.tools.ant.filters.ExpandProperties"/>
    </filterchain>
</copy>

The preceding task will throw a NullPointException in the Ant 1.5.

The same thing happens when I'm trying to make my own filter, which
extends from BaseParamFilterReader and invokes getProject() to get some
informations from ant.  Unfortunately, getProject() returns null.

Uncomment the "<!--expandproperties/-->" in preceding task, and it works.
Is there any way to make my own filter work like the built-in filters?

-- 
Michael Zhou <[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to