• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Maven more dearly-Ant friendly yet to become dearly

 
Ranch Hand
Posts: 341
  • 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: 39435
768
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: 341
  • 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
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!