Skip to content

Commit

Permalink
migrate to 11.2 apis
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 27, 2023
1 parent 9630138 commit f74bf1a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator;
import org.bouncycastle.operator.OutputEncryptor;
import org.eclipse.core.resources.IProject;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
Expand All @@ -31,7 +30,6 @@
import ch.ivyteam.ivy.mail.MailClientConfig;
import ch.ivyteam.ivy.mail.MailClientConfigProvider;
import ch.ivyteam.ivy.mail.MailConstants.EmailEncryption;
import ch.ivyteam.ivy.project.IIvyProject;
import ch.ivyteam.ivy.scripting.objects.File;
import ch.ivyteam.ivy.security.exec.Sudo;

Expand Down Expand Up @@ -136,9 +134,7 @@ public static MailClientConfig getMailSetup() throws Exception {
return Sudo.call(new Callable<MailClientConfig>() {
@Override
public MailClientConfig call() throws Exception {
IProject project = Ivy.request().getProcessModelVersion().getProject();
IIvyProject ivyProject = (IIvyProject) project.getAdapter(IIvyProject.class);
return MailClientConfigProvider.get(ivyProject);
return MailClientConfigProvider.get();
}
});
}
Expand Down

0 comments on commit f74bf1a

Please sign in to comment.