Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f174b968
Kaydet (Commit)
f174b968
authored
May 15, 2003
tarafından
Svante Schubert
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed two possible null pointer exceptions and expanded catch clause with a printStackTrace()
üst
78dc61d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
ProcessHandler.java
qadevOOo/runner/helper/ProcessHandler.java
+12
-5
No files found.
qadevOOo/runner/helper/ProcessHandler.java
Dosyayı görüntüle @
f174b968
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ProcessHandler.java,v $
* $RCSfile: ProcessHandler.java,v $
*
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
*
* last change: $Date: 2003-0
1-27 16:27:33
$
* last change: $Date: 2003-0
5-15 18:04:04
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -247,7 +247,8 @@ public class ProcessHandler {
...
@@ -247,7 +247,8 @@ public class ProcessHandler {
isStarted
=
true
;
isStarted
=
true
;
}
catch
(
java
.
io
.
IOException
e
)
{
}
catch
(
java
.
io
.
IOException
e
)
{
log
.
println
(
"The command "
+
cmdLine
+
" can't be started: "
+
e
);
log
.
println
(
"The command "
+
cmdLine
+
" can't be started: "
+
e
.
getMessage
());
e
.
printStackTrace
((
PrintWriter
)
log
);
return
;
return
;
}
}
stdout
=
new
Pump
(
proc
.
getInputStream
(),
log
,
"out > "
);
stdout
=
new
Pump
(
proc
.
getInputStream
(),
log
,
"out > "
);
...
@@ -334,13 +335,19 @@ public class ProcessHandler {
...
@@ -334,13 +335,19 @@ public class ProcessHandler {
* Returns the text output by external command to stdout.
* Returns the text output by external command to stdout.
*/
*/
public
String
getOutputText
()
{
public
String
getOutputText
()
{
return
stdout
.
getStringBuffer
();
if
(
stdout
==
null
)
return
""
;
else
return
stdout
.
getStringBuffer
();
}
}
/**
/**
* Returns the text output by external command to stderr.
* Returns the text output by external command to stderr.
*/
*/
public
String
getErrorText
()
{
public
String
getErrorText
()
{
return
stderr
.
getStringBuffer
();
if
(
stderr
==
null
)
return
""
;
else
return
stderr
.
getStringBuffer
();
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment