Changeset 1944
- Timestamp:
- 02/21/08 09:13:12
(9 months ago)
- Author:
- dsugar
- Message:
corrected
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1943 |
r1944 |
|
| 510 | 510 | if (!(res instanceof Resource)) |
|---|
| 511 | 511 | continue; |
|---|
| 512 | | |
|---|
| | 512 | |
|---|
| 513 | 513 | Resource resource = (Resource) res; |
|---|
| 514 | 514 | List paths = resource.GetSystemResources (rdef); |
|---|
| … | … | |
| 547 | 547 | |
|---|
| 548 | 548 | m_bufferPolicy.println("')"); |
|---|
| 549 | | |
|---|
| 550 | | generateParentSearchPerms (i_access.getDomain (), resource, m_bufferPolicy); |
|---|
| 551 | | |
|---|
| 552 | | } |
|---|
| | 549 | } |
|---|
| | 550 | |
|---|
| | 551 | generateParentSearchPerms (i_access.getDomain (), resource, m_bufferPolicy); |
|---|
| | 552 | |
|---|
| 553 | 553 | } |
|---|
| 554 | 554 | } |
|---|
| … | … | |
| 642 | 642 | // association |
|---|
| 643 | 643 | |
|---|
| 644 | | if(systemResources == null) |
|---|
| | 644 | if (systemResources == null) |
|---|
| 645 | 645 | return; |
|---|
| 646 | 646 | |
|---|
| … | … | |
| 650 | 650 | |
|---|
| 651 | 651 | File file; |
|---|
| 652 | | if(sr instanceof DirResource) |
|---|
| | 652 | if (sr instanceof DirResource) |
|---|
| 653 | 653 | { |
|---|
| 654 | 654 | file = ((DirResource) sr).getDirectory (); |
|---|
| 655 | 655 | } |
|---|
| 656 | | else if(sr instanceof FileResource) |
|---|
| | 656 | else if (sr instanceof FileResource) |
|---|
| 657 | 657 | { |
|---|
| 658 | 658 | file = ((FileResource) sr).getFile (); |
|---|
| … | … | |
| 661 | 661 | continue; |
|---|
| 662 | 662 | |
|---|
| 663 | | while((file = file.getParentFile()) != null) |
|---|
| | 663 | while ((file = file.getParentFile()) != null) |
|---|
| 664 | 664 | { |
|---|
| 665 | 665 | String fileType = getPathType(file); |
|---|
| 666 | | if(fileType == null) |
|---|
| 667 | | { |
|---|
| 668 | | if(m_hasFileContext) |
|---|
| | 666 | if (fileType == null) |
|---|
| | 667 | { |
|---|
| | 668 | if (m_hasFileContext) |
|---|
| 669 | 669 | { |
|---|
| 670 | 670 | String sErrMsg = "Unable to determine file context for " + file.toString() + ", try associating the parent directory with a CDSFramework component"; |
|---|
| … | … | |
| 680 | 680 | |
|---|
| 681 | 681 | String key = compType + fileType; |
|---|
| 682 | | if(!m_dirPermSet.contains(key)) |
|---|
| | 682 | if (!m_dirPermSet.contains(key)) |
|---|
| 683 | 683 | { |
|---|
| 684 | 684 | policyStream.print("optional_policy(`\n\tgen_require(`\n\t\ttype "+fileType+";\n\t')\n"); |
|---|
Download in other formats:
* Generating other formats may take time.