|
From: b. <no...@so...> - 2010-04-21 17:10:02
|
#72: Testing - Make changes to allow all tests of TestServiceStarter to pass
when run using both ant & eclipse
--------------------------------+-------------------------------------------
Reporter: btmurphy | Owner: btmurphy
Type: defect | Status: new
Priority: major | Milestone:
Component: Bigdata Federation | Version:
Keywords: |
--------------------------------+-------------------------------------------
Comment(by btmurphy):
To set a policy file on the VM of a test being launched
by eclipse, do something like the following, (using
com.bigdata.jini.start.TestAll.java as an example):
1. In the Package Explorer of eclipse, double-click
"bigdata-jini/src/test"
2. Under "bigdata-jini/src/test", expand "com.bigdata.jini.start"
3. Right-click "TestAll.java"
4. Select "Properties" at the bottom of the drop-down menu
5. If not already selected, select "Run/Debug Settings"
(in the left hand window)
6. Select "TestAll" in the "Launch configurations" window
7. Click the button labeled "Edit..."
8. In the "Edit Configuration" window that appears, click on
the tab labeled "(x)= Arguments"
9. In the window labeled "VM arguments", enter the following:
-Djava.security.policy=src/resources/config/policy.all
10. Click "OK" in all windows
Note that I am not an eclipse user, and the above is what
worked for me. But I'm guessing that the eclipse experts
out there probably know a way for setting this system
property globally for all tests, rather than doing the
above on a test-by-test basis; which they should share
with us newbies.
--
Ticket URL: <http://sourceforge.net/apps/trac/bigdata/ticket/72#comment:1>
bigdata® <http://www.bigdata.com/blog>
bigdata® is a scale-out storage and computing fabric supporting optional transactions, very high concurrency, and very high aggregate IO rates.
|