Bugs item #2833055, was opened at 2009-08-06 08:45
Message generated for change (Comment added) made by cchan_qa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2833055&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.86
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: nikitok (nikitok)
>Assigned to: Charles Chan (cchan_qa)
Summary: Can't copy self-copied file with overwrite="true" attribute
Initial Comment:
I tried to call this target:
<target name="initializeConfigFiles">
<copy verbose="true" file="${root}\configuration.cfg"
tofile="${root}\configuration.cfg" overwrite="true">
<filterchain>
<replacestring from="Alias=testOdbcString"
to="Alias=${odbcAlias}" />
</filterchain>
</copy>
</target>
but have
[initializeConfigFiles] copy
[initializeConfigFiles] Copying 1 file to 'C:\root\configuration.cfg'.
[initializeConfigFiles] Skipping self-copy of 'C:\root\configuration.cfg'.
in output notwithstanding not paying attention at explicit overwrite="true"
attribute.
----------------------------------------------------------------------
>Comment By: Charles Chan (cchan_qa)
Date: 2010-02-18 20:49
Message:
Thanks for the bug report.
What you are trying to do is effectively a search-and-replace text. The
quick fix is perhaps to create a temp file when 'file' and 'tofile'
attriubte are identical. A better fix is probably to have a
search-and-replace task.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2833055&group_id=31650
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers