0
1

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

trungdv
(suspended)
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">
                <classpath>
                    <pathelement location="${workspace}\classes" />
                    <fileset dir="${workspace}\lib\">
                        <include name="**/*.jar" />
                    </fileset>
                </classpath>
            </java>
        </target>

        <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\">
            </jar>
        </target>

        <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" />
        </target>

    </project>

This file has been created by Beat Jost my teammember.

link

answered 10.06.2014 at 14:52

Daniel%20Oechslin's gravatar image

Daniel Oechslin
(suspended)
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.

link

answered 10.06.2014 at 13:24

Daniel%20Oechslin's gravatar image

Daniel Oechslin
(suspended)
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

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×147
×58
×4

Asked: 10.06.2014 at 11:07

Seen: 36,056 times

Last updated: 10.06.2014 at 14:53