[exo-jcr-commits] exo-jcr SVN: r2667 - in ws/trunk/exo.ws.rest.ext: src/test/resources and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jun 21 08:18:03 EDT 2010


Author: aparfonov
Date: 2010-06-21 08:18:03 -0400 (Mon, 21 Jun 2010)
New Revision: 2667

Modified:
   ws/trunk/exo.ws.rest.ext/pom.xml
   ws/trunk/exo.ws.rest.ext/src/test/resources/test.policy
Log:
EXOJCR-793 : 

Modified: ws/trunk/exo.ws.rest.ext/pom.xml
===================================================================
--- ws/trunk/exo.ws.rest.ext/pom.xml	2010-06-21 10:20:31 UTC (rev 2666)
+++ ws/trunk/exo.ws.rest.ext/pom.xml	2010-06-21 12:18:03 UTC (rev 2667)
@@ -1,10 +1,23 @@
 
 	<!--
 
-		Copyright (C) 2009 eXo Platform SAS. This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at
-		your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
-		License for more details. You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
-		site: http://www.fsf.org.
+    Copyright (C) 2009 eXo Platform SAS.
+
+    This is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Lesser General Public License as
+    published by the Free Software Foundation; either version 2.1 of
+    the License, or (at your option) any later version.
+
+    This software is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this software; if not, write to the Free
+    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+    02110-1301 USA, or see the FSF site: http://www.fsf.org.
+
 	-->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
@@ -90,7 +103,7 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-surefire-plugin</artifactId>
 				<configuration>
-					<argLine>-Djava.security.manager=default -Djava.security.policy=${project.build.directory}/test-classes/test.policy</argLine>
+					<argLine>-Djava.security.manager=default -Djava.security.policy=${project.build.directory}/test-classes/test.policy -Djava.security.debug=denied</argLine>
 				</configuration>
 			</plugin>
 			<plugin>
@@ -105,10 +118,12 @@
 						</goals>
 						<configuration>
 							<tasks>
-								<echo>***** Creating Access Policy for tests *****</echo>
+								<echo>***** Creating Access Policy for tests ***** ${project.build.directory}/../..</echo>
 								<makeurl file="${settings.localRepository}" property="localRepositoryURL" />
 								<makeurl file="${project.build.outputDirectory}" property="outputDirectoryURL" />
 								<makeurl file="${project.build.testOutputDirectory}" property="testOutputDirectoryURL" />
+                        <makeurl file="${project.build.directory}/../../" property="parentDirectoryURL" />
+<!--                        <echo>***** ${parentDirectory}</echo>-->
 								<copy todir="${project.build.testOutputDirectory}" overwrite="true">
 									<fileset dir="${project.basedir}/src/test/resources/">
 										<include name="test.policy" />
@@ -117,6 +132,7 @@
 										<filter token="MAVEN_REPO" value="${localRepositoryURL}" />
 										<filter token="MAIN_CLASSES" value="${outputDirectoryURL}" />
 										<filter token="TEST_CLASSES" value="${testOutputDirectoryURL}" />
+                              <filter token="PARENT" value="${parentDirectoryURL}" />
 									</filterset>
 								</copy>
 							</tasks>

Modified: ws/trunk/exo.ws.rest.ext/src/test/resources/test.policy
===================================================================
--- ws/trunk/exo.ws.rest.ext/src/test/resources/test.policy	2010-06-21 10:20:31 UTC (rev 2666)
+++ ws/trunk/exo.ws.rest.ext/src/test/resources/test.policy	2010-06-21 12:18:03 UTC (rev 2667)
@@ -9,6 +9,9 @@
 grant codeBase "@TEST_CLASSES at -" {
    permission java.security.AllPermission;
 };
+grant codeBase "@PARENT at -" {
+   permission java.security.AllPermission;
+};
 
 grant codeBase "file:/groovy/script" {
 // be sure only  /groovy/script/jaxrs is restricted



More information about the exo-jcr-commits mailing list