You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Andrew Pietsch (JIRA)" <ji...@apache.org> on 2008/05/19 07:55:55 UTC

[jira] Created: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Build failing if target/test/resources doesn't exist prior to running tests
---------------------------------------------------------------------------

                 Key: BUILDR-74
                 URL: https://issues.apache.org/jira/browse/BUILDR-74
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.3
         Environment: $ ruby --version
ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
$ buildr --version
Buildr 1.3.0
$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
            Reporter: Andrew Pietsch


When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.

The out put of the error with tracing enabled is below:

** Execute pectin:main:test
rm -rf /Users/andrew/svn/pectin/main/reports/testng
IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
** Invoke pectin:main:test:teardown (first_time)
** Execute pectin:main:test:teardown
rake aborted!
No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
/opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
/opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
/opt/local/bin/buildr:16:in `load'
/opt/local/bin/buildr:16


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


[jira] Commented: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Shane Witbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597974#action_12597974 ] 

Shane Witbeck commented on BUILDR-74:
-------------------------------------

I've found this issue before when I had an empty src/java/resources directory. My work around has been to delete the empty directory or place a temporary "placeholder" file in the directory.

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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


[jira] Commented: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598041#action_12598041 ] 

Assaf Arkin commented on BUILDR-74:
-----------------------------------

This should be fixed in svn/git now, can you verify and if so close this issue?

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>            Assignee: Assaf Arkin
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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


[jira] Assigned: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin reassigned BUILDR-74:
---------------------------------

    Assignee: Assaf Arkin

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>            Assignee: Assaf Arkin
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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


[jira] Updated: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin updated BUILDR-74:
------------------------------

    Fix Version/s: 1.3.1

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>            Assignee: Assaf Arkin
>             Fix For: 1.3.1
>
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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


[jira] Resolved: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin resolved BUILDR-74.
-------------------------------

    Resolution: Fixed

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>            Assignee: Assaf Arkin
>             Fix For: 1.3.1
>
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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


[jira] Commented: (BUILDR-74) Build failing if target/test/resources doesn't exist prior to running tests

Posted by "Andrew Pietsch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598157#action_12598157 ] 

Andrew Pietsch commented on BUILDR-74:
--------------------------------------

I've checked out the latest copy but can't run rake install.  

In trying I discovered I was running the wrong version of ruby (insert sheepish grin), so I've upgraded using the OSX installer and re-installed all my gems.  All was going well (during `rake setup`) until rake tried to install rjb and I got the following error.

Installing #<Gem::Specification name=rjb version=1.1.2> ...
sudo env JAVA_HOME=/Library/Java/Home /usr/local/bin/ruby -S gem install rjb -v 1.1.2
Bulk updating Gem source index for: http://gems.rubyforge.org/
Building native extensions.  This could take a while...
ERROR:  Error installing rjb:
        ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install rjb -v 1.1.2
checking for jni.h... yes
checking for dl.h... yes
checking for locale_charset() in iconv.h... no
checking for nl_langinfo() in langinfo.h... no
checking for setlocale() in locale.h... no
checking for getenv()... no
creating extconf.h
creating Makefile

make
gcc -I. -I. -I/usr/local/lib/ruby/1.8/universal-darwin8.0 -I. -I/Library/Java/Home/include -DRUBY_EXTCONF_H=\"extconf.h\"  -fno-common -g -O2  -fno-common -pipe -fno-common -I/Library/Java/Home/include  -arch i386 -c load.c
gcc -I. -I. -I/usr/local/lib/ruby/1.8/universal-darwin8.0 -I. -I/Library/Java/Home/include -DRUBY_EXTCONF_H=\"extconf.h\"  -fno-common -g -O2  -fno-common -pipe -fno-common -I/Library/Java/Home/include  -arch i386 -c riconv.c
riconv.c: In function 'get_charcode_name_by_locale':
riconv.c:64: error: 'LOCALE_UTF8_TABLE' undeclared (first use in this function)
riconv.c:64: error: (Each undeclared identifier is reported only once
riconv.c:64: error: for each function it appears in.)
riconv.c:66: error: 'LOCALE_EUC_TABLE' undeclared (first use in this function)
riconv.c:68: error: 'LOCALE_SJIS_TABLE' undeclared (first use in this function)
make: *** [riconv.o] Error 1


Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/rjb-1.1.2 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/rjb-1.1.2/ext/gem_make.out
rake aborted!
Command failed with status (1): [sudo env JAVA_HOME=/Library/Java/Home /usr...]


I think I'm stuck.  rjb version 1.1.0 through to 1.1.2 fail to install manually.  In searching the user lists it seems this problem has been encountered on windows.  Is there a known workaround for the Mac?

Cheers 

> Build failing if target/test/resources doesn't exist prior to running tests
> ---------------------------------------------------------------------------
>
>                 Key: BUILDR-74
>                 URL: https://issues.apache.org/jira/browse/BUILDR-74
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [powerpc-darwin8.8.0]
> $ buildr --version
> Buildr 1.3.0
> $ java -version
> java version "1.5.0_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
> Java HotSpot(TM) Client VM (build 1.5.0_13-120, mixed mode, sharing) 
>            Reporter: Andrew Pietsch
>            Assignee: Assaf Arkin
>             Fix For: 1.3.1
>
>
> When building the test task fails if target/test/resources doesn't exists.  I would have expected the directory to be automatically created.
> The out put of the error with tracing enabled is below:
> ** Execute pectin:main:test
> rm -rf /Users/andrew/svn/pectin/main/reports/testng
> IOException: No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> ** Invoke pectin:main:test:teardown (first_time)
> ** Execute pectin:main:test:teardown
> rake aborted!
> No file or directory with the name /Users/andrew/svn/pectin/main/target/test/resources
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `new'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:58:in `filter_classes'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/java/test_frameworks.rb:258:in `tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:423:in `run_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:196:in `initialize'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:220:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:164:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:161:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `[]'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/project.rb:346:in `local_projects'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:158:in `run_local_tests'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:503:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/test.rb:521:in `first_time'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:366:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:363:in `invoke_with_call_chain'
> /opt/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:357:in `invoke_with_call_chain'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:352:in `invoke'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:177:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:173:in `run'
> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/lib/buildr/core/application.rb:172:in `run'
> /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.0/bin/buildr:21
> /opt/local/bin/buildr:16:in `load'
> /opt/local/bin/buildr:16

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