You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* To run this app, arguments must be passed in the following way:
8
+
* args[0] - classpath of current project
9
+
* args[1] - fully qualified name of configuration class
10
+
* args[2] - `.properties` file paths, separated via `;`, empty string if no files exist
11
+
* args[3] - `.xml` configuration file paths
12
+
*
13
+
* Several items in one arg are separated via `;`.
14
+
* If there are no files, empty string should be passed.
15
+
*/
16
+
funmain(args:Array<String>) {
17
+
18
+
/* FOR EXAMPLE
19
+
val arg0 = "/Users/kirillshishin/IdeaProjects/spring-starter-lesson-28/build/classes/java/main"
20
+
val arg1 = "com.dmdev.spring.config.ApplicationConfiguration"
21
+
val arg2 = "/Users/kirillshishin/IdeaProjects/spring-starter-lesson-28/src/main/resources/application.properties;/Users/kirillshishin/IdeaProjects/spring-starter-lesson-28/src/main/resources/application-web.properties"
22
+
val arg3 = "/Users/kirillshishin/IdeaProjects/spring-starter-lesson-28/src/main/resources/application.xml;/Users/kirillshishin/IdeaProjects/spring-starter-lesson-28/src/main/resources/application2.xml"
23
+
*/
24
+
25
+
val springApplicationAnalyzer =SpringApplicationAnalyzer(
26
+
applicationPath = args[0],
27
+
configurationClassFqn = args[1],
28
+
propertyFilesPaths = args[2].split(";").filter { it !=PathsUtils.EMPTY_PATH },
29
+
xmlConfigurationPaths = args[3].split(";").filter { it !=PathsUtils.EMPTY_PATH },
0 commit comments