Hello everybody.

Now i'm using ivy 5 with HTML dialog(jsf) and i have a trouble with registering that taglib. Because of our requirement i have to create new custom taglib (put it in jar file) then i want to register it to use. But i can't do that in Ivy (don't have web.xml for each project). So i have to copy it to <ivy folder="">\webapps\ivy\WEB-INF\lib\ everytime i make a new deployment/make some changes it that jar. My customer really now happy with that. What is alternative way to register it directly in our project?

Anyone has ever met that problem and give me any suggestions? Thanks in advance!

This question is marked "community wiki".

asked 10.06.2014 at 11:07

trungdv's gravatar image

accept rate: 52%

edited 10.06.2014 at 11:08

I marked private stuff with a '*'.

 <?xml version="1.0" ?>
    <!-- Fetch translations build.xml //-->
    <project default="createJarFile" basedir=".">
        <property name="workspace" location="${basedir}\..\..\..\..\..\" />
        <property name="eclipse" location="${ant.home}\..\..\" />
        <available file="${user.home}\.ssh\private_key.ppk" property="key.present" />
        <target name="fetchTranslation" description="Fetch translations">
            <echo>Start fetching translations from google drive...</echo>
            <java classname="ch.*.building.translation.SpreadsheetFetcher" failonerror="true" fork="true">
                    <pathelement location="${workspace}\classes" />
                    <fileset dir="${workspace}\lib\">
                        <include name="**/*.jar" />

        <target name="createJarFile" depends="fetchTranslation" description="Create properties jar file">
            <echo>Packing property files into jar.</echo>
            <jar jarfile="${eclipse}\webapps\ivy\WEB-INF\lib\properties.jar" includes="**/*.properties" basedir="${workspace}\src\">

        <target name="deploy2server" depends="createJarFile" description="Deploy translations" if="key.present">
            <echo>Deploy jar file to ftp server.</echo>
            <scp todir="*:/opt/xpertivy/webapps/ivy/WEB-INF/lib" port="*" trust="true" file="${eclipse}\webapps\ivy\WEB-INF\lib\properties.jar" keyfile="${user.home}/.ssh/private_key.ppk" />


This file has been created by Beat Jost my teammember.


answered 10.06.2014 at 14:52

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 39%

edited 10.06.2014 at 14:53

I have the same problem using a properties jar. I use an ant script for autodeployment via FTP. Its the only 1-Click solution I can figure.


answered 10.06.2014 at 13:24

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 39%

Can you share your script? may be it's helpful for us

(10.06.2014 at 14:02) trungdv trungdv's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 10.06.2014 at 11:07

Seen: 31,432 times

Last updated: 10.06.2014 at 14:53