Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
setup-manager
Commits
8cab031c
Commit
8cab031c
authored
Oct 29, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录鉴权时间
parent
b3002524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
.../src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
+17
-4
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
View file @
8cab031c
...
...
@@ -122,10 +122,12 @@ public class ZipUtils {
// 解压tar包
public
Set
<
String
>
unTar
(
String
fileName
,
String
unZipPath
)
{
Set
<
String
>
set
=
new
HashSet
<>();
try
{
InputStream
inputStream
=
FileUtil
.
getInputStream
(
fileName
);
InputStream
inputStream
=
null
;
TarArchiveInputStream
fin
=
null
;
try
{
inputStream
=
FileUtil
.
getInputStream
(
fileName
);
TarArchiveInputStream
fin
=
new
TarArchiveInputStream
(
inputStream
);
fin
=
new
TarArchiveInputStream
(
inputStream
);
log
.
info
(
"********开始执行tar"
);
// File extraceFolder = new File(unZipPath);
TarArchiveEntry
entry
;
...
...
@@ -154,7 +156,18 @@ public class ZipUtils {
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
log
.
error
(
"解压tar文件失败"
,
e
);
}
finally
{
try
{
fin
.
close
();
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
}
try
{
inputStream
.
close
();
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
}
}
if
(
localFiles
==
null
)
{
localFiles
=
set
;
...
...
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