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
37d36d6c
Kaydet (Commit)
37d36d6c
authored
Ara 22, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: APP_KILL_COMMAND is unused
Change-Id: I4bc4208a80a41a43f9a1145a2e674f37d1333424
üst
09330056
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
34 deletions
+0
-34
OfficeProvider.java
qadevOOo/runner/helper/OfficeProvider.java
+0
-17
OfficeWatcher.java
qadevOOo/runner/helper/OfficeWatcher.java
+0
-13
PropertyName.java
qadevOOo/runner/util/PropertyName.java
+0
-4
No files found.
qadevOOo/runner/helper/OfficeProvider.java
Dosyayı görüntüle @
37d36d6c
...
@@ -497,23 +497,6 @@ public class OfficeProvider implements AppProvider
...
@@ -497,23 +497,6 @@ public class OfficeProvider implements AppProvider
}
}
}
}
final
String
AppKillCommand
=
(
String
)
param
.
get
(
util
.
PropertyName
.
APP_KILL_COMMAND
);
if
(
AppKillCommand
!=
null
)
{
String
sAppKillCommand
=
StringHelper
.
removeSurroundQuoteIfExists
(
AppKillCommand
);
final
StringTokenizer
aKillCommandToken
=
new
StringTokenizer
(
sAppKillCommand
,
";"
);
while
(
aKillCommandToken
.
hasMoreTokens
())
{
final
String
sKillCommand
=
aKillCommandToken
.
nextToken
();
dbg
(
"User defined an application to destroy the started process. Trying to execute: "
+
sKillCommand
);
final
ProcessHandler
pHdl
=
new
ProcessHandler
(
sKillCommand
,
1000
);
// 3000 seems to be too long
pHdl
.
runCommand
();
pHdl
.
kill
();
}
}
final
ProcessHandler
ph
=
(
ProcessHandler
)
param
.
get
(
"AppProvider"
);
final
ProcessHandler
ph
=
(
ProcessHandler
)
param
.
get
(
"AppProvider"
);
if
(
ph
!=
null
)
if
(
ph
!=
null
)
...
...
qadevOOo/runner/helper/OfficeWatcher.java
Dosyayı görüntüle @
37d36d6c
...
@@ -78,19 +78,6 @@ public class OfficeWatcher extends Thread implements share.Watcher {
...
@@ -78,19 +78,6 @@ public class OfficeWatcher extends Thread implements share.Watcher {
if
(
ph
!=
null
)
{
if
(
ph
!=
null
)
{
dbg
(
"the Office is idle for "
+
timeOut
/
1000
+
dbg
(
"the Office is idle for "
+
timeOut
/
1000
+
" seconds, it probably hangs and is killed NOW."
);
" seconds, it probably hangs and is killed NOW."
);
final
String
AppKillCommand
=
(
String
)
params
.
get
(
util
.
PropertyName
.
APP_KILL_COMMAND
);
if
(
AppKillCommand
!=
null
)
{
final
StringTokenizer
aKillCommandToken
=
new
StringTokenizer
(
AppKillCommand
,
";"
);
while
(
aKillCommandToken
.
hasMoreTokens
())
{
final
String
sKillCommand
=
aKillCommandToken
.
nextToken
();
dbg
(
"User defined an application to destroy the started process."
);
dbg
(
"Trying to execute: "
+
sKillCommand
);
final
ProcessHandler
pHdl
=
new
ProcessHandler
(
sKillCommand
);
pHdl
.
executeSynchronously
();
}
}
ph
.
kill
();
ph
.
kill
();
}
else
{
}
else
{
dbg
(
"reaeched timeout but ProcessHandler is NULL"
);
dbg
(
"reaeched timeout but ProcessHandler is NULL"
);
...
...
qadevOOo/runner/util/PropertyName.java
Dosyayı görüntüle @
37d36d6c
...
@@ -28,10 +28,6 @@ public interface PropertyName {
...
@@ -28,10 +28,6 @@ public interface PropertyName {
* command to an Application to be started.
* command to an Application to be started.
*/
*/
String
APP_EXECUTION_COMMAND
=
"AppExecutionCommand"
;
String
APP_EXECUTION_COMMAND
=
"AppExecutionCommand"
;
/**
* parameter name: "AppKillCommand"
*/
String
APP_KILL_COMMAND
=
"AppKillCommand"
;
/**
/**
* parameter name: "ConnectionString"
* parameter name: "ConnectionString"
*/
*/
...
...
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