mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
FIXED : ALF-12540: AMP - file-mapping.properties: white space at end of line is significant
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@33781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -313,6 +313,9 @@ public class ModuleManagementTool
|
|||||||
throw new AlfrescoRuntimeException("File mapping targets must start with '/' but was '" + mappingTarget + "'");
|
throw new AlfrescoRuntimeException("File mapping targets must start with '/' but was '" + mappingTarget + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mappingSource = mappingSource.trim(); //trim whitespace
|
||||||
|
mappingTarget = mappingTarget.trim(); //trim whitespace
|
||||||
|
|
||||||
// Run throught the files one by one figuring out what we are going to do during the copy
|
// Run throught the files one by one figuring out what we are going to do during the copy
|
||||||
copyToWar(ampFileLocation, warFileLocation, mappingSource, mappingTarget, installedFiles, preview);
|
copyToWar(ampFileLocation, warFileLocation, mappingSource, mappingTarget, installedFiles, preview);
|
||||||
|
|
||||||
|
@@ -269,6 +269,27 @@ public class ModuleManagementToolTest extends TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testWhiteSpaceInCustomMapping()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
manager.setVerbose(true);
|
||||||
|
|
||||||
|
String warLocation = getFileLocation(".war", "module/test.war");
|
||||||
|
String ampLocation = getFileLocation(".amp", "module/test_v3.amp");
|
||||||
|
|
||||||
|
// Initial install of module
|
||||||
|
this.manager.installModule(ampLocation, warLocation, false, false, true);
|
||||||
|
|
||||||
|
List<String> files = new ArrayList<String>(10);
|
||||||
|
files.add("/WEB-INF/classes/alfresco/module/test/module.properties");
|
||||||
|
files.add("/WEB-INF/classes/alfresco/module/test/modifications.install");
|
||||||
|
files.add("/WEB-INF/lib/test.jar");
|
||||||
|
files.add("/WEB-INF/classes/alfresco/module/test/module-context.xml");
|
||||||
|
files.add("/images/test.jpg");
|
||||||
|
files.add("/css/test.css");
|
||||||
|
files.add("/extra.txt");
|
||||||
|
checkForFileExistance(warLocation, files);
|
||||||
|
}
|
||||||
|
|
||||||
public void testList()
|
public void testList()
|
||||||
throws Exception
|
throws Exception
|
||||||
|
BIN
source/test-resources/module/test_v3.amp
Normal file
BIN
source/test-resources/module/test_v3.amp
Normal file
Binary file not shown.
Reference in New Issue
Block a user