mirror of https://github.com/Rekoe/rk_svnadmin
支持创建项目 自动创建默认文件夹
parent
af42cb1f00
commit
426967060f
|
@ -38,7 +38,7 @@ public class ProjectConfig implements Serializable {
|
||||||
|
|
||||||
@Column("def_dirs")
|
@Column("def_dirs")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 225, adaptor = StringJsonAdaptor.class)
|
@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("默认初始化目录")
|
@Comment("默认初始化目录")
|
||||||
private List<String> dirs;
|
private List<String> dirs;
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ import com.rekoe.service.ProjectService;
|
||||||
import com.rekoe.service.RepositoryService;
|
import com.rekoe.service.RepositoryService;
|
||||||
import com.rekoe.service.UsrService;
|
import com.rekoe.service.UsrService;
|
||||||
import com.rekoe.utils.CommonUtils;
|
import com.rekoe.utils.CommonUtils;
|
||||||
import com.rekoe.utils.UsrProvider;
|
|
||||||
|
|
||||||
@IocBean
|
@IocBean
|
||||||
@At("/admin/project")
|
@At("/admin/project")
|
||||||
|
@ -47,7 +46,6 @@ public class AdminProjectAct extends BaseAction {
|
||||||
@RequiresPermissions({ "svn.project:view" })
|
@RequiresPermissions({ "svn.project:view" })
|
||||||
@PermissionTag(name = "SVN浏览项目", tag = "SVN项目管理")
|
@PermissionTag(name = "SVN浏览项目", tag = "SVN项目管理")
|
||||||
public Pagination list(@Param(value = "pageNumber", df = "1") int page) {
|
public Pagination list(@Param(value = "pageNumber", df = "1") int page) {
|
||||||
System.out.println(UsrProvider.getCurrentUsr());
|
|
||||||
return projectService.getObjListByPager(page, 20, null);
|
return projectService.getObjListByPager(page, 20, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ public class RepositoryService {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (String url : dirs) {
|
for (String url : dirs) {
|
||||||
try {
|
try {
|
||||||
urlAr[i] = SVNURL.parseURIEncoded(url);
|
urlAr[i] = SVNURL.parseURIEncoded(getProjectSVNUrl(pj) + "/" + url);
|
||||||
} catch (SVNException e) {
|
} catch (SVNException e) {
|
||||||
LOG.error(e);
|
LOG.error(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue