Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8697

CMS - Start / Stop Script Set Working Directory

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: App CMS 0.12.0
    • Fix Version/s: CMS 0.14.0
    • Component/s: App CMS
    • Labels:
      None

      Description

      I've followed documentation to build Sling CMS APP
      at org-apache-sling-app-cms/docs/building.md, where it says:

      To run the Sling CMS, build the code and copy the files
      builder/src/main/scripts/start.sh builder/src/main/scripts/stop.sh and
      builder/target/org.apache.sling.cms-{VERSION].jar to a directory. Execute
      the script ./start.sh to start Sling CMS.

      Well, when I do this, I get error:
      $ /bin/sh
       /path/to/workspace/org-apache-sling-app-cms/target/distro/start.sh ( copy
      of a builder/src/main/scripts/start.sh ).
      ls: cannot access 'cms.jar': No such file or directory
      Application started on port 8080!

      Well, I run this from inside InteliJ IDEA, and I guess it is more of a
      missing feature on iDEA to set home/working directory, but eather way, if
      start.sh and stop.sh would be changed in a way, to set/switch to working
      directory like this:

      ( start.sh:23 )
      script="$0"
      basename="$(dirname $script)"
      cd $basename

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                klcodanr Dan Klco
                Reporter:
                klcodanr Dan Klco
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m