cancel
Showing results for 
Search instead for 
Did you mean: 

Customized files in an AMP

b_victor
Champ in-the-making
Champ in-the-making
I have a number of customized files that I've created (for example dnd-upload.js and associated dnd-upload-min.js) that I'm currently just placing into #alf home#/tomcat/webapps/share/components/upload/.  I would like to package these files as part of my AMP file, but am not sure where to put them so that they're bundled the right way.  Can someone point me in the right direction as to where to put these files? 

I'm also having trouble packaging a third party jar file extension (site task manager  <a href="http://addons.alfresco.com/addons/site-task-manager">Site Task Manager</a>).  When I put the jar file in src/main/amp/lib in my AMP maven eclipse project and bundle the AMP that way, Alfresco won't start, giving errors about being unable to process the jar file.
Any ideas how I can do this?

Thanks
3 REPLIES 3

romschn
Star Collaborator
Star Collaborator
Take a look at this alfresco documentation link - http://docs.alfresco.com/community/topic/com.alfresco.community.doc/concepts/dev-extensions-modules-... which gives details about the AMP structure you should follow in order to create your AMP file for customized code. Create AMP file following this structure.

Hope this helps.

b_victor
Champ in-the-making
Champ in-the-making
Appreciate the link, but where would I put a file that I want to end up in share/components/upload, overwriting a default file?
not sure what I'm missing but I don't see the correspondence between the amp structure and where I want the file to go.

romschn
Star Collaborator
Star Collaborator
You should place it under /web/components and keep include.default=true in file-mapping.properties file and check if it works for you or not.