<BUG>SimpleCommandLinePropertySource source = new SimpleCommandLinePropertySource(args);addDefaultProfile(app, source);Environment env = app.run(args).getEnvironment();</BUG><CONTEXT>}}}public static void main(String[] args) throws UnknownHostException {SpringApplication app = new SpringApplication(SampleGradleApp.class);<extra_id_0>log.info("\n----------------------------------------------------------\n\t" +"Application '{}' is running! Access URLs:\n\t" +</CONTEXT>
if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {log.error("You have misconfigured your application! It should not" +"run with both the 'dev' and 'cloud' profiles at the same time.");addDefaultProfile(app);Environment env = app.run(args).getEnvironment();