for (int i = 0; i < files.length; i++) {
File file = new File(ds.getBasedir(), files[i]);
try {
if (file.isFile() && file.getName().endsWith(".jar")) {
if (deployRepo != null)
project.deploy(deployRepo, file);
else
project.deploy(file);
} else
messages.NotAJarFile_(file);
}