Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NTUMBA WA NTUMBA Patient
evolution-service-bus
Commits
76d99c8f
Commit
76d99c8f
authored
May 02, 2018
by
Patient NTUMBA
Browse files
Update Generator.java
parent
462f64db
Changes
1
Hide whitespace changes
Inline
Side-by-side
bc-generators/artifact-generators/src/main/java/eu/chorevolution/vsb/artifact/generators/Generator.java
View file @
76d99c8f
...
...
@@ -21,8 +21,7 @@ public class Generator {
private
Class
<?>
bc
=
null
;
public
Generator
(
ProtocolType
busProtocol
){
this
.
busProtocol
=
busProtocol
;
this
.
busProtocol
=
busProtocol
;
}
public
void
compileGeneratedClasses
(
Class
[]
classesOptions
){
...
...
@@ -40,19 +39,16 @@ public class Generator {
}
PathResolver
.
setClassPath
(
Constants
.
generatedCodePath
);
if
(
this
.
busProtocol
!=
ProtocolType
.
SOAP
)
{
if
(
this
.
busProtocol
!=
ProtocolType
.
SOAP
){
try
{
bc
=
Class
.
forName
(
Constants
.
target_namespace
+
".BindingComponentMain"
);
}
catch
(
ClassNotFoundException
e
){
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
}
...
...
@@ -81,18 +77,16 @@ public class Generator {
archive
.
addPackage
(
eu
.
chorevolution
.
vsb
.
bc
.
setinvaddrservice
.
BaseService
.
class
.
getPackage
());
archive
.
addPackage
(
eu
.
chorevolution
.
vsb
.
gm
.
protocols
.
Manageable
.
class
.
getPackage
());
archive
.
addPackage
(
eu
.
chorevolution
.
vsb
.
gmdl
.
tools
.
serviceparser
.
ServiceDescriptionParser
.
class
.
getPackage
());
jarGenerator
.
addArchive
(
archive
);
return
jarGenerator
.
generate
();
}
public
void
buidAndMergeArchives
(
String
pomfile
)
{
public
void
buidAndMergeArchives
(
String
pomfile
){
BuiltProject
builtProject
=
EmbeddedMaven
.
forProject
(
pomfile
).
useMaven3Version
(
"3.3.9"
).
setGoals
(
"package"
)
.
build
();
for
(
Archive
jar
:
builtProject
.
getArchives
())
{
for
(
Archive
jar
:
builtProject
.
getArchives
()){
archive
=
archive
.
merge
(
jar
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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