[jboss-jira] [JBoss JIRA] (AS7-3995) make add-users.sh/bat script have domain directory location a parameter

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Fri Mar 2 05:48:36 EST 2012


     [ https://issues.jboss.org/browse/AS7-3995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated AS7-3995:
----------------------------------

         Assignee:     (was: Thomas Diesler)
    Fix Version/s: Open To Community
         Priority: Major  (was: Minor)
      Component/s: Domain Management
                       (was: ConfigAdmin)


For the moment probably not likely to be considered in the short term unless someone in the community wants to contribute a fix.

Once the current AS 7.1.x releases are out of the way I will be reviewing the outstanding 'Open To Community' issues to see if I will re-schedule any of them.
                
> make add-users.sh/bat script have domain directory location a parameter
> -----------------------------------------------------------------------
>
>                 Key: AS7-3995
>                 URL: https://issues.jboss.org/browse/AS7-3995
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 7.1.0.Final
>         Environment: all
>            Reporter: Nicholas DiPiazza
>             Fix For: Open To Community
>
>
> 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()) {
>                 foundFiles.add(standaloneProps);
>             }
>             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()) {
>                 foundFiles.add(domainProps);
>             }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list