SvnSetting Definition Worldwide

I would like to define svnSetting globally in my build.xml ant script file:

<project name="helloworld" basedir="." default="helloworld">
    <svnSetting
        javahl="false"
        svnkit="true"
        username="guest"
        password=""
        id="svn.settings"
    />
    ...
</project>

but, of course, the eclipse:

Problem: Could not create task or enter svnSetting Explanation: Name is undefined.

Is it possible to determine svnSetting directly by project, and not by purpose?

+5
source share
1 answer

You should add typedefto your ant script:

<project name="helloworld" basedir="." default="helloworld">
    <path id="path.svnant">
        <pathelement location="${basedir}/svnant.jar"/>
        <pathelement location="${basedir}/svnClientAdapter.jar"/>
    </path>
    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml"
             classpathref="path.svnant"/>

You can read this article article for more details.

+6
source

All Articles