Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
d49f0148
Commit
d49f0148
authored
May 09, 2022
by
Ludovic Apvrille
Browse files
Switching to java 11 and gradle 7: first step
parent
ff0879d0
Changes
41
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.idea/runConfigurations/TTool.xml
View file @
d49f0148
<component
name=
"ProjectRunConfigurationManager"
>
<configuration
default=
"false"
name=
"TTool"
type=
"Application"
factoryName=
"Application"
>
<extension
name=
"coverage"
enabled=
"false"
merge=
"false"
sample_coverage=
"true"
runner=
"idea"
/>
<option
name=
"ALTERNATIVE_JRE_PATH"
value=
"jbr-11"
/>
<option
name=
"ALTERNATIVE_JRE_PATH_ENABLED"
value=
"true"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"Main"
/>
<option
name=
"VM_PARAMETERS"
value=
""
/>
<option
name=
"PROGRAM_PARAMETERS"
value=
"-debug -proverif -experimental -config bin/config.xml"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"file://$PROJECT_DIR$"
/>
<option
name=
"ALTERNATIVE_JRE_PATH_ENABLED"
value=
"false"
/>
<option
name=
"ALTERNATIVE_JRE_PATH"
/>
<option
name=
"ENABLE_SWING_INSPECTOR"
value=
"false"
/>
<option
name=
"ENV_VARIABLES"
/>
<option
name=
"PASS_PARENT_ENVS"
value=
"true"
/>
<module
name=
"ttool"
/>
<envs
/>
<method>
<option
name=
"PROGRAM_PARAMETERS"
value=
"-debug -proverif -experimental -config bin/config.xml"
/>
<method
v=
"2"
>
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"BuildArtifacts"
enabled=
"true"
>
<artifact
name=
"dependencies"
/>
</option>
...
...
build.gradle
View file @
d49f0148
...
...
@@ -12,7 +12,7 @@ ext {
subprojects
{
apply
plugin:
'java'
sourceCompatibility
=
1.
8
sourceCompatibility
=
1.
11
// version =
sourceSets
{
...
...
@@ -38,7 +38,8 @@ subprojects {
libsDirName
=
"${rootProject.absPath}/build"
task
copyRuntimeLibs
(
type:
Copy
)
{
from
configurations
.
runtime
project
.
configurations
.
getByName
(
"runtimeOnly"
).
setCanBeResolved
(
true
)
from
configurations
.
implementation
from
'runtime'
into
"${rootProject.absPath}/build"
}
...
...
gradle/wrapper/gradle-wrapper.properties
View file @
d49f0148
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
3.5
-bin.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
7.4.2
-bin.zip
graphminimize/build.gradle
View file @
d49f0148
...
...
@@ -33,8 +33,9 @@ dependencies {
jar
{
manifest
{
project
.
configurations
.
getByName
(
"implementation"
).
setCanBeResolved
(
true
)
attributes
(
'Class-Path'
:
configurations
.
co
mp
i
le
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Class-Path'
:
configurations
.
i
mple
mentation
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Main-Class'
:
'GraphMinimize'
)
}
...
...
graphshow/build.gradle
View file @
d49f0148
...
...
@@ -15,21 +15,22 @@ sourceSets {
}
dependencies
{
co
mp
i
le
name:
'gs-core-2.0'
co
mp
i
le
name:
'gs-ui-swing-2.0'
co
mp
i
le
name:
'commons-io-2.5'
i
mple
mentation
name:
'gs-core-2.0'
i
mple
mentation
name:
'gs-ui-swing-2.0'
i
mple
mentation
name:
'commons-io-2.5'
compileOnly
name:
'commons-codec-1.10'
compileOnly
name:
'jsoup-1.8.1'
co
mp
i
le
name:
'jautomata-core'
i
mple
mentation
name:
'jautomata-core'
compileOnly
name:
'jna-3.3.0'
co
mp
i
le
name:
'commons-math3-3.6.1'
co
mp
i
le
name:
'jfreechart-1.6.0'
i
mple
mentation
name:
'commons-math3-3.6.1'
i
mple
mentation
name:
'jfreechart-1.6.0'
}
jar
{
manifest
{
project
.
configurations
.
getByName
(
"implementation"
).
setCanBeResolved
(
true
)
attributes
(
'Class-Path'
:
configurations
.
co
mp
i
le
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Class-Path'
:
configurations
.
i
mple
mentation
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Main-Class'
:
'GraphShow'
)
}
...
...
launcher/build.gradle
View file @
d49f0148
...
...
@@ -12,18 +12,19 @@ sourceSets {
}
dependencies
{
co
mp
i
le
name:
'commons-codec-1.10'
i
mple
mentation
name:
'commons-codec-1.10'
compileOnly
name:
'commons-io-2.5'
compileOnly
name:
'jsoup-1.8.1'
compileOnly
name:
'jna-3.3.0'
co
mp
i
le
name:
'commons-math3-3.6.1'
co
mp
i
le
name:
'jfreechart-1.6.0'
i
mple
mentation
name:
'commons-math3-3.6.1'
i
mple
mentation
name:
'jfreechart-1.6.0'
}
jar
{
manifest
{
project
.
configurations
.
getByName
(
"implementation"
).
setCanBeResolved
(
true
)
attributes
(
'Class-Path'
:
configurations
.
co
mp
i
le
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Class-Path'
:
configurations
.
i
mple
mentation
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Main-Class'
:
'launcher.Main'
)
}
...
...
rundse/build.gradle
View file @
d49f0148
...
...
@@ -13,41 +13,42 @@ dependencies {
compileOnly
name:
'opencloud'
compileOnly
name:
'JavaPlot'
compileOnly
name:
'derbynet'
co
mp
i
le
name:
'commons-math3-3.6.1'
i
mple
mentation
name:
'commons-math3-3.6.1'
compileOnly
name:
'commons-codec-1.10'
compileOnly
name:
'commons-io-2.5'
compileOnly
name:
'jsoup-1.8.1'
compileOnly
name:
'gs-core-2.0'
compileOnly
name:
'gs-ui-swing-2.0'
co
mp
i
le
name:
'xercesImpl-2.12.0'
co
mp
i
le
name:
'fontbox-2.0.19'
co
mp
i
le
name:
'serializer-2.7.2'
co
mp
i
le
name:
'xalan-2.7.2'
co
mp
i
le
name:
'xml-apis-ext-1.3.04'
co
mp
i
le
name:
'commons-logging-1.0.4'
co
mp
i
le
name:
'xmlgraphics-commons-2.6'
co
mp
i
le
name:
'batik-all-1.14'
co
mp
i
le
name:
'xml-apis'
co
mp
i
le
name:
'json-java'
co
mp
i
le
name:
'fop'
co
mp
i
le
name:
'jautomata-core'
co
mp
i
le
name:
'com.microsoft.z3'
i
mple
mentation
name:
'xercesImpl-2.12.0'
i
mple
mentation
name:
'fontbox-2.0.19'
i
mple
mentation
name:
'serializer-2.7.2'
i
mple
mentation
name:
'xalan-2.7.2'
i
mple
mentation
name:
'xml-apis-ext-1.3.04'
i
mple
mentation
name:
'commons-logging-1.0.4'
i
mple
mentation
name:
'xmlgraphics-commons-2.6'
i
mple
mentation
name:
'batik-all-1.14'
i
mple
mentation
name:
'xml-apis'
i
mple
mentation
name:
'json-java'
i
mple
mentation
name:
'fop'
i
mple
mentation
name:
'jautomata-core'
i
mple
mentation
name:
'com.microsoft.z3'
compileOnly
name:
'jna-3.3.0'
co
mp
i
le
name:
'jgrapht-core-1.3.0'
co
mp
i
le
name:
'jgrapht-ext-1.3.0'
co
mp
i
le
name:
'jgrapht-io-1.3.0'
co
mp
i
le
name:
'jgraphx-3.4.1.3'
i
mple
mentation
name:
'jgrapht-core-1.3.0'
i
mple
mentation
name:
'jgrapht-ext-1.3.0'
i
mple
mentation
name:
'jgrapht-io-1.3.0'
i
mple
mentation
name:
'jgraphx-3.4.1.3'
co
mp
i
le
name:
'jfreechart-1.6.0'
i
mple
mentation
name:
'jfreechart-1.6.0'
}
jar
{
manifest
{
project
.
configurations
.
getByName
(
"implementation"
).
setCanBeResolved
(
true
)
attributes
(
'Class-Path'
:
configurations
.
co
mp
i
le
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Class-Path'
:
configurations
.
i
mple
mentation
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Main-Class'
:
'RunDSE'
)
}
...
...
simulationcontrol/build.gradle
View file @
d49f0148
...
...
@@ -13,13 +13,14 @@ sourceSets {
}
dependencies
{
co
mp
i
le
name:
'jsoup-1.8.1'
i
mple
mentation
name:
'jsoup-1.8.1'
}
jar
{
manifest
{
project
.
configurations
.
getByName
(
"implementation"
).
setCanBeResolved
(
true
)
attributes
(
'Class-Path'
:
configurations
.
co
mp
i
le
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Class-Path'
:
configurations
.
i
mple
mentation
.
collect
{
it
.
getName
()
}.
join
(
' '
),
'Main-Class'
:
'RemoteSimulationControl'
)
}
...
...
src/main/java/attacktrees/AttackTree.java
View file @
d49f0148
...
...
@@ -202,7 +202,7 @@ public class AttackTree extends AttackElement {
for
(
AttackerPopulation
ap:
populations
)
{
double
d
=
ap
.
getTotalAttackers
(
this
);
ret
.
add
(
new
Double
(
d
/
ap
.
getTotalPopulation
()));
ret
.
add
(
Double
.
valueOf
(
d
/
ap
.
getTotalPopulation
()));
}
return
ret
;
...
...
src/main/java/avatartranslator/AvatarStateMachine.java
View file @
d49f0148
...
...
@@ -379,10 +379,10 @@ public class AvatarStateMachine extends AvatarElement {
Integer
name
=
simplifiedElements
.
get
(
root
);
if
(
name
==
null
)
{
if
(
root
==
this
.
startState
)
simplifiedElements
.
put
(
root
,
new
Integer
(
0
));
simplifiedElements
.
put
(
root
,
Integer
.
valueOf
(
0
));
else
{
counter
++;
simplifiedElements
.
put
(
root
,
new
Integer
(
counter
));
simplifiedElements
.
put
(
root
,
Integer
.
valueOf
(
counter
));
}
}
}
else
{
...
...
src/main/java/avatartranslator/toproverif/AVATAR2ProVerif.java
View file @
d49f0148
...
...
@@ -532,7 +532,7 @@ public class AVATAR2ProVerif implements AvatarTranslator {
for
(
AvatarBlock
block:
blocks
)
{
Map
<
AvatarStateMachineElement
,
Integer
>
simplifiedElements
=
block
.
getStateMachine
().
getSimplifiedElements
();
if
(
simplifiedElements
.
get
(
block
.
getStateMachine
().
getStartState
())
==
null
)
simplifiedElements
.
put
(
block
.
getStateMachine
().
getStartState
(),
new
Integer
(
0
));
simplifiedElements
.
put
(
block
.
getStateMachine
().
getStartState
(),
Integer
.
valueOf
(
0
));
for
(
AvatarStateMachineElement
asme:
simplifiedElements
.
keySet
())
this
.
spec
.
addDeclaration
(
new
ProVerifVar
(
"call"
+
ATTR_DELIM
+
block
.
getName
()
+
ATTR_DELIM
+
simplifiedElements
.
get
(
asme
),
"bitstring"
,
true
));
...
...
@@ -976,7 +976,7 @@ public class AVATAR2ProVerif implements AvatarTranslator {
// Generate a new process for every simplified element of the block's state machine
Map
<
AvatarStateMachineElement
,
Integer
>
simplifiedElements
=
ab
.
getStateMachine
().
getSimplifiedElements
();
if
(
simplifiedElements
.
get
(
ab
.
getStateMachine
().
getStartState
())
==
null
)
simplifiedElements
.
put
(
ab
.
getStateMachine
().
getStartState
(),
new
Integer
(
0
));
simplifiedElements
.
put
(
ab
.
getStateMachine
().
getStartState
(),
Integer
.
valueOf
(
0
));
for
(
AvatarStateMachineElement
asme:
simplifiedElements
.
keySet
())
if
(
asme
!=
null
)
{
...
...
src/main/java/graph/AUTGraph.java
View file @
d49f0148
...
...
@@ -218,11 +218,11 @@ public class AUTGraph implements myutil.Graph {
s1
=
s
.
substring
(
s
.
indexOf
(
','
)
+
1
,
s
.
length
());
s1
=
s1
.
substring
(
0
,
s1
.
indexOf
(
','
));
s1
=
Conversion
.
removeFirstSpaces
(
s1
);
nbTransition
=
new
Integer
(
s1
).
intValue
();
nbTransition
=
Integer
.
valueOf
(
s1
).
intValue
();
s2
=
s
.
substring
(
s
.
indexOf
(
","
)
+
1
,
s
.
indexOf
(
')'
));
s2
=
s2
.
substring
(
s2
.
indexOf
(
","
)
+
1
,
s2
.
length
());
s2
=
Conversion
.
removeFirstSpaces
(
s2
);
nbState
=
new
Integer
(
s2
).
intValue
();
nbState
=
Integer
.
valueOf
(
s2
).
intValue
();
break
;
}
}
...
...
@@ -1202,11 +1202,11 @@ public class AUTGraph implements myutil.Graph {
if
(
st
.
isInitial
())
{
//@SuppressWarnings("unchecked")
mapOfStates
.
put
(
st
,
new
Integer
(
0
));
mapOfStates
.
put
(
st
,
Integer
.
valueOf
(
0
));
}
else
{
//@SuppressWarnings("unchecked")
mapOfStates
.
put
(
st
,
new
Integer
(
cpt
));
mapOfStates
.
put
(
st
,
Integer
.
valueOf
(
cpt
));
cpt
++;
}
}
...
...
@@ -1316,7 +1316,7 @@ public class AUTGraph implements myutil.Graph {
b0
.
addState
(
st
);
}
b0
.
computeHash
();
allBlocks
.
put
(
new
Integer
(
b0
.
hashValue
),
b0
);
allBlocks
.
put
(
Integer
.
valueOf
(
b0
.
hashValue
),
b0
);
AUTBlock
b0Test
=
new
AUTBlock
();
...
...
@@ -1325,7 +1325,7 @@ public class AUTGraph implements myutil.Graph {
}
b0Test
.
computeHash
();
AUTBlock
B0Ret
=
allBlocks
.
get
(
new
Integer
(
b0Test
.
hashValue
));
AUTBlock
B0Ret
=
allBlocks
.
get
(
Integer
.
valueOf
(
b0Test
.
hashValue
));
if
(
B0Ret
==
null
)
{
//TraceManager.addDev("ERROR: hash not working for blocks");
}
else
{
...
...
src/main/java/myutil/CSVObject.java
View file @
d49f0148
...
...
@@ -202,7 +202,7 @@ public class CSVObject {
ArrayList
<
Integer
>
list
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
ints
.
length
;
i
++)
{
try
{
list
.
add
(
new
Integer
(
ints
[
i
]));
list
.
add
(
Integer
.
valueOf
(
ints
[
i
]));
}
catch
(
NumberFormatException
nfe
)
{
}
...
...
src/main/java/proverifspec/ProVerifOutputAnalyzer.java
View file @
d49f0148
...
...
@@ -151,7 +151,7 @@ public class ProVerifOutputAnalyzer {
if
(
isInTrace
&&
(
str
.
startsWith
(
"A more detailed"
)
||
str
.
startsWith
(
"Could not find"
)))
{
isInTrace
=
false
;
resultTrace
.
finalize
();
resultTrace
.
finalize
Method
();
continue
;
}
else
if
(!
isInTrace
&&
str
.
startsWith
(
"1. "
))
...
...
src/main/java/proverifspec/ProVerifResultTrace.java
View file @
d49f0148
...
...
@@ -567,7 +567,7 @@ public class ProVerifResultTrace {
TraceManager
.
addDev
(
"[DEBUG] unmatch: "
+
str
);
}
public
void
finalize
()
public
void
finalize
Method
()
{
this
.
finalizeStep
();
}
...
...
src/main/java/tmltranslator/TMLRandomSequence.java
View file @
d49f0148
...
...
@@ -55,11 +55,11 @@ public class TMLRandomSequence extends TMLActivityElement {
public
TMLRandomSequence
(
String
_name
,
Object
_referenceObject
)
{
super
(
_name
,
_referenceObject
);
indexes
=
new
Vector
<
Integer
>();
indexes
=
new
Vector
<>();
}
public
void
addIndex
(
int
index
)
{
indexes
.
add
(
new
Integer
(
index
)
)
;
indexes
.
add
(
index
);
}
public
void
sortNexts
()
{
...
...
@@ -78,7 +78,7 @@ public class TMLRandomSequence extends TMLActivityElement {
int
i
;
while
(
indexes
.
size
()
>
0
)
{
i0
=
new
Integer
(
1000
)
;
i0
=
1000
;
index
=
-
1
;
for
(
i
=
0
;
i
<
indexes
.
size
();
i
++)
{
if
(
indexes
.
elementAt
(
i
).
compareTo
(
i0
)
<
0
)
{
...
...
src/main/java/ui/GTURTLEModeling.java
View file @
d49f0148
...
...
@@ -5147,7 +5147,7 @@ public class GTURTLEModeling {
//TraceManager.addDev("got zooms");
if
(
zoomS
!=
null
)
{
//TraceManager.addDev("Zoom found:" + zoomS);
double
zoomV
=
new
Double
(
zoomS
);
double
zoomV
=
Double
.
valueOf
(
zoomS
);
if
(
zoomV
!=
0
)
return
zoomDiag
/
zoomV
;
...
...
src/main/java/ui/TGUIAction.java
View file @
d49f0148
...
...
@@ -757,7 +757,7 @@ public class TGUIAction extends AbstractAction {
//putValue(Action.MNEMONIC_KEY, new Integer(actions[id].MNEMONIC_KEY));
if
(
actions
[
id
].
MNEMONIC_KEY
!=
0
)
{
if
(
actions
[
id
].
hasControl
)
{
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_MASK
));
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_
DOWN_
MASK
));
}
else
{
if
((
actions
[
id
].
MNEMONIC_KEY
>=
37
&&
actions
[
id
].
MNEMONIC_KEY
<=
40
)
||
actions
[
id
].
MNEMONIC_KEY
==
KeyEvent
.
VK_DELETE
)
//handling for arrow and delete keys
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
0
));
...
...
@@ -791,7 +791,7 @@ public class TGUIAction extends AbstractAction {
//putValue(Action.MNEMONIC_KEY, new Integer(actions[id].MNEMONIC_KEY));
if
(
actions
[
id
].
MNEMONIC_KEY
!=
0
)
{
if
(
actions
[
id
].
hasControl
)
{
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_MASK
));
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_
DOWN_
MASK
));
}
else
{
if
((
actions
[
id
].
MNEMONIC_KEY
>=
37
&&
actions
[
id
].
MNEMONIC_KEY
<=
40
)
||
actions
[
id
].
MNEMONIC_KEY
==
KeyEvent
.
VK_DELETE
)
//handling for arrow and delete keys
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
0
));
...
...
src/main/java/ui/avatarinteractivesimulation/AvatarInteractiveSimulationActions.java
View file @
d49f0148
...
...
@@ -121,7 +121,7 @@ public class AvatarInteractiveSimulationActions extends AbstractAction {
putValue
(
Action
.
LONG_DESCRIPTION
,
actions
[
id
].
LONG_DESCRIPTION
);
//putValue(Action.MNEMONIC_KEY, new Integer(actions[id].MNEMONIC_KEY));
if
(
actions
[
id
].
MNEMONIC_KEY
!=
0
)
{
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_MASK
));
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_
DOWN_
MASK
));
}
putValue
(
Action
.
ACTION_COMMAND_KEY
,
actions
[
id
].
ACTION_COMMAND_KEY
);
...
...
src/main/java/ui/interactivesimulation/InteractiveSimulationActions.java
View file @
d49f0148
...
...
@@ -145,7 +145,7 @@ public class InteractiveSimulationActions extends AbstractAction {
putValue
(
Action
.
LONG_DESCRIPTION
,
actions
[
id
].
LONG_DESCRIPTION
);
//putValue(Action.MNEMONIC_KEY, new Integer(actions[id].MNEMONIC_KEY));
if
(
actions
[
id
].
MNEMONIC_KEY
!=
0
)
{
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_MASK
));
putValue
(
Action
.
ACCELERATOR_KEY
,
KeyStroke
.
getKeyStroke
(
actions
[
id
].
MNEMONIC_KEY
,
java
.
awt
.
event
.
InputEvent
.
CTRL_
DOWN_
MASK
));
}
putValue
(
Action
.
ACTION_COMMAND_KEY
,
actions
[
id
].
ACTION_COMMAND_KEY
);
...
...
Prev
1
2
3
Next
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