Skip to content

Commit

Permalink
SWITCHYARD-2061 Not possible to deploy WAR SwitchYard application whe…
Browse files Browse the repository at this point in the history
…n BPEL component is included
  • Loading branch information
cunningt committed Jul 17, 2015
1 parent a392be4 commit a7127f4
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,17 @@ protected java.io.File getDeployment() throws Exception {

java.net.URL url = Thread.currentThread().
getContextClassLoader().getResource(DEPLOY_XML);
int index = url.toString().indexOf(".jar");

int jarIndex = url.toString().indexOf(".jar");
int warIndex = url.toString().indexOf(".war");

boolean approvedDeployment = (
(url.toString().indexOf(".ear") != -1)
|| (url.toString().indexOf(".war") != -1)
|| (url.toString().indexOf(".jar") != -1)
);

// Check if url contains a jar
if (index != -1) {
if (approvedDeployment) {

if (url.getProtocol().equals(VFS_SCHEME)) {
// AS7 deployment
Expand Down

0 comments on commit a7127f4

Please sign in to comment.