@Override
public String readScript()
{
FilterChain filterChain = new FilterChain();
antUtils.addTokensToFilterChain(filterChain, configuration.getProperties());
Map<String, String> propertiesMap = new Hashtable<String, String>();
addConfigurationScriptProperties(propertiesMap);
antUtils.addTokensToFilterChain(filterChain, propertiesMap);
String resourceName = resourcePath + getScriptRelativePath();
try
{
return resourceUtils.readResource(resourceName, filterChain, "UTF-8") + NEW_LINE;
}
catch (IOException e)
{
throw new CargoException("Error while reading resource [" + resourceName + "] ", e);
}
}