river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Hobbs <tvho...@googlemail.com>
Subject Re: Setting up River
Date Tue, 23 Nov 2010 11:46:56 GMT
Thanks Peter.

I've already got the following in my $RIVER_HOME/build.properties


Note: I haven't checked out into a trunk directory, I've checked out
the trunk into projects/River

Also notice: I'm currently running on Windows also...

Maybe I should change that...

Like you suggest, I'm trying to run the qa and jtreg tests on the
command line via Ant.  Out of the box, it's just not working though.

I've been going through this exchange:


But haven't been able to make it work yet.  I want to get to the stage
where I have a fixed list of "From a fresh check-out, do steps, 1/2/3
to run all these bits and pieces."

On Tue, Nov 23, 2010 at 11:34 AM, Peter Firmstone <jini@zeus.net.au> wrote:
> You need to create a build.properties file in the trunk directory, if you
> haven't already done so, that contains something like:
> river.home=/opt/src/river/trunk
> log.config=/home/peter/logging.properties
> debug=true
> debuglevel=lines,source,vars
> run.tests=com/sun/jini/test/impl/start/ServiceStarterCreateBadTransientServiceTest.td
> I tend to use an IDE to edit, refactor methods etc, but for compiling,
> running tests and debugging, I use the command line.
> But some tips would be to import libraries for ant and junit in the IDE, and
> make sure the qa tests can see the jar files in trunk/lib
> Hope this helps a little.
> Cheers,
> Peter.
> Tom Hobbs wrote:
>> Hi guys,
>> I've done a fresh check out and I'm trying to retrace all my steps on
>> how to get a River development setup ready.  Sadly, I'm failing on a
>> few steps.  Can anyone refresh my brain?
>> - Compiler Errors in the IDE
>> In Eclipse I have to create a new JDK 1.5 system library which doesn't
>> have any restrictions on the rt.jar.  This is fine, but I get the
>> following compiler errors in the IDE (note: building River via Ant
>> works fine, so I suspect this to be just an IDE issue.)
>> 1.  com.sun.jini.tool.ClassServer complains the IOException doesn't
>> have a IOException(String,Throwable) constructor.  Which it doesn't in
>> Java 5, but it does in 6.  I thought we were staying in JDK 5 for now?
>> 2.  test/src/net.jini.core.event.RemoteEventTest complains about
>> MarshalledObject not being generic.  Again this is a 1.5 vs 1.6
>> problem.
>> - Cannot run the QA tests
>> I can run the QA tests by browsing to $RIVER_HOME and executing "ant
>> qa.run"
>> But I can't run all the tests (or specific ones) from the qa
>> directory.  I.e. browsing to $RIVER_HOME/qa and executing "ant
>> harness-runtime run-tests -Drun.tests=all" gives me the following
>> error:
>> run-tests:
>>     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>> net/jini/
>> config/ConfigurationException
>>     [java]     at
>> com.sun.jini.qa.harness.MasterHarness.<init>(MasterHarness.ja
>> va:209)
>>     [java]     at com.sun.jini.qa.harness.QARunner.main(QARunner.java:67)
>>     [java] Caused by: java.lang.ClassNotFoundException:
>> net.jini.config.Configu
>> rationException
>>     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> <snip>
>> (This is where I own up to never having had the patience to run all
>> the QA tests before...)
>> - Cannot run the jtreg tests
>> I can't run all the tests (or specific ones) from the qa directory.
>> I.e. browsing to $RIVER_HOME/qa and executing "ant jtreg-teardown
>> jtreg" gives me the following error:
>>    [jtreg] TEST:
>> com/sun/jini/action/catchSecurityException/CatchSecurityExcept
>> ion.java
>>    [jtreg] JDK under test: (C:\Progra~1\Java\jdk1.5.0_13)
>>    [jtreg] java version "1.5.0_13"
>>    [jtreg] Java(TM) 2 Runtime Environment, Standard Edition (build
>> 1.5.0_13-b05
>> )
>>    [jtreg] Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode)
>>    [jtreg]
>>    [jtreg]
>>    [jtreg] ACTION: build -- Failed. Compilation failed: exit code 1
>>    [jtreg] REASON: User specified action: run build CatchSecurityException
>>    [jtreg] TIME:   0.563 seconds
>>    [jtreg] messages:
>>    [jtreg] command: build CatchSecurityException
>>    [jtreg] reason: User specified action: run build CatchSecurityException
>>    [jtreg] elapsed time (seconds): 0.563
>> <snip more of the same>
>> This is where I own up (again) to not having tried the jtreg tests
>> myself for more than a year...
>> Can anyone point out my obvious mistakes?  Then I can write up the
>> right way to do it and get it on the website.
>> Cheers,
>> Tom

View raw message