Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-46

Jumpstart command does not update the magnolia.resources.dir property for light modules folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 0.0.1
    • None
    • NodeJs 4.4.7
      NPM-CLI 0.0.1-snapshot-85
      OSX 10.11.6
    • Basel 56
    • 1

      The jumpstart command doesn't update the

      magnolia.resources.dir

      in magnolia.properties located at

      apache-tomcat/webapps/magnoliaAuthor/WEB-INF/config/default

      with the right location of the light-modules folder created by jumpstart.

      Steps to reproduce:

      1. Run: mgnl jumpstart
        INFO: Using configuration at /usr/local/lib/node_modules/@magnolia/cli/lib/config/mgnl-cli.json
        INFO: Using prototypes at /usr/local/lib/node_modules/@magnolia/cli/lib/config/mgnl-cli-prototypes
        INFO: No path option provided. Will use the default 'light-modules' in the current directory
        INFO: No magnolia-version option provided. Will use the latest Community Edition
        INFO: '/Users/ebguilbert/tmp/jira-npm/light-modules' does not seem to exist. Path will be created automatically.
        Downloading...
        
      2. When finished check the bottom of messages:
        Extracting...
        magnolia-5.4.8/apache-tomcat-7.0.64/ to /Users/ebguilbert/tmp/jira-npm/apache-tomcat
        Extraction completed
        Replacing Magnolia properties to prepare it for light development...
        Changing magnolia.properties at apache-tomcat/webapps/magnoliaAuthor/WEB-INF/config/default as follows:
        magnolia.develop=true
        magnolia.update.auto=true
        magnolia.resources.dir=/Users/ebguilbert/tmp/jira-npm/light-modules
        Downloading neat-resources-1.0.1.jar [====================] 100% 0.0s
        DONE: Magnolia has been successfully setup for light development!
        You can now go to 'apache-tomcat/bin' and start up Magnolia by entering './magnolia_control.sh start' Magnolia will be ready after a few seconds at localhost:8080/magnoliaAuthor. Username and password is superuser
        To stop Magnolia enter './magnolia_control.sh stop'. On Windows use magnolia_control.bat
        
        neat-resources-1.0.1.jar copied to WEB-INF/lib/ of Magnolia webapps
        
      3. Run: cd apache-tomcat/webapps/magnoliaAuthor/WEB-INF/config/default
      4. Check the magnolia.resources.dir property:
        $ grep "magnolia.resources.dir=" magnolia.properties 
        magnolia.resources.dir=${magnolia.home}
        

        Acceptance criteria

              fgrilli Federico Grilli
              ebguilbert Edwin Guilbert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 3h
                    3h