Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Conversation

@SvetlanaUtina
Copy link
Contributor

this is pr created because I have issue #29

String sConfigFileFolder = System.getProperty("TagConfigFile", "config");
LOG.debug("Loading properties from {}/{}", sConfigFileFolder, sConfigFile);
InputStream streamFromResource = Props.class.getClassLoader().getResourceAsStream(sConfigFileFolder + "/" + sConfigFile);
String configFileDefault = "config/application.properties";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю, тогда сделать возможность задавать и папку и файл, считаю что так код и логика будут более прозрачными.

String configFile = System.getProperty("TagConfigFile", "application.properties");
String configFileFolder = System.getProperty("TagConfigFileFolder", "config");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

необходимо будет обновить тогда документацию
https://docs.sbtqa.ru/?version=14.6.0#_Конфигурационный_файл

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, Вы правы, можете создать pr в page-factory-2.
Этот текст находится в файле https://github.com/sbtqa/page-factory-2/blob/master/page-factory-doc/src/main/asciidoc/common_properties.asciidoc

added TagConfigFileFolder variable for set path to config
}
String configFile = System.getProperty("TagConfigFile", "application.properties");
String configFileFolder = System.getProperty("TagConfigFileFolder", "config");
LOG.warn("Loading properties from {}/{}", configFileFolder, configFile);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему теперь это сообщение на уровне warn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

случайно))

@kosteman kosteman merged commit 0624ee4 into sbtqa:master Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants