|
28 | 28 | import com.helger.commons.ValueEnforcer;
|
29 | 29 | import com.helger.commons.concurrent.SimpleReadWriteLock;
|
30 | 30 | import com.helger.commons.equals.EqualsHelper;
|
| 31 | +import com.helger.commons.exception.InitializationException; |
31 | 32 | import com.helger.commons.io.resource.IReadableResource;
|
32 | 33 | import com.helger.commons.io.resourceprovider.ClassPathResourceProvider;
|
33 | 34 | import com.helger.commons.io.resourceprovider.FileSystemResourceProvider;
|
@@ -70,11 +71,17 @@ public final class AS4Configuration
|
70 | 71 | {
|
71 | 72 | // Since 0.11.0 - remove in 1.0
|
72 | 73 | if (StringHelper.hasText (SystemProperties.getPropertyValueOrNull ("phase4.server.configfile")))
|
73 |
| - LOGGER.error ("The system property 'phase4.server.configfile' is no longer supported. See https://github.com/phax/ph-commons#ph-config for alternatives."); |
| 74 | + throw new InitializationException ("The system property 'phase4.server.configfile' is no longer supported." + |
| 75 | + " See https://github.com/phax/ph-commons#ph-config for alternatives." + |
| 76 | + " Consider using the system property 'config.file' instead."); |
74 | 77 | if (StringHelper.hasText (SystemProperties.getPropertyValueOrNull ("as4.server.configfile")))
|
75 |
| - LOGGER.error ("The system property 'as4.server.configfile' is no longer supported. See https://github.com/phax/ph-commons#ph-config for alternatives."); |
| 78 | + throw new InitializationException ("The system property 'as4.server.configfile' is no longer supported." + |
| 79 | + " See https://github.com/phax/ph-commons#ph-config for alternatives." + |
| 80 | + " Consider using the system property 'config.file' instead."); |
76 | 81 | if (StringHelper.hasText (System.getenv ().get ("PHASE4_SERVER_CONFIG")))
|
77 |
| - LOGGER.error ("The environment variable 'PHASE4_SERVER_CONFIG' is no longer supported. See https://github.com/phax/ph-commons#ph-config for alternatives."); |
| 82 | + throw new InitializationException ("The environment variable 'PHASE4_SERVER_CONFIG' is no longer supported." + |
| 83 | + " See https://github.com/phax/ph-commons#ph-config for alternatives." + |
| 84 | + " Consider using the environment variable 'CONFIG_FILE' instead."); |
78 | 85 | }
|
79 | 86 |
|
80 | 87 | /**
|
|
0 commit comments