diff --git a/etc/scripts/seam2cdi.sh b/etc/scripts/seam2cdi.sh index ebbcd10585..97650ae204 100755 --- a/etc/scripts/seam2cdi.sh +++ b/etc/scripts/seam2cdi.sh @@ -74,12 +74,12 @@ sed -i "$@" -f - <<-EOF # Seam scopes -> CDI/DeltaSpike scopes /import org.jboss.seam.ScopeType;\?/d /import org.jboss.seam.annotations.Scope;\?/d - s/@Scope(ScopeType.APPLICATION)/@javax.enterprise.context.ApplicationScoped/g - s/@Scope(ScopeType.EVENT)/@javax.enterprise.context.RequestScoped/g - s/@Scope(ScopeType.PAGE)/@javax.faces.bean.ViewScoped/g - s|@Scope(ScopeType.CONVERSATION)|@org.apache.deltaspike.core.api.scope.ViewAccessScoped /* TODO [CDI] check this: migrated from ScopeType.CONVERSATION */|g - s/@Scope(ScopeType.SESSION)/@javax.enterprise.context.SessionScoped/g - s/@Scope(ScopeType.STATELESS)/@javax.enterprise.context.Dependent/g + s/@Scope(\(ScopeType.\)\?APPLICATION)/@javax.enterprise.context.ApplicationScoped/g + s/@Scope(\(ScopeType.\)\?EVENT)/@javax.enterprise.context.RequestScoped/g + s/@Scope(\(ScopeType.\)\?PAGE)/@javax.faces.bean.ViewScoped/g + s|@Scope(\(ScopeType.\)\?CONVERSATION)|@org.apache.deltaspike.core.api.scope.ViewAccessScoped /* TODO [CDI] check this: migrated from ScopeType.CONVERSATION */|g + s/@Scope(\(ScopeType.\)\?SESSION)/@javax.enterprise.context.SessionScoped/g + s/@Scope(\(ScopeType.\)\?STATELESS)/@javax.enterprise.context.Dependent/g # Seam's AutoCreate behaviour is the default in CDI /import org.jboss.seam.annotations.AutoCreate;\?/d