cancel
Showing results for 
Search instead for 
Did you mean: 

Copy and refresh web scripts command

sthalange
Champ in-the-making
Champ in-the-making
How can the webscripts be copied and refreshed through command line in alfresco 2.2.
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
A web script exists on the file system as a normal set of files or in the repository as content (or in a JAR, but I assume we're talking about one of the first two cases here).

So the copy part is just a copy. Use either cp on the file system or the copy action in the Alfresco user interface.

Web scripts are refreshed using the Web Script console (http://localhost:8080/alfresco/s/index) but you are asking how to do it from the command line. There are a few ways to do it, which essentially involve remotely hitting the same URL that would be hit if you were to click the refresh button. Here's one way to do it that leverages Ant: http://blogs.alfresco.com/wp/wabson/2011/05/04/refreshing-web-scripts-from-ant/

Jeff