jodd-joy/src/main/java/jodd/joy/JoyProps.java
@Override
	public void start() {
		initLogger();

		log.info("PROPS start ----------");

		props = createProps();

		props.loadSystemProperties("sys");
		props.loadEnvironment("env");

		log.debug("Loaded sys&env props: " + props.countTotalProperties() + " properties.");

		props.setActiveProfiles(propsProfiles.toArray(new String[0]));

		// prepare patterns

		final String[] patterns = new String[propsNamePatterns.size() + 1];

		patterns[0] = "/" + nameSupplier.get() + "*.prop*";

		for (int i = 0; i < propsNamePatterns.size(); i++) {
			patterns[i + 1] = propsNamePatterns.get(i);
		}

		log.debug("Loading props from classpath...");

		final long startTime = System.currentTimeMillis();

		props.loadFromClasspath(patterns);

		log.debug("Props scanning completed in " + (System.currentTimeMillis() - startTime) + "ms.");

		log.debug("Total properties: " + props.countTotalProperties());

		log.info("PROPS OK!");
	}
@Override
	public void start() {
		initLogger();

		log.info("PROPS start ----------");

		props = createProps();

		props.loadSystemProperties("sys");
		props.loadEnvironment("env");

		log.debug("Loaded sys&env props: " + props.countTotalProperties() + " properties.");

		props.setActiveProfiles(propsProfiles.toArray(new String[0]));

		// prepare patterns

		final String[] patterns = new String[propsNamePatterns.size() + 1];

		patterns[0] = "/" + nameSupplier.get() + "*.prop*";

		for (int i = 0; i < propsNamePatterns.size(); i++) {
			patterns[i + 1] = propsNamePatterns.get(i);
		}

		log.debug("Loading props from classpath...");

		final long startTime = System.currentTimeMillis();

		props.loadFromClasspath(patterns);

		log.debug("Props scanning completed in " + (System.currentTimeMillis() - startTime) + "ms.");

		log.debug("Total properties: " + props.countTotalProperties());

		log.info("PROPS OK!");
	}
@ Override public void start ( ) { initLogger ( ) ; log . info ( "PROPS start ----------" ) ; props = createProps ( ) ; props . loadSystemProperties ( "sys" ) ; props . loadEnvironment ( "env" ) ; log . debug ( "Loaded sys&env props: " + props . countTotalProperties ( ) + " properties." ) ; props . setActiveProfiles ( propsProfiles . toArray ( new String [ 0 ] ) ) ; // prepare patterns final String [ ] patterns = new String [ propsNamePatterns . size ( ) + 1 ] ; patterns [ 0 ] = "/" + nameSupplier . get ( ) + "*.prop*" ; for ( int i = 0 ; i < propsNamePatterns . size ( ) ; i ++ ) { patterns [ i + 1 ] = propsNamePatterns . get ( i ) ; } log . debug ( "Loading props from classpath..." ) ; final long startTime = System . currentTimeMillis ( ) ; props . loadFromClasspath ( patterns ) ; log . debug ( "Props scanning completed in " + ( System . currentTimeMillis ( ) - startTime ) + "ms." ) ; log . debug ( "Total properties: " + props . countTotalProperties ( ) ) ; log . info ( "PROPS OK!" ) ; }
Creates and loads application props.
It first loads system properties (registered as <code>sys.*</code>)
and then environment properties (registered as <code>env.*</code>).
Finally, props files are read from the classpath. All properties
are loaded using
<p>
If props have been already loaded, does nothing.
Creates and loads application props . It first loads system properties ( registered as <code > sys . * < / code > ) and then environment properties ( registered as <code > env . * < / code > ) . Finally props files are read from the classpath . All properties are loaded using <p > If props have been already loaded does nothing .