Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPB_Exchange_Repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Amelin Konstantin
SPB_Exchange_Repo
Commits
cf323846
Commit
cf323846
authored
Dec 25, 2018
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change README.txt
parent
0f3ea2ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
+5
-4
input/2.zip
+0
-0
input/test1.txt
+1
-0
input/test2
+0
-0
readme.txt
+1
-1
src/main/scala/Main.scala
+3
-3
No files found.
input/2.zip
View file @
cf323846
No preview for this file type
input/test1.txt
0 → 100644
View file @
cf323846
test
input/test2
0 → 100644
View file @
cf323846
readme.txt
View file @
cf323846
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Технические требования, функционал.
Технические требования, функционал.
Конвертер работает в операционных системах с поддержкой Java 8
. Необходима установленная JRE версии 8
.
Конвертер работает в операционных системах с поддержкой Java 8
или выше. Необходима установленная JRE или JDK версии 8 или выше
.
Запуск осуществляется из командной строки с двумя параметрами: путь к директории входящих сообщений, путь к директории сконвертированных сообщений.
Запуск осуществляется из командной строки с двумя параметрами: путь к директории входящих сообщений, путь к директории сконвертированных сообщений.
Конвертер работает по принципу пакетного обработчика. Действие выполняется над всеми файлами, находящимися в директории входящих сообщений.
Конвертер работает по принципу пакетного обработчика. Действие выполняется над всеми файлами, находящимися в директории входящих сообщений.
...
...
src/main/scala/Main.scala
View file @
cf323846
...
@@ -59,13 +59,13 @@ object Main {
...
@@ -59,13 +59,13 @@ object Main {
case
Success
((
oXml
,
ti
))
=>
case
Success
((
oXml
,
ti
))
=>
XML
.
save
(
Paths
.
get
(
args
(
1
),
s
"Converted_${fSourceNameBase}_$fZipEntryName"
).
toString
,
oXml
,
xmlDecl
=
true
)
XML
.
save
(
Paths
.
get
(
args
(
1
),
s
"Converted_${fSourceNameBase}_$fZipEntryName"
).
toString
,
oXml
,
xmlDecl
=
true
)
logString
+=
s
"$nowForZip\n$ti"
logString
+=
s
"$nowForZip\n$ti"
case
Failure
(
ex
)
=>
logString
+=
s
"'$nowForZip\nImpossible to convert'${fSourceNameBase}_$fZipEntryName': ${ex.getMessage}\n\n"
case
Failure
(
ex
)
=>
logString
+=
s
"'$nowForZip\nImpossible to convert
'${fSourceNameBase}_$fZipEntryName': ${ex.getMessage}\n\n"
}
}
}
}
}
}
}
match
{
}
match
{
case
Success
(
_
)
=>
case
Success
(
_
)
=>
case
Failure
(
ex
)
=>
logString
+=
s
"'$now\nImpossible to convert'$fSourceName': ${ex.getMessage}\n\n"
case
Failure
(
ex
)
=>
logString
+=
s
"'$now\nImpossible to convert
'$fSourceName': ${ex.getMessage}\n\n"
}
}
else
Try
{
else
Try
{
convert
(
convert
(
...
@@ -79,7 +79,7 @@ object Main {
...
@@ -79,7 +79,7 @@ object Main {
case
Success
((
oXml
,
ti
))
=>
case
Success
((
oXml
,
ti
))
=>
XML
.
save
(
Paths
.
get
(
args
(
1
),
s
"Converted_$fSourceName"
).
toString
,
oXml
,
xmlDecl
=
true
)
XML
.
save
(
Paths
.
get
(
args
(
1
),
s
"Converted_$fSourceName"
).
toString
,
oXml
,
xmlDecl
=
true
)
logString
+=
s
"$now\n$ti"
logString
+=
s
"$now\n$ti"
case
Failure
(
ex
)
=>
logString
+=
s
"'$now\nImpossible to convert'$fSourceName': ${ex.getMessage}\n\n"
case
Failure
(
ex
)
=>
logString
+=
s
"'$now\nImpossible to convert
'$fSourceName': ${ex.getMessage}\n\n"
}
}
}
}
...
...
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