You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Richard N. Hillegas (Jira)" <ji...@apache.org> on 2019/10/28 23:00:03 UTC

[jira] [Commented] (DERBY-7057) Unreferenced failing target in main build

    [ https://issues.apache.org/jira/browse/DERBY-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961534#comment-16961534 ] 

Richard N. Hillegas commented on DERBY-7057:
--------------------------------------------

Although unreferenced by higher targets, the target is intended to be used by developers when they change the contents of jar files which are used by the regression tests. The target DOES have a description attribute, more or less explaining its purpose. From your analysis, it sounds like the correct fix is to remove the cruft which follows the ${derby.testing.src.dir} symbol. Thanks.

> Unreferenced failing target in main build
> -----------------------------------------
>
>                 Key: DERBY-7057
>                 URL: https://issues.apache.org/jira/browse/DERBY-7057
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.15.1.3
>            Reporter: Davide Grandi
>            Priority: Minor
>         Attachments: svn.diff
>
>
> In main build.xml, at row 1347, there's a (failing) unreferenced target
> --
>  <target name="build-test-jars" description="Build jar files used in tests." depends="buildsource" >
>     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/lang" target="build-test-jars" />
> </target>
> --
> when executed the dir attribute expands to
>      java\org.apache.derby.tests\org\apache\derbyTesting\functionTests\tests\lang\build.xml
> that don't exists.
> BUT the destination target 'build-test-jars' EXISTS in secondary build file
>      java\org.apache.derby.tests\build.xml
> and launching it's 'build-test-jars' target creates a db with
>      java\org.apache.derby.tests\org\apache\derbyTesting\functionTests\tests\lang\nast_init.sql
> and store it overwriting the already existent
>     java\org.apache.derby.tests\org\apache\derbyTesting\functionTests\tests\lang\nast1.jar
> that, in turn, is referenced by the test class
>     java\org.apache.derby.tests\org\apache\derbyTesting\functionTests\tests\lang\NativeAuthenticationServiceTest.java
> So, maybe, it's only an unreferenced target, activating it destroys nast1.jar and could be safely removed along
>      build-test-jars target
> in
>     java\org.apache.derby.tests\build.xml
> I've attached a svn.diff patch to delete this 2 targets.
> Best regards, Davide Grandi
> PS : BTW, discovered while extending the ant-antcall expansion from 'buildsource' to 'all' targets.
> Nearly finished, it should have minimal impact on current osgi works.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)