Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
7050d9d9
Commit
7050d9d9
authored
Mar 19, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补批代码修改
parent
868e12ee
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
Test.java
...-core/myth-executor-core/src/test/java/com/test/Test.java
+1
-1
Test2.java
...core/myth-executor-core/src/test/java/com/test/Test2.java
+2
-2
test-ex.py
...core/myth-executor-core/src/test/java/com/test/test-ex.py
+2
-0
No files found.
byit-myth-core/myth-executor-core/src/test/java/com/test/Test.java
View file @
7050d9d9
...
@@ -20,7 +20,7 @@ public class Test {
...
@@ -20,7 +20,7 @@ public class Test {
Thread
thread
=
new
Thread
(()
->
{
Thread
thread
=
new
Thread
(()
->
{
List
<
String
>
cmdList
=
Arrays
.
asList
(
"python D:\\2020project\\byit-myth-job\\byit-myth-core\\myth-executor-core\\src\\test\\java\\com\\test\\test-ex.py"
.
split
(
" "
));;
List
<
String
>
cmdList
=
Arrays
.
asList
(
"python D:\\2020project\\byit-myth-job\\byit-myth-core\\myth-executor-core\\src\\test\\java\\com\\test\\test-ex.py"
.
split
(
" "
));;
MythJobProcess
mythJobProcess
=
new
MythJobProcess
(
cmdList
,
null
,
null
,
0
,
""
);
MythJobProcess
mythJobProcess
=
new
MythJobProcess
(
cmdList
,
null
,
null
,
0
,
""
,
null
);
list
.
add
(
mythJobProcess
);
list
.
add
(
mythJobProcess
);
String
log
=
mythJobProcess
.
call
();
String
log
=
mythJobProcess
.
call
();
System
.
out
.
println
(
"运行日志"
+
log
+
"--"
);
System
.
out
.
println
(
"运行日志"
+
log
+
"--"
);
...
...
byit-myth-core/myth-executor-core/src/test/java/com/test/Test2.java
View file @
7050d9d9
...
@@ -18,9 +18,9 @@ public class Test2 {
...
@@ -18,9 +18,9 @@ public class Test2 {
Thread
thread
=
new
Thread
(()
->
{
Thread
thread
=
new
Thread
(()
->
{
Runtime
runtime
=
Runtime
.
getRuntime
();
Runtime
runtime
=
Runtime
.
getRuntime
();
try
{
try
{
Process
exec
=
runtime
.
exec
(
"python D:\\work
space\\pycharmWorkSpace\\test\\com.test\\Test
.py"
);
Process
exec
=
runtime
.
exec
(
"python D:\\work
Space\\python\\test\\test1
.py"
);
processList
.
add
(
exec
);
processList
.
add
(
exec
);
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
exec
.
getInputStream
()));
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
exec
.
getInputStream
()
,
"GB2312"
));
String
res
=
null
;
String
res
=
null
;
while
((
res
=
br
.
readLine
())
!=
null
){
while
((
res
=
br
.
readLine
())
!=
null
){
System
.
out
.
println
(
res
);
System
.
out
.
println
(
res
);
...
...
byit-myth-core/myth-executor-core/src/test/java/com/test/test-ex.py
View file @
7050d9d9
...
@@ -5,3 +5,4 @@ while i<100:
...
@@ -5,3 +5,4 @@ while i<100:
time
.
sleep
(
1
)
time
.
sleep
(
1
)
print
(
"-----百花凰冠${name}---
%
d"
%
i
)
print
(
"-----百花凰冠${name}---
%
d"
%
i
)
i
+=
1
i
+=
1
print
(
"哈哈哈哈"
)
\ No newline at end of file
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