Bug #28286 dist target doesn't need to run the compile-testsuite target
Submitted: 7 May 2007 18:06 Modified: 11 Jan 2020 16:43
Reporter: Petteri Räty Email Updates:
Status: Closed Impact on me:
Category:Connector / J Severity:S4 (Feature request)
Version:5.0.5 OS:Any
Assigned to: Alexander Soklakov CPU Architecture:Any

[7 May 2007 18:06] Petteri Räty
Running the dist target is required to produce the jar. Dist target runs compile-testsuite that requires junit. For Linux packaging this is a useless dependency so the dist target shouldn't run the compile-testsuite when it doesn't need anything from it. The test targets will compile the testsuite as needed.

How to repeat:
1. run ant dist
2. observe compile-testsuite being run

Suggested fix:
betelgeuse@pena /mnt/checkouts/mysql-connector-j-trunk $ svn diff
Index: build.xml
--- build.xml   (revision 6417)
+++ build.xml   (working copy)
@@ -310,7 +310,7 @@

-       <target name="dist" depends="init, compile">
+       <target name="dist" depends="init, compile-driver, compile.integration">

                <delete file="${buildDir}/${fullProdName}-bin.jar" />
                <delete file="${distDir}/${fullProdName}.jar" />
[7 May 2007 18:08] Petteri Räty
Changin Category from docs to to parent.
[22 May 2007 16:27] Tonci Grgin
Hi Petteri and thanks for your feature request. Even though we ship test suite compiled we can add a flag to omit it's repeated compilation.
[13 Oct 2016 16:23] Daniel So
Posted by developer:
Moved changelog entry to the 6.0.2 changelog, where it truly belongs.