[jbosstools-issues] [JBoss JIRA] (JBIDE-12615) allow as7 classpath containers have access restrictions

Rob Stryker (JIRA) jira-events at lists.jboss.org
Fri Jan 11 04:25:08 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-12615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745226#comment-12745226 ] 

Rob Stryker commented on JBIDE-12615:
-------------------------------------

lowering severity since this is not a severe issue. 
                
> allow as7 classpath containers have access restrictions
> -------------------------------------------------------
>
>                 Key: JBIDE-12615
>                 URL: https://issues.jboss.org/browse/JBIDE-12615
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: JBossAS/Servers
>    Affects Versions: 4.0.0.Alpha1
>            Reporter: Rob Stryker
>            Assignee: Rob Stryker
>              Labels: new_and_noteworthy
>             Fix For: LATER
>
>
> We will eventually have access restrictions on the as7 jars provided. This will require the classpath container in charge of making the entries to provide the classpath acces rules. 
> ClientAllRuntimeClasspathProvider:
> 	protected IClasspathEntry getEntry(Entry entry) {
> 		IPath p = entry.getPath();
> 		IAccessRule[] rules = null;
> 		if( p.toString().contains("picketbox")) {
> 			IPath filePattern= new Path("**/ssl/**");
> 			rules = new IAccessRule[]{JavaCore.newAccessRule(filePattern, IAccessRule.K_NON_ACCESSIBLE)};
> 			System.out.println("break here");
> 		}
> 		IClasspathEntry e = JavaCore.newLibraryEntry(entry.getPath(), null, null,
> 				rules == null ? ClasspathEntry.NO_ACCESS_RULES : rules, 
> 				ClasspathEntry.NO_EXTRA_ATTRIBUTES,
> 				false/*not exported*/);
> 		
> Above is example code. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list