1 Reply Latest reply on May 21, 2012 8:04 AM by gimbal2

    How to create Build using ant for java application

      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" />
           <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:// Latest Code Base/MCMPCoreEngine" destPath="/MCMPCoreEngine" revision="HEAD"/>

      Edited by: 934320 on May 20, 2012 11:19 PM