You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Bass Joe <ba...@web.de> on 2015/03/11 16:57:55 UTC

Build with Java 8

When I run these commands:


git clone http://git.apache.org/ode.git ode-gemfile-test
cd ode-gemfile-test
git revert f3beffe
buildr package test=no


I get this:


Buildr aborted!
RuntimeError : check() method invoked in buildfile but RSpec has not 
been loaded.

Buildr prior to version 1.4.22, included rspec as a dependency but as
of version 1.4.22, it is expected users manually add RSpec to their
Gemfile. The following lines should be added to restore the version
of rspec included in 1.4.22:

gem 'rspec-expectations',   '= 2.14.3'
gem 'rspec-mocks',          '= 2.14.3'
gem 'rspec-core',           '= 2.14.5'
gem 'rspec',                '= 2.14.1'

/home/bassjoe/ode-gemfile-test/Rakefile:680:in `block (2 levels) in distro'
/home/bassjoe/ode-gemfile-test/Rakefile:648:in `tap'
/home/bassjoe/ode-gemfile-test/Rakefile:648:in `block in distro'


So I add these lines to Gemfile and run the buildr command again. Then 
it works.

BTW: Buildr may be a great build tool but for Java programmers who don't 
know Ruby it's first of all just another hurdle to work with the code.

Re: Build with Java 8

Posted by Tammo van Lessen <tv...@gmail.com>.
Thanks, Bass Joe for the additional information and the patch. I will
review it and hope that I can find a solution for the old hibernate xdoclet
stuff. Having syntactically correct javadocs is indeed the best solution.

Regarding the Buildr issues you experienced, this change has been
introduced in the newest buildr version, which is just a couple of days
old. I'll add the dependencies to the Gemfile and it should be fine again.
Thanks for bringing it to my attention, it looks like it didn't complain on
my system because the deps were already there.

Best,
  Tammo

On Wed, Mar 11, 2015 at 6:18 PM, Bass Joe <ba...@web.de> wrote:

> I'm not sure if it helps, but I fixed a bunch of JavaDoc comments to
> support you getting the build fixed (see attached patch). But I don't know
> how to fix the Hibernate annotations.
>
> I changed the visibility of some classes to public because of the JavaDoc
> errors, so you might want to review these:
>
>
> bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/
> PickGenerator.java
>
> bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/
> ReceiveGenerator.java
>
> bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/
> StaticCheckTCase.java
>
> bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/LinkInfo.java
>
> bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/SCOPE.java
>
> bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java
>
> jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java
>
>
> Am 11.03.2015 um 16:57 schrieb Bass Joe:
>
>  When I run these commands:
>>
>>
>> git clone http://git.apache.org/ode.git ode-gemfile-test
>> cd ode-gemfile-test
>> git revert f3beffe
>> buildr package test=no
>>
>>
>> I get this:
>>
>>
>> Buildr aborted!
>> RuntimeError : check() method invoked in buildfile but RSpec has not
>> been loaded.
>>
>> Buildr prior to version 1.4.22, included rspec as a dependency but as
>> of version 1.4.22, it is expected users manually add RSpec to their
>> Gemfile. The following lines should be added to restore the version
>> of rspec included in 1.4.22:
>>
>> gem 'rspec-expectations',   '= 2.14.3'
>> gem 'rspec-mocks',          '= 2.14.3'
>> gem 'rspec-core',           '= 2.14.5'
>> gem 'rspec',                '= 2.14.1'
>>
>> /home/bassjoe/ode-gemfile-test/Rakefile:680:in `block (2 levels) in
>> distro'
>> /home/bassjoe/ode-gemfile-test/Rakefile:648:in `tap'
>> /home/bassjoe/ode-gemfile-test/Rakefile:648:in `block in distro'
>>
>>
>> So I add these lines to Gemfile and run the buildr command again. Then
>> it works.
>>
>> BTW: Buildr may be a great build tool but for Java programmers who don't
>> know Ruby it's first of all just another hurdle to work with the code.
>>
>


-- 
Tammo van Lessen - http://www.taval.de

Re: Build with Java 8

Posted by Bass Joe <ba...@web.de>.
I'm not sure if it helps, but I fixed a bunch of JavaDoc comments to 
support you getting the build fixed (see attached patch). But I don't 
know how to fix the Hibernate annotations.

I changed the visibility of some classes to public because of the 
JavaDoc errors, so you might want to review these:


bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/PickGenerator.java

bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/ReceiveGenerator.java

bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/StaticCheckTCase.java

bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/LinkInfo.java

bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/SCOPE.java

bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java

jbi/src/main/java/org/apache/ode/jbi/OdeConsumer.java


Am 11.03.2015 um 16:57 schrieb Bass Joe:
> When I run these commands:
>
>
> git clone http://git.apache.org/ode.git ode-gemfile-test
> cd ode-gemfile-test
> git revert f3beffe
> buildr package test=no
>
>
> I get this:
>
>
> Buildr aborted!
> RuntimeError : check() method invoked in buildfile but RSpec has not
> been loaded.
>
> Buildr prior to version 1.4.22, included rspec as a dependency but as
> of version 1.4.22, it is expected users manually add RSpec to their
> Gemfile. The following lines should be added to restore the version
> of rspec included in 1.4.22:
>
> gem 'rspec-expectations',   '= 2.14.3'
> gem 'rspec-mocks',          '= 2.14.3'
> gem 'rspec-core',           '= 2.14.5'
> gem 'rspec',                '= 2.14.1'
>
> /home/bassjoe/ode-gemfile-test/Rakefile:680:in `block (2 levels) in distro'
> /home/bassjoe/ode-gemfile-test/Rakefile:648:in `tap'
> /home/bassjoe/ode-gemfile-test/Rakefile:648:in `block in distro'
>
>
> So I add these lines to Gemfile and run the buildr command again. Then
> it works.
>
> BTW: Buildr may be a great build tool but for Java programmers who don't
> know Ruby it's first of all just another hurdle to work with the code.

Re: Build with Java 8

Posted by Tammo van Lessen <tv...@gmail.com>.
Hi Igor,

going back to Maven is no option at the moment. We didn't build/chose to
use Buildr for fun but because of the severe pain we had with Maven. Even
when assuming the maven uncertainty principle is solved and Maven has
improved in general, there are several features in our build that Maven
simply cannot provide and which would take lots of efforts to rebuild it.
To name a few its the acceptance testing in axis2-war, which supports
testing against multiple databases or the creation of SQL DDLs for a whole
bunch of databases. When we switched to Buildr we could cut down the build
script size from some thousands of lines of XML code to some hundreds of
Ruby code. As a side effect, the build became twice as fast and we had the
ability to escape to plain ruby for things that the build system did not
support out of the box.

A better and more feasible solution is to improve the build instructions
and our documentation to make it less hassle for you. What difficulties did
you exactly experience?

Best,
  Tammo

On Wed, Mar 11, 2015 at 5:59 PM, Igor Vorobiov <ig...@gmail.com>
wrote:

> I agree about difficulties related to using Apache Buildr for ODE build.
> I've noticed that maven build is deprecated and not maintained anymore:
>
>
> https://issues.apache.org/jira/browse/ODE-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14353619#comment-14353619
> It would be good to have compatibility with maven build if it is possible.
>
>
>
> --
> View this message in context:
> http://apache-ode.996305.n3.nabble.com/Build-with-Java-8-tp17530p17531.html
> Sent from the Apache Ode Dev mailing list archive at Nabble.com.
>



-- 
Tammo van Lessen - http://www.taval.de

Re: Build with Java 8

Posted by Igor Vorobiov <ig...@gmail.com>.
I agree about difficulties related to using Apache Buildr for ODE build.
I've noticed that maven build is deprecated and not maintained anymore:
  
https://issues.apache.org/jira/browse/ODE-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14353619#comment-14353619
It would be good to have compatibility with maven build if it is possible.



--
View this message in context: http://apache-ode.996305.n3.nabble.com/Build-with-Java-8-tp17530p17531.html
Sent from the Apache Ode Dev mailing list archive at Nabble.com.