1 Reply Latest reply: May 21, 2012 3:04 AM by gimbal2 RSS

    How to create Build using ant for java application

    937323
      I have checked out a project from SVN Repository into a local file syatem.from the local system i am trying to make ab automated build for the java application. Using Build.xml to automate the Java project but it is throwing a exception that the variable mis match and format not supported.

      Error Message:

      Problem: failed to create task or type svn
      Cause:the name is undefined
      Action:check the spelling.
      Action:Check that any Custom type\task has been declared .
      Action:Check that any <presetdef>/<macrodef> has been taken place.



      Build.xml code:
      <?xml version="1.0" encoding="UTF-8"?>
      <project name="MCMPCoreEngine" default="makejar" basedir=".">
           
           <property name="svnant.jar" value="${ANT_HOME}/svnant.jar" />
           <property name="svnClientAdapter.jar" value="${ANT_HOME}/svnClientAdapter.jar" />
           <property name="svnjavahl.jar" value="${ANT_HOME}/svnjavahl.jar" />
           <path id="D:/apache-ant-1.8.2-bin/apache-ant-1.8.2/lib">
                <pathelement location="svnant.jar" />
      <pathelement location="svnClientAdapter.jar" />
           </path>
           <typedef resource="net/sf/antcontrib/antlib.xml" classpath="D:/apache-ant-1.8.2-bin/apache-ant-1.8.2/lib"/>
           <target name="makejar">
                <svn username="Vishal.Agarwal" password="123">
                     <checkout url="svn://10.98.10.132/MCMP/MCMP/Code/MCMP Latest Code Base/MCMPCoreEngine" destPath="/MCMPCoreEngine" revision="HEAD"/>
                </svn>
           </target>
      </project>

      Edited by: 934320 on May 20, 2012 11:19 PM
        • 1. Re: How to create Build using ant for java application
          gimbal2
          but it is throwing a exception that the variable mis match and format not supported
          ... oh yeah? Where?
          Problem: failed to create task or type svn
          Cause:the name is undefined
          Seems pretty clear to me. It becomes even more clear when you open up the ANT manual, open up the task list and notice that there is no "svn" task in there.