Check out the 'output', 'error', 'logError' and other attributes in the exec task to control the output. http://ant.apache.org/manual/CoreTasks/exec.html
Upul On Wed, Jul 2, 2008 at 4:12 PM, jantje <[EMAIL PROTECTED]> wrote: > > Ok (yes, I am working in /bin/bash), now I added this line, but it still > does > not suppress the output: (<arg value="2>&1>/dev/null"/>) > > > <exec executable="/usr/bin/dir2lzm" failonerror="true"> > <arg value="/tmp/module"/> > <arg value="${basedir}/build/application/lzm/project.lzm"/> > <arg value="2>&1>/dev/null"/> > </exec> > > The output with /usr/bin/dir2lzm is a proceeding bar, it actually is a bar > on the command line which can refresh up to 3000 times in my project, so > after the <exec/> task there are up to 3000 lines displayed.. To much :-) > > Is there something wrong with <arg value="2>&1>/dev/null"/> or is there > an other solution? > > Thanks.. > > > > > Gabor Maghera wrote: > > > > If you're using some flavor of the UNIX shell you can append " > > 2>&1>/dev/null" to the executed command in order to suppress output (at > > the > > OS level). > > > > Gabor > > > > On Tue, Jul 1, 2008 at 5:13 PM, jantje <[EMAIL PROTECTED]> wrote: > > > >> > >> > >> A second question about <exec/>: > >> > >> Is it possible not to have output to the shell from <exec/>? > >> > >> While performing the exec-task I get no text output, but when finishing > >> the > >> task, I get all the output at once.. I need something like quit or > >> verbose.. > >> > >> Thanks.. > >> -- > >> View this message in context: > >> http://www.nabble.com/Pipeline-in-exec-task-tp18227711p18227867.html > >> Sent from the Ant - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > -- > View this message in context: > http://www.nabble.com/Pipeline-in-exec-task-tp18227711p18234717.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >