fix path issue with unit tests and toolchain artifact that I released.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@481 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jesse McConnell 2009-07-06 03:44:33 +00:00
parent 69dcb996ae
commit 47be173375
3 changed files with 6 additions and 11 deletions

View File

@ -12,7 +12,7 @@ package org.eclipse.jetty.policy;
//You may elect to redistribute this code under either of these licenses.
//========================================================================
/*
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@ -22,16 +22,12 @@ import java.security.AccessControlException;
import java.security.Policy;
import java.util.Collections;
import java.util.HashMap;
*/
import junit.framework.TestCase;
public class TestJettyPolicyRuntime extends TestCase
{
public void testNothing()
{
}
/*
HashMap evaluator = new HashMap();
@Override
@ -165,7 +161,7 @@ public class TestJettyPolicyRuntime extends TestCase
System.setSecurityManager( new SecurityManager() );
URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar");
URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0.jar");
URLClassLoader loader ;
if (Thread.currentThread().getContextClassLoader() != null )
@ -229,7 +225,7 @@ public class TestJettyPolicyRuntime extends TestCase
System.setSecurityManager( new SecurityManager() );
URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar");
URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy.jar");
URLClassLoader loader ;
if (Thread.currentThread().getContextClassLoader() != null )
@ -294,5 +290,4 @@ public class TestJettyPolicyRuntime extends TestCase
}
return cwd;
}
*/
}

View File

@ -1,7 +1,7 @@
keystore "file://${basedir}/target/test-policy/jetty-policy-nobody.keystore", "jks";
grant signedBy "jetty-policy", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar"
grant signedBy "jetty-policy", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0.jar"
{
permission java.util.PropertyPermission "foo", "read";
}

View File

@ -1,6 +1,6 @@
keystore "file://${basedir}/target/test-policy/jetty-policy.keystore", "jks";
grant signedBy "jetty-policy-bad", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar"
grant signedBy "jetty-policy-bad", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0.jar"
{
permission java.util.PropertyPermission "foo", "read";
};