Skip to content

Commit

Permalink
Merge pull request fabric8io#60 from jboss-fuse/FABRIC-1200_remove_sl…
Browse files Browse the repository at this point in the history
…ash_replace
  • Loading branch information
fusesource-ci committed Dec 16, 2014
2 parents 7d19e42 + 791bf5a commit 36e5533
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void handleFeatures(ProfileBuilder builder, String[] features, Profile p
} else {
System.out.println("Adding feature:" + feature + " to profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, FEATURE_PREFIX + feature.replace('/', '_'), feature, set, delete);
updateConfig(conf, FEATURE_PREFIX , feature, set, delete);
builder.addConfiguration(Constants.AGENT_PID, conf);
}
}
Expand All @@ -267,7 +267,7 @@ private void handleFeatureRepositories(ProfileBuilder builder, String[] reposito
} else if (delete) {
System.out.println("Deleting feature repository:" + repositoryURI + " from profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, REPOSITORY_PREFIX + repositoryURI.replace('/', '_'), repositoryURI, set, delete);
updateConfig(conf, REPOSITORY_PREFIX, repositoryURI, set, delete);
}
builder.addConfiguration(Constants.AGENT_PID, conf);
}
Expand All @@ -287,7 +287,7 @@ private void handleLibraries(ProfileBuilder builder, String[] libs, Profile prof
} else if (delete) {
System.out.println("Deleting "+libType+":" + lib + " from profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, libPrefix + lib.replace('/', '_'), lib, set, delete);
updateConfig(conf, libPrefix, lib, set, delete);
}
builder.addConfiguration(Constants.AGENT_PID, conf);
}
Expand All @@ -305,7 +305,7 @@ private void handleBundles(ProfileBuilder builder, String[] bundles, Profile pro
} else if (delete) {
System.out.println("Deleting bundle:" + bundle + " from profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, BUNDLE_PREFIX + bundle.replace('/', '_'), bundle, set, delete);
updateConfig(conf, BUNDLE_PREFIX, bundle, set, delete);
}
builder.addConfiguration(Constants.AGENT_PID, conf);
}
Expand All @@ -323,7 +323,7 @@ private void handleFabs(ProfileBuilder builder, String[] fabs, Profile profile)
} else if (delete) {
System.out.println("Deleting FAB:" + fab + " from profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, FAB_PREFIX + fab.replace('/', '_'), fab, set, delete);
updateConfig(conf, FAB_PREFIX, fab, set, delete);
}
builder.addConfiguration(Constants.AGENT_PID, conf);
}
Expand All @@ -341,7 +341,7 @@ private void handleOverrides(ProfileBuilder builder, String[] overrides, Profile
} else if (delete) {
System.out.println("Deleting override:" + override + " from profile:" + profile.getId() + " version:" + profile.getVersion());
}
updateConfig(conf, OVERRIDE_PREFIX + override.replace('/', '_'), override, set, delete);
updateConfig(conf, OVERRIDE_PREFIX, override, set, delete);
}
builder.addConfiguration(Constants.AGENT_PID, conf);
}
Expand Down

0 comments on commit 36e5533

Please sign in to comment.