TLs need to update this page

 

 

 

You should never need to modify a delivered file. If you feel like you have to, report a bug.

We have developed an upgrade strategy intended to make it as simple as possible for you to maintain your customizations as you upgrade KFS and to contribute code for inclusion in the delivered software, which will further simplify your upgrades. The keys to working within this framework are...

Eclipse Setup

The setup above should make the normal ant build targets (when run from the base project directory) function properly. However, Eclipse needs a little more tweaking if you want it to compile your code into the necessary location for local development. For this, you will need to make some changes to the .classpath and .project files in the original project. We recommend that you create a patch containing the modifications to .classpath and .project and commit it to your implementation customizations project to simplify things for your developers.

When using this setup, you will want to edit the code from the linked directories in the base project. If you edit from your customization project, Eclipse will not see the change immediately.

Server Builds

When building the application in test, training and production environments, you may need to obtain the version of KFS that you are working with programatically. Here is an example of one way you could do that...

<target name="prepare-project">
    <echo message="ant.lib.directory = ${ant.lib.directory}" />
    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
        <classpath>
            <fileset dir="${ant.lib.directory}" includes="svn*.jar" />
        </classpath>
    </typedef>
    <taskdef resource="net/sf/antcontrib/antlib.xml">
        <classpath>
            <pathelement location="${ant.lib.directory}/ant-contrib-1.0b3.jar" />
            <pathelement location="${ant.lib.directory}/bcel-5.2.jar" />
        </classpath>
    </taskdef>
    <deploy:if>
        <isset property="fetch.foundation.kfs" />
        <then>
            <delete dir="${environment.build.directory}/kfs" />
            <svn>
                <export srcurl="${foundation.kfs.svn.url}" destpath="${environment.build.directory}/kfs" />
            </svn>
        </then>
    </deploy:if>
</target>