fix: 修改引用包名错误问题 (#5312)
Co-authored-by: BugKing <wangzhen@fit2cloud.com>
This commit is contained in:
parent
f9ea173955
commit
a1c7a369d3
|
@ -19,7 +19,7 @@ public class IssueFactory {
|
||||||
} else if (StringUtils.equals(IssuesManagePlatform.AzureDevops.toString(), platform)) {
|
} else if (StringUtils.equals(IssuesManagePlatform.AzureDevops.toString(), platform)) {
|
||||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||||
try {
|
try {
|
||||||
Class clazz = loader.loadClass("io.metersphere.xpack.issue.azureDevops.AzureDevopsPlatform");
|
Class clazz = loader.loadClass("io.metersphere.xpack.issue.azuredevops.AzureDevopsPlatform");
|
||||||
Constructor cons = clazz.getDeclaredConstructor(new Class[] { IssuesRequest.class });
|
Constructor cons = clazz.getDeclaredConstructor(new Class[] { IssuesRequest.class });
|
||||||
AbstractIssuePlatform azureDevopsPlatform = (AbstractIssuePlatform) cons.newInstance(addIssueRequest);
|
AbstractIssuePlatform azureDevopsPlatform = (AbstractIssuePlatform) cons.newInstance(addIssueRequest);
|
||||||
return azureDevopsPlatform;
|
return azureDevopsPlatform;
|
||||||
|
|
|
@ -479,7 +479,7 @@ public class IssuesService {
|
||||||
if (CollectionUtils.isNotEmpty(azureDevopsIssues)) {
|
if (CollectionUtils.isNotEmpty(azureDevopsIssues)) {
|
||||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||||
try {
|
try {
|
||||||
Class clazz = loader.loadClass("io.metersphere.xpack.issue.azureDevops.AzureDevopsPlatform");
|
Class clazz = loader.loadClass("io.metersphere.xpack.issue.azuredevops.AzureDevopsPlatform");
|
||||||
Constructor cons = clazz.getDeclaredConstructor(new Class[] { IssuesRequest.class });
|
Constructor cons = clazz.getDeclaredConstructor(new Class[] { IssuesRequest.class });
|
||||||
AbstractIssuePlatform azureDevopsPlatform = (AbstractIssuePlatform) cons.newInstance(issuesRequest);
|
AbstractIssuePlatform azureDevopsPlatform = (AbstractIssuePlatform) cons.newInstance(issuesRequest);
|
||||||
syncThirdPartyIssues(azureDevopsPlatform::syncIssues, project, azureDevopsIssues);
|
syncThirdPartyIssues(azureDevopsPlatform::syncIssues, project, azureDevopsIssues);
|
||||||
|
|
Loading…
Reference in New Issue