ddollar/foreman — Issue #143: Command works in shell but not in foreman
Author: jesperfj
Created: 2012-01-27 00:40:35+00:00
State: open

I have this Procfile:

$ cat Procfile
web: java -cp "target/dependency/*":target/classes HelloWorld

If I run `foreman start`, I get:

$ foreman start
16:35:17 web.1 | started with pid 74240
16:35:17 web.1 | Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
16:35:17 web.1 |	at java.lang.ClassLoader.defineClass1(Native Method)
....

But if I run the same command on the command line. It works. It also works on Heroku. For non-Java folks, the error above means it couldn't find a library. The library is in the `target/dependency` folder and is supposed to be included in the classpath when using the `target/dependency/*` notation.

Is it possible foreman does some sort of expansion of command line args with "*" in them?