ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53449] Exec task output is truncated
Date Thu, 21 Jun 2012 15:07:57 GMT

--- Comment #1 from ---
I am running into a problem where exec is truncating the output of the command
being issued when directing it to an output property.   This does not occur
100% of the time, but it is occurring fairly often.  Below is an example of the
exec task I am performing :
  <exec executable="sed" input="rpm.spec" output="${rpm_spec}" >
      <arg line="&apos;s#&lt;PRODUCT&gt;#${product}#;
s#&lt;VERSION&gt;#${VERS}#; s#&lt;RELEASE&gt;#${RELEASE}#; s#&lt;
ID&gt;#${ID}#; s#&lt;TMP_DIR&gt;#${tmp_dir}#;
s#&lt;SANDBOX&gt;#${basedir}#&apos;" />

the rpm.spec file is just your standard RPM spec file for one of our products. 
I don't know if the problem is with exec itself or with some combination of
exec and sed.  I have also seen this problem when using exec of sh and args of
find and sed to create a file.  In all the instances where I have seen this
fail, sed is present, but I don't believe we have any cases of using exec where
sed is not present that could potentially fail to begin with.  

I have worked around this problem by using echo to have ant create a temporary
script file containing the thing I want done, and then execing it without any

You are receiving this mail because:
You are the assignee for the bug.

View raw message