Bug #15676 src/lib-nodist directory missing from /J package breaks out-of-box build
Submitted: 12 Dec 2005 3:53 Modified: 10 Mar 2006 20:26
Reporter: Darryl Miles Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:3.1.12 OS:
Assigned to: CPU Architecture:Any

[12 Dec 2005 3:53] Darryl Miles
Description:
The Connector/J JAR is not possible to build out of the box because the directory src/lib-nodist is missing.  There is no documentation I have come across explaning that you should create this directory before building the driver JAR.

build.xml:171 has an exclude for the content of **/lib-nodist/*, this might cause the directory to be omitted from the final archive.

How to repeat:
Extract the original package and try to execute ANT on it.

Suggested fix:
Ensure the empty directory exists within the distributed package, maybe a dummy file needs to exist in the directory to ensure empty directories aren't pruned.

<exclude name="**/lib-nodist/*"/>
<include name="**/lib-nodist/dummyfile"/>
[12 Dec 2005 17:40] Aleksey Kishkin
verified against connector-j 3.1.12, ant 1.6.5, java "1.5.0_04"

$ ant
Buildfile: build.xml

clean:

-init-copy:
     [copy] Copying 147 files to /mnt/hdc2/sand/mysql-connector-java-3.1.12/build/mysql-connector-java-3.1.12
     [copy] Copying 9 files to /mnt/hdc2/sand/mysql-connector-java-3.1.12/build/mysql-connector-java-3.1.12

-init-no-crypto:

init:

BUILD FAILED
/mnt/hdc2/sand/mysql-connector-java-3.1.12/build.xml:81: /mnt/hdc2/sand/mysql-connector-java-3.1.12/build/mysql-connector-java-3.1.12/lib-nodist not found.

Total time: 2 seconds
[20 Dec 2005 23:13] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/305
[10 Mar 2006 20:26] Mark Matthews
Fix will be available in 5.0.1 and 3.1.13. You can try a nightly snapshot from http://downloads.mysql.com/snapshots.php#connector-j if you want to test the fix before it's officially released. Thanks for the bug report.