public void before() {
status = TaskStatus.START;
if (getAction() == UpdateAction.INSTALL || getAction() == UpdateAction.UPDATE) {
Repository repository = resource.getRepository();
if (null != repository) {
Wagon wagon = WagonFactory.getWagon(repository.getProtocal());
wagon.transfer(repository.getLocation(resource), cacheDir + "/"
+ resource.getPackageName());
}
}
}