• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Maven more dearly-Ant friendly yet to become dearly

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

In the recent past i was successful in not only creating an executable file  for a java application through maven,but also make it function through double click
While i am thankful for ranch staff who made this a possibility. i am now e ndeavouring the same way through ant command

Can any one make Ant more helpful as much as maven who was more dearly
since the jar file created by ant does not function on double click.
Also Please note the word exec only appears but nothing further.int output produced


Thanks
As
CRMK



 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
exec: prints with nothing after it because the target is empty:
<target name="exec" depends="clean, compile, dist"  />

If you wanted it to print something, you could put an echo in it.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:exec: prints with nothing after it because the target is empty:
<target name="exec" depends="clean, compile, dist"  />

If you wanted it to print something, you could put an echo in it.



Hi

Thanks a lot .Now  with the command echo i can print  message.My execuatblefile needs an attribute that supports for executing the jar  so built .shall be
thankful if this is substituted thus enabling  ant being equated to Maven in status atleast as per the tiltle
An example code  will be ideal
Thanks once again
AS
CRMK
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic