AnsweredAssumed Answered

AMP Development Environment

Question asked by nyronian on Jul 13, 2007
Latest reply on Jul 17, 2007 by gavinc
I am developing an AMP in Eclips deploying to tomcat.  deployment/testing has proven to be quite the process.  I am looking for a better way to setup my environment.

Right now, I make code changes and run an ant script.  The ant script does the following:

1. shutsdown my tomcat server
2. builds my java code
3. integrates everything into the WAR (using your AMP deploy tool)
4. deletes the alfresco directory in webapps
5. copies the war over to the webapps directory (overwriting the old)
6. copies the "shared extension" files over
7. restarts tomcat

This process takes several minutes to complete…. Needless to say, it doesn't help my productivity and I have to work kinda old school of making as many changes as possible and then deploy and test each one, working many threads of issues at a time….  :shock:

It would be AWESOME if it could be integrated into Eclipse.  The problems I ran into (trying to let eclipse do integrated deploys) is…well…it didn't work :)

The reason I delete the webapps/alfresco directory is that the AMP integration puts a later version of the jar in the war (with the new code).  When tomcat starts, it does not deploy the "new" jar into the webapps/alfresco deploment directory.  It doesn't recognise it changed.


Thanks for you help…

Outcomes