Assuming all your libs are in 'lib' subdirectory of the assembly, I usually use:

CP=`ls -1 lib/*.jar | tr '\n' ':'`

java -classpath $CP ...

Cheers,
Brett

On 18/10/06, Michael Schneider <[EMAIL PROTECTED]> wrote:
Hi!

Within my assembly I want to have a batch script (Unix shell), which
starts the java interpreter for some given class. The "-classpath"
parameter should be build from all dependency jars given in the POM. So
I want to have something like this:

      DEPSPATH=<dep1>:<dep2>:...:<depn>
      java -classpath $DEPSPATH <class>

Therefore in my src/main/scripts directory I want to have something like

      DEPSPATH=${dependencies}
      java -classpath $DEPSPATH <class>

The filtering should then be done in phase "process-sources".

Is there a maven property '${dependencies}' to create a list (at least
space separated) of all dependencies? And if not, what is the easiest
way to achieve what I want?

Cheers,
Michael





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to