Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

ANT with RAD 6

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am using this ant file in RAD 6
<?xml version="1.0" encoding="UTF-8"?>
<project default="exportEar">
<target name="exportEar" depends="">
<echo message="Exported EAR files to " />

<earExport earprojectname="e1" earexportfile="C:/RTemp/e1.ear"
exportsource="true" IncludeProjectMetaFiles="false" overwrite="true" />

<echo message="Test Message"/>
</target>
</project>

It works fine no errors but I do not see the file generated
here is the output at console
Buildfile: C:\workspace\e1\META-INF\build.xml

exportEar:
[echo] Exported EAR files to
[earExport] Exporting: e1 (Begin) ...
[echo] Test Message
BUILD SUCCESSFUL
Total time: 219 milliseconds


Thanks
 
Saloon Keeper
Posts: 28054
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everything looks good except that there's no predicate on the "exporting to" message.

Best guess I can make is that you might want to mkdir the C:/RTemp directory before tunning your EAR task. I've seen things occasionally fail because of undefined path components and bad error handling.
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try running with the -v argument to get verbose output? It may give you clues about why you aren't getting the desired result.
[ January 25, 2007: Message edited by: Carol Enderlin ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic