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:
parent
69dcb996ae
commit
47be173375
|
@ -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;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue