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
b3002524
Commit
b3002524
authored
Oct 29, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录鉴权时间
parent
ed3258b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
.../src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
+10
-1
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
View file @
b3002524
...
...
@@ -74,8 +74,10 @@ public class ZipUtils {
*/
public
static
Set
<
String
>
unGzip
(
InputStream
inputStream
,
String
unZipPath
)
{
Set
<
String
>
set
=
new
HashSet
<>();
TarArchiveInputStream
fin
=
null
;
try
{
TarArchiveInputStream
fin
=
new
TarArchiveInputStream
(
new
GzipCompressorInputStream
(
inputStream
));
fin
=
new
TarArchiveInputStream
(
new
GzipCompressorInputStream
(
inputStream
));
log
.
info
(
"********开始执行gzip"
);
TarArchiveEntry
entry
;
// 将 tar 文件解压到 extractPath 目录下
...
...
@@ -98,6 +100,13 @@ public class ZipUtils {
}
catch
(
IOException
e
)
{
log
.
error
(
"解压tar.gz文件失败"
,
e
);
}
finally
{
try
{
inputStream
.
close
();
fin
.
close
();
}
catch
(
IOException
e
)
{
log
.
error
(
"关闭流失败"
,
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