Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create Build using ant for java application

937323May 21 2012 — edited May 21 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2012
Added on May 21 2012
1 comment
899 views