Commit 76d99c8f authored by Patient NTUMBA's avatar Patient NTUMBA

Update Generator.java

parent 462f64db
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment