Skip to content

Commit

Permalink
Remove Lucene security policy (apache#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
madrob authored Mar 15, 2021
1 parent ef918e3 commit 95a1197
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 225 deletions.
14 changes: 3 additions & 11 deletions gradle/testing/randomization.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,9 @@ allprojects {
// Enable security manager, if requested. We could move the selection of security manager and security policy
// to each project's build/ configuration but it seems compact enough to keep it here for now.
if (Boolean.parseBoolean(testOptionsResolved["tests.useSecurityManager"])) {
if (project.path == ":lucene:replicator") {
systemProperty 'java.security.manager', "org.apache.lucene.util.TestSecurityManager"
systemProperty 'java.security.policy', file("${resources}/policies/replicator-tests.policy")
} else if (project.path.startsWith(":lucene")) {
systemProperty 'java.security.manager', "org.apache.lucene.util.TestSecurityManager"
systemProperty 'java.security.policy', file("${resources}/policies/tests.policy")
} else {
systemProperty 'common-solr.dir', commonSolrDir
systemProperty 'java.security.manager', "org.apache.lucene.util.TestSecurityManager"
systemProperty 'java.security.policy', file("${resources}/policies/solr-tests.policy")
}
systemProperty 'common-solr.dir', commonSolrDir
systemProperty 'java.security.manager', "org.apache.lucene.util.TestSecurityManager"
systemProperty 'java.security.policy', file("${resources}/policies/solr-tests.policy")

def gradleUserHome = project.gradle.getGradleUserHomeDir()
systemProperty 'gradle.lib.dir', Paths.get(project.class.location.toURI()).parent.toAbsolutePath().toString().replace('\\', '/')
Expand Down
87 changes: 0 additions & 87 deletions gradle/testing/randomization/policies/replicator-tests.policy

This file was deleted.

127 changes: 0 additions & 127 deletions gradle/testing/randomization/policies/tests.policy

This file was deleted.

0 comments on commit 95a1197

Please sign in to comment.