Giter VIP home page Giter VIP logo

Comments (6)

rbrackma avatar rbrackma commented on June 12, 2024

workaround : use empty file with line "{}"

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

With RPM_APP_JBOSSCLI_CONF_DIR empty, the argument passed to jcliff is '/*.cliff'. There is nothing I can do to fix this in jcliff. Check empty dir in the calling cmdline.

from jcliff.

rbrackma avatar rbrackma commented on June 12, 2024

why can't we check in the main method whether we have an empty dir or not ?

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

The problem is the shell path expansion. If there is no match, the pattern
is passed to jcliff verbatim. That is, if the directory is empty, jcliff
gets '/*.cliff' as the file to process, and when it tries to open that, it
fails.

On Tue, Nov 18, 2014 at 8:57 AM, rbrackma [email protected] wrote:

why can't we check in the main method whether we have an empty dir or not ?


Reply to this email directly or view it on GitHub
#25 (comment).

from jcliff.

rbrackma avatar rbrackma commented on June 12, 2024

Note : ${RPM_APP_JBOSSCLI_CONF_DIR} exists, like /tmp/jcliff !
There are simply no .jcliff files in the existing directory.
So I'm passing /tmp/jcliff/
.jcliff into jcliff, and that should be caught

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

If there are no files there, then what's passed is:

/tmp/jcliff/*.jcliff

jcliff does not expect a pattern there. It expects one of more files. If I
don't return error for this, then I won't be returning an error when you
pass a legitimate file name, but it doesn't exist. This is a problem with
shell processing. *.jcliff is passed verbatim by the shell if nothing
mathches.

On Tue, Nov 18, 2014 at 11:00 AM, rbrackma [email protected] wrote:

Note : ${RPM_APP_JBOSSCLI_CONF_DIR} exists, like /tmp/jcliff !
There are simply no
.jcliff files in the existing directory. So I'm passing /tmp/jcliff/.jcliff
into jcliff, and that should be caught


Reply to this email directly or view it on GitHub
#25 (comment).

from jcliff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.