Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
e1605b46
Commit
e1605b46
authored
Jan 14, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add launcher.count as useful performance testing aid
parent
895daacd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
JarLauncher.java
...ain/java/org/springframework/boot/loader/JarLauncher.java
+4
-1
PropertiesLauncher.java
...a/org/springframework/boot/loader/PropertiesLauncher.java
+4
-1
No files found.
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JarLauncher.java
View file @
e1605b46
...
@@ -41,6 +41,9 @@ public class JarLauncher extends ExecutableArchiveLauncher {
...
@@ -41,6 +41,9 @@ public class JarLauncher extends ExecutableArchiveLauncher {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
new
JarLauncher
().
launch
(
args
);
int
count
=
new
Integer
(
System
.
getProperty
(
"launcher.count"
,
"1"
));
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
new
JarLauncher
().
launch
(
args
);
}
}
}
}
}
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java
View file @
e1605b46
...
@@ -539,7 +539,10 @@ public class PropertiesLauncher extends Launcher {
...
@@ -539,7 +539,10 @@ public class PropertiesLauncher extends Launcher {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
new
PropertiesLauncher
().
launch
(
args
);
int
count
=
new
Integer
(
System
.
getProperty
(
"launcher.count"
,
"1"
));
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
new
PropertiesLauncher
().
launch
(
args
);
}
}
}
public
static
String
toCamelCase
(
CharSequence
string
)
{
public
static
String
toCamelCase
(
CharSequence
string
)
{
...
...
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