Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for https://github.com/wso2/streaming-integrator/issues/165 #118

Merged
merged 8 commits into from
Feb 17, 2021
Prev Previous commit
  • Loading branch information
ramindu90 authored and dilini-muthumala committed Feb 11, 2021
commit c5f001752bd6f6825630b929d18e670d0bf2768d
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ protected Object[] process(Object[] data) {
if (sourceFileObject.getType().hasContent() &&
pattern.matcher(sourceFileObject.getName().getBaseName()).lookingAt()) {
String sourcePartialUri = sourceFileObject.getName().getPath();
sourcePartialUri = sourcePartialUri.replace(uri, "").
sourcePartialUri = sourcePartialUri.replace(rootFileObject.getName().getPath(), "").
replace(sourceFileObject.getName().getBaseName(), "");
moveFileToDestination(sourceFileObject, destinationDirUri + sourcePartialUri,
pattern);
Expand Down