Details
-
Feature Request
-
Resolution: Done
-
Major
-
7.1.0.Final
-
None
Description
add-users.sh / add-users.bat hard codes the location of the domains directory.
Would be very useful for some deployments if this were optional so that the domain could be in a different directory.
So...
org.jboss.as.domain.management.security.AddPropertiesUser
private boolean findFiles(final String jbossHome, final List<File> foundFiles, final String fileName) {
File standaloneProps = new File(jbossHome + "/standalone/configuration/" + fileName);
if (standaloneProps.exists())
File domainProps = new File(jbossHome + "/domain/configuration/" + fileName);
if (domainProps.exists()) { foundFiles.add(domainProps); }
Could become:
private boolean findFiles(final String jbossHome, final List<File> foundFiles, final String fileName) {
File standaloneProps = new File(jbossHome + "/standalone/configuration/" + fileName);
if (standaloneProps.exists()) { foundFiles.add(standaloneProps); }
File domainProps = new File((DOMAIN_ROOT_DIRECTORY == NULL ? jbossHome : DOMAIN_ROOT_DIRECTORY)+ "/domain/configuration/" + fileName);
if (domainProps.exists())