Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-autotest-live
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-autotest-live
Commits
4b8eda1d
Commit
4b8eda1d
authored
Feb 02, 2021
by
fangyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 获取api 个数方法
parent
79ad107e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
src/main/java/com/live/utils/GetFilesNum.java
+33
-0
No files found.
src/main/java/com/live/utils/GetFilesNum.java
0 → 100644
View file @
4b8eda1d
package
com
.
live
.
utils
;
import
java.io.File
;
/**
* 用来统计api 个数
*/
public
class
GetFilesNum
{
public
static
int
num
=
0
;
public
static
void
main
(
String
[]
args
)
{
// TODO Auto-generated method stub
File
file
=
new
File
(
"src/main/java/com/sow/cases"
);
show
(
file
);
System
.
out
.
println
(
"有"
+
num
+
"个Jar文件"
);
}
public
static
void
show
(
File
file
)
{
// TODO Auto-generated method stub
for
(
File
f
:
file
.
listFiles
())
{
if
(
f
.
isFile
())
{
if
(
f
.
getName
().
startsWith
(
"Test"
))
{
num
++;
}
}
else
{
show
(
f
);
}
}
}
}
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