[ 
https://issues.apache.org/jira/browse/TUSCANY-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599425#action_12599425
 ] 

Raymond Feng commented on TUSCANY-2339:
---------------------------------------

Hi, Dan.

I suggest that we set a tuscany.policy property in the profile and activate the 
profile if the property is set:

<profiles>
  <profile>
    <id>j2sec</id>
    <activation>
      <property>
        <name>tuscany.policy</name>
      </property>
    </activation>
     <properties>
        
<tuscany.policy>file:///${java.home}/lib/security/tuscany.policy</tuscany.policy>
      </properties>
  </profile>
</profiles>


> Java 2 Security - Provide Tuscany Maven profile to run vtest and itest with 
> Java 2 security enabled
> ---------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2339
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2339
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>         Environment: Maven profile should be operating system independent.
>            Reporter: Dan Becker
>         Attachments: TUSCANY-2339.patch
>
>
> Provide Tuscany Maven profile to run vtest and itest with Java 2 security 
> enabled. This profile should specify a security profile for Tuscany, and 
> should run vtest and itests with Java 2 security enabled.
> Run the profile with
> mvn -P security.
> Suggested profile addition to Tuscany java/sca pom.xml
>         <profile>
>             <id>security</id>
>             <modules>
>                 <!-- <module>demos</module> -->
>                 <module>itest</module>
>                 <module>vtest</module>
>             </modules>
>             <build>
>                 <plugins>
>                     <plugin>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-surefire-plugin</artifactId>
>                         <version>2.3.1</version>
>                         <configuration>
>                             <includes>
>                                 <include>**/*TestCase.java</include>
>                             </includes>
>                             <reportFormat>brief</reportFormat>
>                             <useFile>false</useFile>
>                             <forkMode>once</forkMode>
>                             <!-- Place tuscany.policy in your Java home 
> security directory. Alternatively, hardcode the file location here. -->
>                             <argLine>-Djava.security.manager 
> -Djava.security.policy=file:///${java.home}/lib/security/tuscany.policy 
> -Dpolicy.allowSystemProperty=true -Djava.security.debug=policy</argLine>
>                         </configuration>
>                     </plugin>
>                 </plugins>         
>             </build>
>         </profile>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to