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
a096efe4
Kaydet (Commit)
a096efe4
authored
Mar 27, 2011
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
revert accidentally commited changes
üst
c5e22ee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
OfficeConnection.java
test/source/java/org/openoffice/test/OfficeConnection.java
+1
-23
No files found.
test/source/java/org/openoffice/test/OfficeConnection.java
Dosyayı görüntüle @
a096efe4
...
...
@@ -46,20 +46,6 @@ import static org.junit.Assert.*;
Details about the OOo instance are tunneled in via
org.openoffice.test.arg.... system properties.
*/
final
class
ShutdownKiller
implements
java
.
lang
.
Runnable
{
private
java
.
lang
.
Thread
m_watchedThread
;
ShutdownKiller
(
java
.
lang
.
Thread
watchedThread
)
{
m_watchedThread
=
watchedThread
;
}
public
void
run
()
{
try
{
Thread
.
sleep
(
2000
);
}
catch
(
InterruptedException
e
)
{
return
;
};
m_watchedThread
.
interrupt
();
}
}
public
final
class
OfficeConnection
{
/** Start up an OOo instance.
...
...
@@ -96,7 +82,6 @@ public final class OfficeConnection {
"\"soffice\" argument \""
+
sofficeArg
+
" starts with neither \"path:\" nor \"connect:\""
);
}
Thread
.
sleep
(
2000
);
XUnoUrlResolver
resolver
=
UnoUrlResolver
.
create
(
Bootstrap
.
createInitialComponentContext
(
null
));
for
(;;)
{
...
...
@@ -141,14 +126,7 @@ public final class OfficeConnection {
}
int
code
=
0
;
if
(
process
!=
null
)
{
Thread
watcher
=
new
Thread
(
new
ShutdownKiller
(
Thread
.
currentThread
()));
watcher
.
run
();
try
{
code
=
process
.
waitFor
();
}
catch
(
InterruptedException
e
)
{
assertTrue
(
false
);
};
watcher
.
interrupt
();
code
=
process
.
waitFor
();
}
boolean
outTerminated
=
outForward
==
null
||
outForward
.
terminated
();
boolean
errTerminated
=
errForward
==
null
||
errForward
.
terminated
();
...
...
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