Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12615

allow as7 classpath containers have access restrictions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • LATER
    • 4.0.0.Alpha1
    • server

      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.

            rob.stryker Rob Stryker (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: