AnsweredAssumed Answered

How integrate a jar with a custom action in Alfresco

Question asked by cristi on Dec 1, 2011
Latest reply on Dec 22, 2011 by lotharmärkle

I've created a custom action with as a eclipse project. I packaged it in a jar and I put it in: alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/lib

I started Alfresco and I created a rule with my custom action. When a file is created in this folder then the rule is triggered.

But when I create a file, the unique available type is "content", my custom content types don't show in select list. My problem is I need these custom types.

I have tested starting Alfresco without my jar and all types are availables.

My project structure is wrong?:

or build.xml?:

<?xml version="1.0"?>

<project name="Action Url" default="package" basedir=".">

    <property name="project.dir" value="."/>
    <property name="build.dir" value="${project.dir}/build"/>
    <property name="package.file" value="${build.dir}/Action-url.jar"/>

    <path id="class.path">
        <dirset dir="${build.dir}" />
        <fileset dir="../../lib/server" includes="**/*.jar"/>

    <target name="compile">
        <mkdir dir="${build.dir}" />
        <javac classpathref="class.path" srcdir="${project.dir}/src" destdir="${build.dir}" />

    <target name="package" >
        <jar destfile="${package.file}">
            <fileset dir="${build.dir}"/>


Thanks everybody!