AnsweredAssumed Answered

How to set up classpath

Question asked by toltech on May 18, 2008
Latest reply on May 19, 2008 by toltech
L.S.,
This might be a question often asked. I am trying to create a custom action, this is a class which extends ActionExecuterAbstractBase. My Eclipse environment is working for the SDK, however, I now need to compile this class and I have problems setting up the correct class path for my java file to compile.

Could someone give me a suggestion (or link) how to setup eclipse (or a proper classpath to compile manually) to be able to compile the code attached?
Also for the next step I could use some help: Where do I copy the class (when compiled) or how to incorporate it into alfresco.war?

This is the basic code (I only left the skeleton):

import java.util.List;
import org.alfresco.repo.action.ParameterDefinitionImpl;
import org.alfresco.service.cmr.action.Action;
import org.alfresco.service.cmr.action.ParameterDefinition;
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.namespace.QName;

public class MoveReplacedActionExecuter extends ActionExecuterAbstractBase
{
    private NodeService nodeService;
   
   public void setNodeService(NodeService nodeService)
   {
      this.nodeService = nodeService;
   }

   @Override
   protected void addParameterDefinitions(List<ParameterDefinition> paramList)
   {
   }

    /**
     * @see org.alfresco.repo.action.executer.ActionExecuter#execute(org.alfresco.repo.ref.NodeRef, org.alfresco.repo.ref.NodeRef)
     */
    public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef)
    {   
    }
}

Outcomes