I have a project that uses ant for build and ivy for dependencies. I would like to generate start scripts for my project using the classpath based on the dependencies configured in Ivy, especially since the order of the dependencies can be important and must be kept out of order in the ivy configuration.
Has anyone done this before? I also need to create relative paths in the classpath, so I cannot use absolute paths, since this will only work on the machine on which the assembly is being performed.
EDIT: based on feedback, if we cut Ivy out of the equation (make permission to the directory of our choice), then I will probably allow the libs ok list. But how would I generate a class path suitable for starting the script, especially with relative paths (relative to my bin directory)?
eg.
install
/bin <
/lib <
So, in mine, bin/start.shI need to have a ../lib/jar in front of each link, and not the full path.
Thanks.
source
share