[jira] [Created] (SLING-8697) CMS - Start / Stop Script Set Working Directory

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (SLING-8697) CMS - Start / Stop Script Set Working Directory

Andrei Shilov (Jira)
Dan Klco created SLING-8697:

             Summary: CMS - Start / Stop Script Set Working Directory
                 Key: SLING-8697
                 URL: https://issues.apache.org/jira/browse/SLING-8697
             Project: Sling
          Issue Type: Improvement
          Components: App CMS
    Affects Versions: Version App CMS 0.12.0
            Reporter: Dan Klco
            Assignee: Dan Klco
             Fix For: App CMS 0.12.2

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 )
basename="$(dirname $script)"
cd $basename

This message was sent by Atlassian Jira