ANT failing at command line
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ammar_Khalid
Posted On:   Friday, November 28, 2008 11:50 AM

I have written an ANT script and tested in my eclipse environment. When I run the script using command line command: N: asksant task for juliet>ant -buildfile build.xml Buildfile: build.xml deploy_convert_tool: [echo] Unzipping the ConvertTool.zip file [unzip] Expanding: N: asksant task for julietConvertTool.zip into N: ask sant task for juliet [echo] Copying the Convert tool files [copydir] DEPRECATED - The copydir task is deprecated. Use copy instead. BUILD FAILED java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()L org/apache/tools/ant/util/FileUtils; On checking    More>>

I have written an ANT script and tested in my eclipse environment. When I run the script using command line command:


N: asksant task for juliet>ant -buildfile build.xml
Buildfile: build.xml

deploy_convert_tool:
[echo] Unzipping the ConvertTool.zip file
[unzip] Expanding: N: asksant task for julietConvertTool.zip into N: ask
sant task for juliet
[echo] Copying the Convert tool files
[copydir] DEPRECATED - The copydir task is deprecated. Use copy instead.

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()L
org/apache/tools/ant/util/FileUtils;




On checking the web, I saw that this maybe due to older version of ANT such as 1.6.2. But I have ANT 1.7.1, however when I run the command: ant -version, it shows the following:



N: asksant task for juliet>ant -version
Apache Ant version 1.6.2 compiled on July 16 2004



This is baffling me? Any ideas

   <<Less

Re: ANT failing at command line

Posted By:   Anonymous  
Posted On:   Monday, December 8, 2008 09:21 AM

Check your path variable, sounds that it points to the old Ant version.
About | Sitemap | Contact