You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jeffrey Bacon <jb...@magmic.com> on 2004/07/07 17:21:38 UTC

running commands in Cygwin

I want to run the 'clear' command that is in my path in Cygwin (and in 
the cmd.exe environment) in an Ant script to clear the output on my 
console.  Not sure if this is possible or not but any ideas?

-- 
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Jeffrey Bacon <jb...@magmic.com>.
maybe I should just write a batch file.
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Andrew Craig wrote:
> If you run your build script from within rxvt rather than from with
> cmd.exe, it will clear the screen when the clear application is
> executed.  It does mean using a full shell environment rather than the
> NT command line, but (IMHO) it's a lot nicer anyway!
> 
> Andrew
> 
> On Wed, 07 Jul 2004 13:37:58 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
>  > yeah, I'd like to not have tin instantiate Ant twice if I can avoid it.
>  >
>  >
>  > --
>  > Jeffrey Bacon
>  > jbacon@magmic.com
>  > Creative Developer
>  > http://www.magmic.com
>  >
>  > Andrew Craig wrote:
>  > > Well one option to do this
>  > > ant clean && clear && ant under-control
>  > >
>  > > It does mean any init steps would be executed twice though.
>  > >
>  > > Andrew
>  > >
>  > > On Wed, 07 Jul 2004 13:02:41 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
>  > >
>  > >>I want do do it after a clean operation in my ant script so I can go:
>  > >>
>  > >>ant clean clear under-control
>  > >>
>  > >>and get rid of the output from the clean command before running the build.
>  > >>--
>  > >>Jeffrey Bacon
>  > >>jbacon@magmic.com
>  > >>Creative Developer
>  > >>http://www.magmic.com
>  > >>
>  > >>
>  > >>
>  > >>
>  > >>Andrew Craig wrote:
>  > >>
>  > >>>Normally for this I do:
>  > >>>
>  > >>>clear && ant
>  > >>>
>  > >>>when calling ant -- that way I can clear the screen -- but only if I
>  > >>>want to (as occasionally I might not want to clear up the screen).
>  > >>>
>  > >>>If you are using cmd.exe, you'd be better off running cls anyway as it's 
> faster!
>  > >>>
>  > >>>Andrew
>  > >>>
>  > >>>On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
>  > >>>
>  > >>>
>  > >>>>I want to run the 'clear' command that is in my path in Cygwin (and in
>  > >>>>the cmd.exe environment) in an Ant script to clear the output on my
>  > >>>>console.  Not sure if this is possible or not but any ideas?
>  > >>>>
>  > >>>>--
>  > >>>>--
>  > >>>>Jeffrey Bacon
>  > >>>>jbacon@magmic.com
>  > >>>>Creative Developer
>  > >>>>http://www.magmic.com
>  > >>>>
>  > >>>>---------------------------------------------------------------------
>  > >>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  > >>>>For additional commands, e-mail: user-help@ant.apache.org
>  > >>>>
>  > >>>>
>  > >>>
>  > >>>
>  > >>>
>  > >>---------------------------------------------------------------------
>  > >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  > >>For additional commands, e-mail: user-help@ant.apache.org
>  > >>
>  > >>
>  > >
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  > For additional commands, e-mail: user-help@ant.apache.org
>  >
>  >
> 
> 
> -- 
> Andrew
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Andrew Craig <an...@gmail.com>.
If you run your build script from within rxvt rather than from with
cmd.exe, it will clear the screen when the clear application is
executed.  It does mean using a full shell environment rather than the
NT command line, but (IMHO) it's a lot nicer anyway!

Andrew

On Wed, 07 Jul 2004 13:37:58 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> yeah, I'd like to not have tin instantiate Ant twice if I can avoid it.
> 
> 
> --
> Jeffrey Bacon
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> Andrew Craig wrote:
> > Well one option to do this
> > ant clean && clear && ant under-control
> >
> > It does mean any init steps would be executed twice though.
> >
> > Andrew
> >
> > On Wed, 07 Jul 2004 13:02:41 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> >
> >>I want do do it after a clean operation in my ant script so I can go:
> >>
> >>ant clean clear under-control
> >>
> >>and get rid of the output from the clean command before running the build.
> >>--
> >>Jeffrey Bacon
> >>jbacon@magmic.com
> >>Creative Developer
> >>http://www.magmic.com
> >>
> >>
> >>
> >>
> >>Andrew Craig wrote:
> >>
> >>>Normally for this I do:
> >>>
> >>>clear && ant
> >>>
> >>>when calling ant -- that way I can clear the screen -- but only if I
> >>>want to (as occasionally I might not want to clear up the screen).
> >>>
> >>>If you are using cmd.exe, you'd be better off running cls anyway as it's faster!
> >>>
> >>>Andrew
> >>>
> >>>On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> >>>
> >>>
> >>>>I want to run the 'clear' command that is in my path in Cygwin (and in
> >>>>the cmd.exe environment) in an Ant script to clear the output on my
> >>>>console.  Not sure if this is possible or not but any ideas?
> >>>>
> >>>>--
> >>>>--
> >>>>Jeffrey Bacon
> >>>>jbacon@magmic.com
> >>>>Creative Developer
> >>>>http://www.magmic.com
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>>>For additional commands, e-mail: user-help@ant.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


-- 
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Jeffrey Bacon <jb...@magmic.com>.
yeah, I'd like to not have tin instantiate Ant twice if I can avoid it.
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Andrew Craig wrote:
> Well one option to do this
> ant clean && clear && ant under-control
> 
> It does mean any init steps would be executed twice though.
> 
> Andrew
> 
> On Wed, 07 Jul 2004 13:02:41 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> 
>>I want do do it after a clean operation in my ant script so I can go:
>>
>>ant clean clear under-control
>>
>>and get rid of the output from the clean command before running the build.
>>--
>>Jeffrey Bacon
>>jbacon@magmic.com
>>Creative Developer
>>http://www.magmic.com
>>
>>
>>
>>
>>Andrew Craig wrote:
>>
>>>Normally for this I do:
>>>
>>>clear && ant
>>>
>>>when calling ant -- that way I can clear the screen -- but only if I
>>>want to (as occasionally I might not want to clear up the screen).
>>>
>>>If you are using cmd.exe, you'd be better off running cls anyway as it's faster!
>>>
>>>Andrew
>>>
>>>On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
>>>
>>>
>>>>I want to run the 'clear' command that is in my path in Cygwin (and in
>>>>the cmd.exe environment) in an Ant script to clear the output on my
>>>>console.  Not sure if this is possible or not but any ideas?
>>>>
>>>>--
>>>>--
>>>>Jeffrey Bacon
>>>>jbacon@magmic.com
>>>>Creative Developer
>>>>http://www.magmic.com
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Andrew Craig <an...@gmail.com>.
Well one option to do this
ant clean && clear && ant under-control

It does mean any init steps would be executed twice though.

Andrew

On Wed, 07 Jul 2004 13:02:41 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> I want do do it after a clean operation in my ant script so I can go:
> 
> ant clean clear under-control
> 
> and get rid of the output from the clean command before running the build.
> --
> Jeffrey Bacon
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> 
> 
> 
> Andrew Craig wrote:
> > Normally for this I do:
> >
> > clear && ant
> >
> > when calling ant -- that way I can clear the screen -- but only if I
> > want to (as occasionally I might not want to clear up the screen).
> >
> > If you are using cmd.exe, you'd be better off running cls anyway as it's faster!
> >
> > Andrew
> >
> > On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> >
> >>I want to run the 'clear' command that is in my path in Cygwin (and in
> >>the cmd.exe environment) in an Ant script to clear the output on my
> >>console.  Not sure if this is possible or not but any ideas?
> >>
> >>--
> >>--
> >>Jeffrey Bacon
> >>jbacon@magmic.com
> >>Creative Developer
> >>http://www.magmic.com
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


-- 
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Jeffrey Bacon <jb...@magmic.com>.
I want do do it after a clean operation in my ant script so I can go:

ant clean clear under-control

and get rid of the output from the clean command before running the build.
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Andrew Craig wrote:
> Normally for this I do:
> 
> clear && ant 
> 
> when calling ant -- that way I can clear the screen -- but only if I
> want to (as occasionally I might not want to clear up the screen).
> 
> If you are using cmd.exe, you'd be better off running cls anyway as it's faster!
> 
> Andrew
> 
> On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> 
>>I want to run the 'clear' command that is in my path in Cygwin (and in
>>the cmd.exe environment) in an Ant script to clear the output on my
>>console.  Not sure if this is possible or not but any ideas?
>>
>>--
>>--
>>Jeffrey Bacon
>>jbacon@magmic.com
>>Creative Developer
>>http://www.magmic.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: running commands in Cygwin

Posted by Andrew Craig <an...@gmail.com>.
Normally for this I do:

clear && ant 

when calling ant -- that way I can clear the screen -- but only if I
want to (as occasionally I might not want to clear up the screen).

If you are using cmd.exe, you'd be better off running cls anyway as it's faster!

Andrew

On Wed, 07 Jul 2004 11:21:38 -0400, Jeffrey Bacon <jb...@magmic.com> wrote:
> I want to run the 'clear' command that is in my path in Cygwin (and in
> the cmd.exe environment) in an Ant script to clear the output on my
> console.  Not sure if this is possible or not but any ideas?
> 
> --
> --
> Jeffrey Bacon
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


-- 
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org