Skip to content

Commit

Permalink
Fix Fail to deploy a app when the app's material files remain and if …
Browse files Browse the repository at this point in the history
…there is a lifecycle module

Signed-off-by: kaido207 <kaido.hiroki@fujitsu.com>
  • Loading branch information
kaido207 committed Nov 29, 2023
1 parent 2787564 commit 0f6c270
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -340,6 +340,9 @@ public void execute(AdminCommandContext context) {
final File reposDir = new File(env.getApplicationRepositoryPath(), VersioningUtils.getRepositoryName(name));
if (reposDir.exists()) {
for (int i = 0; i < domain.getApplications().getApplications().size(); i++) {
if (domain.getApplications().getApplications().get(i).isLifecycleModule()) {
continue;
}
File existrepos = new File(new URI(domain.getApplications().getApplications().get(i).getLocation()));
String appname = domain.getApplications().getApplications().get(i).getName();
if (!appname.equals(name) && existrepos.getAbsoluteFile().equals(reposDir.getAbsoluteFile())) {
Expand Down

0 comments on commit 0f6c270

Please sign in to comment.