0

In a .bndrun file I have:

-runvm: -Djava.util.logging.config.file=${workspace}/com.myproject/conf/logging.properties

When I run the run descriptor, the console shows:

Error: Could not find or load main class and

That's because of the following generated command line:

"C:\Program Files\Java\jre7\bin\javaw.exe" -Djava.util.logging.config.file=C:\Documents and Settings\Dan\eclipse-workspaces\workspace/com.myproject/conf/logging.properties

The space is obviously upsetting it. Normally quote marks are the solution to this. But if I add them, they seem to be stripped out:

-runvm: -Djava.util.logging.config.file="${workspace}/com.myproject/conf/logging.properties"
Dan Gravell
  • 7,855
  • 7
  • 41
  • 64

2 Answers2

0

This is likely a bug in bnd, might be because the backslashes of windows. In this case, since you're relative to the workspace, you might want to address the properties relative?

Can you file a bug?

Peter Kriens
  • 15,196
  • 1
  • 37
  • 55
0

You can try to use a macro to get rid of the backslashes, till the "bug" is fixed.

  # replace backslash with slash
  workspace.unix = ${replace;${workspace};(\\\\);/}
Peter Kirschner
  • 927
  • 1
  • 9
  • 17