Author: tolusha
Date: 2010-06-15 11:23:31 -0400 (Tue, 15 Jun 2010)
New Revision: 2613
Modified:
jcr/trunk/exo.jcr.component.core/pom.xml
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java
Log:
EXOJCR-756: fix pom.xml, added TesterSecurityManager in TCK profile
Modified: jcr/trunk/exo.jcr.component.core/pom.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core/pom.xml 2010-06-15 15:17:27 UTC (rev 2612)
+++ jcr/trunk/exo.jcr.component.core/pom.xml 2010-06-15 15:23:31 UTC (rev 2613)
@@ -576,7 +576,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- TAKE CARE TO UPDATE ALSO run-all PROFILE -->
- <argLine>${env.MAVEN_OPTS}</argLine>
+
<argLine>-Djava.security.manager=org.exoplatform.services.jcr.impl.util.TesterSecurityManager
-Djava.security.policy=${project.build.directory}/test-classes/test.policy</argLine>
<systemProperties>
<property>
<name>jcr.test.configuration.file</name>
@@ -649,7 +649,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- TAKE CARE TO UPDATE ALSO run-tck PROFILE -->
- <argLine>${env.MAVEN_OPTS}</argLine>
+
<argLine>-Djava.security.manager=org.exoplatform.services.jcr.impl.util.TesterSecurityManager
-Djava.security.policy=${project.build.directory}/test-classes/test.policy</argLine>
<systemProperties>
<property>
<name>jcr.test.configuration.file</name>
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java 2010-06-15
15:17:27 UTC (rev 2612)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java 2010-06-15
15:23:31 UTC (rev 2613)
@@ -61,7 +61,7 @@
continue;
}
- // hide Exception
+ // hide Exception during JCR initialization
if (fileName.equals("BaseStandaloneTest.java"))
{
return;
@@ -79,7 +79,7 @@
}
else if (className.startsWith("org.apache.jackrabbit.test"))
{
- // hide Exception
+ // hide Exception during JCR initialization
if (fileName.equals("RepositoryHelper.java") &&
methodName.equals("getRepository"))
{
return;
Show replies by date