I'm create a new ProfileActivator like:
@Component(role = ProfileActivator.class, hint = "ldap")
public class LdapQueryProfileActivator
implements ProfileActivator {
// ...
public LdapQueryProfileActivator() {
System.err.println("xxx");
FileUtil.writeFile("/tmp/mark123", "xyz");
// ...
}
}
It seems like the new activator hasn't been installed into Maven.
However, run the example test:
public class LdapProfileActivatorTest
extends AbstractProfileActivatorTest<LdapProfileActivator> {
public LdapProfileActivatorTest() {
super(LdapProfileActivator.class);
}
Profile newProfile() {
Activation activation = new Activation();
Profile profile = new Profile();
profile.setActivation(activation);
return profile;
}
public void testDefault() {
Profile profile = newProfile();
ProfileActivationContext context = newContext(null, null);
assertActivation(true, profile, context);
}
}
In this test, I can see the correct diagnostic output: "xxx" "xyz", etc.
Any idea? I'm using Maven 3.0.2.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]