Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to redirect -consolelog output to a file?
How to redirect -consolelog output to a file? [message #319917] Wed, 05 September 2007 17:42 Go to next message
Eclipse UserFriend
Originally posted by: nicolas.grossi.gmail.com

People:
I have a .bat file as follow:

eclipse.exe -perspective mypackage.customperspective -consolelog

If i run this .bat file on windows two windows are loaded. One runs
de.bat command and another have the -consolelog output.

Is there any way to redirects -consolelog output to file?

I have tried:

eclipse.exe -perspective mypackage.customperspective -consolelog >
myfile.txt

but no success.

Thanks
Nico
Re: How to redirect -consolelog output to a file? [message #319925 is a reply to message #319917] Thu, 06 September 2007 00:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Use eclipsec.exe instead of eclipse.exe

Alex
Re: How to redirect -consolelog output to a file? [message #319971 is a reply to message #319925] Thu, 06 September 2007 14:31 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Alex Blewitt wrote:
> Use eclipsec.exe instead of eclipse.exe
>
> Alex

As Alex said, use eclipsec.exe. On Windows, it is the OS that handles initially
allocating a console and connecting the i/o pipes. It chooses to do this based
on how the exe was linked (gui or console). The eclipsec executable was linked
as a console application so Windows behaves much better about redirecting the pipes.

-Andrew
Re: How to redirect -consolelog output to a file? [message #319975 is a reply to message #319971] Thu, 06 September 2007 18:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nicolas.grossi.gmail.com

This is a multi-part message in MIME format.
--------------010304070908010902050509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Alex & Andrew:
Actually I'm using a "custom" RCP eclipse distribution
and I have included the eclipsec.exe to my dist but i'm getting the
attached error because there is some .jar file missing. Does any of you
knows wich is the requiered .jar to use eclipsec.exe instead of eclipse.exe?

thanks in advance once again,
Nico

Andrew Niefer wrote:
> Alex Blewitt wrote:
>> Use eclipsec.exe instead of eclipse.exe
>>
>> Alex
>
> As Alex said, use eclipsec.exe. On Windows, it is the OS that handles
> initially allocating a console and connecting the i/o pipes. It chooses
> to do this based on how the exe was linked (gui or console). The
> eclipsec executable was linked as a console application so Windows
> behaves much better about redirecting the pipes.
>
> -Andrew


--------------010304070908010902050509
Content-Type: image/png;
name="1.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="1.png"

iVBORw0KGgoAAAANSUhEUgAAAS4AAAByCAIAAABiGassAAAACXBIWXMAAA7E AAAOxAGVKw4b
AAAAB3RJTUUH1wkGEjQ1Ga/7UAAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVY dERlc2NyaXB0
aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlv biB0aW1lADX3
DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0 jwAAAAh0RVh0
V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVu dAD2zJa/AAAA
BnRFWHRUaXRsZQCo7tInAAABAElEQVR4nO3dXa/URBzH8X/NiVcaUCMGCCho jOgRD4aHlQhx
34M3vgGvNOAjIAg5IKIYiURfgddcnEsuN6ICPgIBQkwkgsFnI4nerxdlh55O O512O+1/u9+P
BLu77cx0tj+m7Xa7IgAAIBZdPHem7TYAkGg4HLbdBgAyIyKXzp9tuxnAtJuJ /7f5+U+jKBKR
KIokkkhuPxpNinnBvGI9EOtxZlGjAtNz3yow479F5ZWoJaO4Wy9mF5W5UgUt HBVYvgfyihq1
sFRRmSub8w4WruztlfLqzOxNIrN/0m139UCJthV1pruonJW1WphZaXKuytbf eeWO6ksDqM9M
2w0AOuWFTUv8rdnL1AAAAQBJREFUZ+73+y8eXYiniSJQM8+TLycWTiYflt5B /fvCsb8uHCu7
FAC3RaPifz98kny4ZN0Ox5J/nv9QRJZteD1Es4AOmJ3riUjyo3v7GSNjB/X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EoAioQRUAFogioQBQB FYgioAJRBFQg
ioAKRBFQgSgCKhBFQIWZ+fn5ttsAQP4H9bMXpzltktwAAAAASUVORK5CYII=
--------------010304070908010902050509--
Re: How to redirect -consolelog output to a file? [message #319981 is a reply to message #319975] Thu, 06 September 2007 22:28 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

It's the same one that eclipse.exe uses. However, if you've copied an eclipsec.exe from 3.3 and are expecting it to work with a 3.2 app, you would get that error message. The solution would be to upgrade your RCP to work on the 3.3 RCP base rather than the 3.2 RCP base.

Alex.
Previous Topic:Removing Workspace Launcher
Next Topic:Trigger ToolbarItem programmatically
Goto Forum:
  


Current Time: Thu Mar 28 22:04:02 GMT 2024

Powered by FUDForum. Page generated in 0.03024 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top