You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/18 20:25:50 UTC
DO NOT REPLY [Bug 14646] New: -
need "-n", "show what to do but don't do it" command-line argument
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14646>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14646
need "-n", "show what to do but don't do it" command-line argument
Summary: need "-n", "show what to do but don't do it" command-
line argument
Product: Ant
Version: 1.5.1
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: jernst@acm.org
make has a command-line flag "-n" which, instead of doing what it thinks it
needs to do, just prints out what it would do, but doesn't do it. This is very
useful when running newly constructed Makefiles for the first time: instead of
deleting files, for example, it only prints out which files it wants to delete,
thus giving me the opportunity to fix the script first before it deletes all my
files ...
I cannot find something similar for ant, and I would hate losing data ...
For example, <dependset> may delete the target files, which may be specified as
a wildcard. Short of executing the command, how do I check that it will actually
delete the right files? An "ant -n" would be highly useful. It should print out
something like
<dependset>Delete /this/file1
<dependset>Delete /that/other/file2
This needs to be done across ant, for all tasks, not just dependset.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>