generate repository urls

This commit is contained in:
Sebastian Sdorra
2010-11-19 19:17:54 +01:00
parent f8699c3318
commit 7bbcacf2b0
11 changed files with 121 additions and 136 deletions

View File

@@ -63,7 +63,6 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
/**
*
@@ -131,6 +130,20 @@ public class HgRepositoryHandler extends AbstractRepositoryHandler<HgConfig>
storeRepository(repository, hgDirectory);
}
/**
* Method description
*
*
* @param repository
*
* @return
*/
@Override
public String createResourcePath(Repository repository)
{
return "/hg/".concat(repository.getName());
}
/**
* Method description
*
@@ -361,7 +374,6 @@ public class HgRepositoryHandler extends AbstractRepositoryHandler<HgConfig>
repository = new Repository();
repository.setType(TYPE_NAME);
repository.setName(name);
repository.setUrl(buildUrl(repository));
loadRepository(repository, hgDirectory);
}
}