You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2010/09/23 22:38:32 UTC

[jira] Created: (TUSCANY-3685) build.xml file in samples/implementation-pojo-extension doesn't have a run target

build.xml file in samples/implementation-pojo-extension doesn't have a run target
---------------------------------------------------------------------------------

                 Key: TUSCANY-3685
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3685
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Samples
    Affects Versions: Java-SCA-1.6
            Reporter: Simon Nash
            Assignee: Simon Nash


The build.xml file in samples/implementation-pojo-extension doesn't have a run target and doesn't build the sample client code.  This means that the sample client code that creates a component using the sample POJO extension can only be run from the JUnit test case in the maven build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3685) build.xml file in samples/implementation-pojo-extension doesn't have a run target

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914217#action_12914217 ] 

Simon Nash commented on TUSCANY-3685:
-------------------------------------

I've fixed this by doing the following:

1. Added a new test client class HelloWorldTestClient.java which doesn't depend on JUnit.

2. Updated the build.xml file to build and run this test client.

3. Updated the README to explain how to build and run this sample using ant. 

> build.xml file in samples/implementation-pojo-extension doesn't have a run target
> ---------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>    Affects Versions: Java-SCA-1.6
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>
> The build.xml file in samples/implementation-pojo-extension doesn't have a run target and doesn't build the sample client code.  This means that the sample client code that creates a component using the sample POJO extension can only be run from the JUnit test case in the maven build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3685) build.xml file in samples/implementation-pojo-extension doesn't have a run target

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921748#action_12921748 ] 

Simon Nash commented on TUSCANY-3685:
-------------------------------------

The first attempt at this fix (revision r1000615) didn't work when invoking "ant run" from the binary distribution.  This is because the build.xml file assumes that the test classes are in the target/test-classes directory.  This directory doesn't exist in the binary distribution and is created only when a maven or ant build is run.

The fix is to package the test classes in a file target/implementation-pojo-extension-test.jar and include this file in the binary distribution.

> build.xml file in samples/implementation-pojo-extension doesn't have a run target
> ---------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>    Affects Versions: Java-SCA-1.6
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>
> The build.xml file in samples/implementation-pojo-extension doesn't have a run target and doesn't build the sample client code.  This means that the sample client code that creates a component using the sample POJO extension can only be run from the JUnit test case in the maven build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TUSCANY-3685) build.xml file in samples/implementation-pojo-extension doesn't have a run target

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925017#action_12925017 ] 

Simon Nash commented on TUSCANY-3685:
-------------------------------------

Fix merged from 1.6.1 branch into 1.x trunk under revisions r1027086 and r1027618.

> build.xml file in samples/implementation-pojo-extension doesn't have a run target
> ---------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>    Affects Versions: Java-SCA-1.6
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.6.1
>
>
> The build.xml file in samples/implementation-pojo-extension doesn't have a run target and doesn't build the sample client code.  This means that the sample client code that creates a component using the sample POJO extension can only be run from the JUnit test case in the maven build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TUSCANY-3685) build.xml file in samples/implementation-pojo-extension doesn't have a run target

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash resolved TUSCANY-3685.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.6.1

Resolved under revisions r1000615 and r1023372.

> build.xml file in samples/implementation-pojo-extension doesn't have a run target
> ---------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3685
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3685
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Samples
>    Affects Versions: Java-SCA-1.6
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.6.1
>
>
> The build.xml file in samples/implementation-pojo-extension doesn't have a run target and doesn't build the sample client code.  This means that the sample client code that creates a component using the sample POJO extension can only be run from the JUnit test case in the maven build.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.