public void repo(String args[], int i) throws Exception {
String bsn = null;
String version = null;
List<RepositoryPlugin> repos = new ArrayList<RepositoryPlugin>();
RepositoryPlugin writable = null;
Project p = Workspace.getProject(getBase());
if (p != null) {
repos.addAll(p.getWorkspace().getRepositories());
for (Iterator<RepositoryPlugin> rp = repos.iterator(); rp.hasNext();) {
RepositoryPlugin rpp = rp.next();
if (rpp.canWrite()) {
writable = rpp;
break;
}
}
}