ProxyInfo proxyInfo = getProxyInfo(repository, wagonManager);
if (proxyInfo != null) {
wagon.connect(repository, wagonManager
.getAuthenticationInfo(server), proxyInfo);
} else {
wagon.connect(repository, wagonManager
.getAuthenticationInfo(server));
}
wagon.putDirectory(new File(woaDirectory), "./" + finalName + ".woa");