支持创建项目 自动创建默认文件夹

pull/3/head
rekoe 2016-03-25 10:53:08 +08:00
parent af42cb1f00
commit 426967060f
3 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,7 @@ public class ProjectConfig implements Serializable {
@Column("def_dirs")
@ColDefine(type = ColType.VARCHAR, width = 225, adaptor = StringJsonAdaptor.class)
@Default("[server,client,art,design,plan]")
@Default("[\"branches\",\"tags\",\"trunk\",\"trunk/server\",\"trunk/client\",\"trunk/art\",\"trunk/design\",\"trunk/plan\"]")
@Comment("默认初始化目录")
private List<String> dirs;

View File

@ -33,7 +33,6 @@ import com.rekoe.service.ProjectService;
import com.rekoe.service.RepositoryService;
import com.rekoe.service.UsrService;
import com.rekoe.utils.CommonUtils;
import com.rekoe.utils.UsrProvider;
@IocBean
@At("/admin/project")
@ -47,7 +46,6 @@ public class AdminProjectAct extends BaseAction {
@RequiresPermissions({ "svn.project:view" })
@PermissionTag(name = "SVN浏览项目", tag = "SVN项目管理")
public Pagination list(@Param(value = "pageNumber", df = "1") int page) {
System.out.println(UsrProvider.getCurrentUsr());
return projectService.getObjListByPager(page, 20, null);
}

View File

@ -174,7 +174,7 @@ public class RepositoryService {
int i = 0;
for (String url : dirs) {
try {
urlAr[i] = SVNURL.parseURIEncoded(url);
urlAr[i] = SVNURL.parseURIEncoded(getProjectSVNUrl(pj) + "/" + url);
} catch (SVNException e) {
LOG.error(e);
}