Skip Menu |

This queue is for tickets about the DBD-JDBC CPAN distribution.

Report information
The Basics
Id: 71905
Status: new
Priority: 0/
Queue: DBD-JDBC

People
Owner: Nobody in particular
Requestors: RWSTAUNER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: File::ShareDir could be used to store the necessary files
Part of using (and installing) this module includes taking files from the tarball and putting them somewhere that you can then include in your class path when starting the server. I understand the inherent difficulty of providing files that are required by an external process, but something that would make the install easier and more consistent with other CPAN releases would be to use File::ShareDir (and File::ShareDir::Install) to store the necessary jars (and default properties files) automatically. Then a simple value/interface on the DBD::JDBC module could be provided for getting the full path to those files (using File::ShareDir::dist_dir()). That way users don't have to grab the files out of the dist and put them somewhere else... you could just install the dist with your usual cpan client (and the files would be installed, too). For anyone that uses perl to launch the jdbc server (for example using fork/exec) there would be a lot less to do if you could just get the path from the module itself. For example: @args = ("-cp", DBD::JDBC::dist_dir()); If anybody really wanted to get the files to put them somewhere else, they could easily do perl -MDBD::JDBC -e 'print DBD::JDBC::dist_dir()' to see the directory, rather than having to go to the cpan website and re-download the tarball and extract it to pull the files out of there.