Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Maven more dearly-Ant friendly yet to become dearly

 
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • 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: 39997
807
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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: 372
  • Mark post as helpful
  • send pies
  • 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
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic