Aikau总是在查看现有文件,而不是查看覆盖的文件

时间:2017-02-28 12:18:27

标签: alfresco-share aikau

自定义共享项目结构

 /custom-share/src/main/resources/META-INF/js/alfresco/services/SearchService.js
        /custom-share/src/main/resources/META-INF/js/alfresco/menus/CustomBulkSearchMenu.js
        /custom-share/src/main/resources/META-INF/js/alfresco/documentlibrary/views/CustomSimpleView.js

刻面-search.get.js

        services.push("alfresco/services/NavigationService",
                  "alfresco/services/SearchService",
                  "alfresco/services/ActionService",
                  "alfresco/services/DocumentService",
                  "alfresco/dialogs/AlfDialogService",
                  "alfresco/services/CrudService",
                  "alfresco/services/NotificationService");




widgets.unshift(accessMenu);
widgets.push(main);


model.jsonModel = getFooterModel(services, widgets);
model.jsonModel.groupMemberships = user.properties["alfUserGroups"];

我已经覆盖了SearchService.js&在自定义共享项目中编写了一些自定义窗口小部件文件,用于在分面搜索中进行更改,但是当我快速搜索时,它仍在查看Aikau jar中的文件,并在日志中查看下面的错误但不查看自定义内部写入的文件project.we正在使用alfresco 5.1;

2017-02-28 02:03:03,734  ERROR [extensions.surf.DependencyAggregator] [http-bio-8081-exec-7] Could not find compressed file:       js/aikau/1.0.67.1/alfresco/menus/CustomBulkSearchMenu.js
2017-02-28 02:03:04,179  ERROR [extensions.surf.DependencyAggregator] 
[http-bio-8081-exec-7] Could not find compressed file: 
    js/aikau/1.0.67.1/alfresco/documentlibrary/views/CustomSimpleView.js



     search-extensions.xml
     *********************

     <extension>
        <modules>
            <module>
                <id>Search Enhancements</id>
                <auto-deploy>true</auto-deploy>
                <customizations>
                    <customization>
                        <targetPackageRoot>org.alfresco</targetPackageRoot>
                        <sourcePackageRoot>com.company.search</sourcePackageRoot>
                    </customization>
                </customizations>
            </module>
        </modules>
    </extension>

1 个答案:

答案 0 :(得分:0)

即使您应该将文件保存在Aikau版本的相同文件夹顺序中。 例如,

/custom-share/src/main/resources/META-INF/js/aikau/1.0.67.1/alfresco/documentlibrary/views/CustomSimpleView.js

还要在代码库中维护aikau的文件夹结构并让我们知道它是怎么回事?

当您升级aikau版本并且您的代码库文件夹结构应与aikau版本同步时,您应该非常小心。

否则,您可以使用ant build任务,从build.properties文件中读取aikau版本,并发出所需的文件夹结构。