Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:41:28+00:00 2026-06-17T11:41:28+00:00

I’m developing and performing some customization on Share. My IDE is Eclipse Juno and

  • 0

I’m developing and performing some customization on Share. My IDE is Eclipse Juno and workspace is made up of the next elements:

  • alfresco web project
  • extensions Java project
  • share web project

Both alfresco and share web projects are deployed in separate Tomcat instances, this way I can slightly speed up my development tasks by restarting only the Tomcat instance where Share is deployed.

My extensions Java project has the same structure as the Eclipse project proposed by Alfresco. Y the provided Ant tasks for compiling, compressing JavaScript files, packaging and deploying the resultant JAR file in Tomcat.

I’m developing some new JavaScript client-side widgets, which means every time I make a change I have to stop Tomcat, launch Ant build script and start again so as I have to do it very often, you can guess what a pain it is becoming. I was just wondering if there exist any way to speed up development tasks on Share. How do Alfresco developers team do it? What kind of environment do they set up?

I was thinking about creating a new Ant target which hot deploys extension project’s content into deployed Share web project, taking into account paths of course; that mechanism must allow the reverse operation by the way. Would that be viable? The idea would be to have a similar deploy mechanism as when you develop regular web projects: when you make any change you just push the “Publish” button and the changes are populated into the server.

I would like to know some tips and ideas, specifically from Alfresco developers team if possible.

PS: I have already read https://forums.alfresco.com/en/viewtopic.php?f=47&t=44850 and https://forums.alfresco.com/en/viewtopic.php?f=48&t=18749.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:41:29+00:00Added an answer on June 17, 2026 at 11:41 am

    Well this is the solution that is working 100% as I expected. I came up with this after the answers of @erik-b and @jorn-horstmann and taking into account some posts I have read.

    So basically I have the next Ant target which hot deploys the content of my Share extensions Java project:

    <!--
        Hot copy individual files into appropriate deployment folder (e.g. $TOMCAT_HOME/webapps/share)
    -->
    <target name="hotdeploy-tomcat-share" depends="clean, prepare, build-jar" description="Hot copy individual files into appropriate deployment folder (e.g. $TOMCAT_HOME/webapps/share)">
        <echo message="Generating and deploying JAR file with custom configuration files" />
        <jar destfile="${dist.dir}/${jar.name}">
            <!-- Only including configuration XML files such as share-config-custom.xml -->
            <fileset dir="${build.jar.dir}" includes="**/META-INF/*.xml" />
        </jar>
        <copy todir="${tomcat.share.deployment.path}/WEB-INF/lib">
            <fileset file="${dist.dir}/${jar.name}" />
        </copy>
    
        <echo message="Hot deploying Share files" />
        <copy todir="${tomcat.share.deployment.path}/WEB-INF/classes" includeEmptyDirs="false">
            <fileset dir="${build.jar.dir}">
                <patternset refid="hotdeploy-tomcat-patternset" />
            </fileset>
        </copy>
    </target>
    

    Auto-reloading modules feature must be disabled, otherwise every time you execute the above Ant target Tomcat will reload Share and other web apps deployed. Additionally, I believe it is also possible to hot deploy in the $TOMCAT_HOME/shared/ directory but I haven’t tried it out yet.

    The Java project I’m using for developing my extensions is this model project: http://code.google.com/p/share-extras/wiki/SampleProject. There is the full build script with the other targets required.

    I’m also using this in my share-config-custom.xml:

       <!-- Global config section -->
       <config replace="true">
          <flags>
             <!--
                Developer debugging setting to turn on DEBUG mode for client scripts in the browser
             -->
             <client-debug>true</client-debug>
    
             <!--
                LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
                This flag automatically activates logging on page load.
             -->
             <client-debug-autologging>false</client-debug-autologging>
          </flags>
       </config>
    
       <config evaluator="string-compare" condition="WebFramework">
          <web-framework>
             <!-- SpringSurf Autowire Runtime Settings -->
             <!-- 
                  Developers can set mode to 'development' to disable; SpringSurf caches,
                  FreeMarker template caching and Rhino JavaScript compilation.
             -->
             <autowire>
                <!-- Pick the mode: "production" or "development" -->
                <mode>development</mode>
             </autowire>
    
             <!-- Allows extension modules with <auto-deploy> set to true to be automatically deployed -->
             <module-deployment>
                <mode>manual</mode>
                <enable-auto-deploy-modules>true</enable-auto-deploy-modules>
             </module-deployment>
          </web-framework>
       </config>
    

    The last XML snippet avoids to refresh webscripts after any change performed on an FTL page, for example.

    I have also performed some tests with JRebel but after my experience I would say it doesn’t helps a lot in Share development.

    There is also interesting stuff in the next articles:

    http://blogs.alfresco.com/wp/kevinr/2010/04/07/developer-tips-for-alfresco-share-33/

    http://techblog.zabuchy.net/2012/debugging-javascript-in-alfresco/

    Hope it helps others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.