• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant display message...

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is a part of my build.xml ..
My problem is even though <echo>is [present in target deploy
while running ant it is not displaying....
since it is depneds on undeploy its directly going thr ...
If i do it in second way it is displaying but not going to undeploy..
how can i work it out???
thanx

1)
<project name="Test" default="deploy" basedir=".">

<target name="deploy" depends="undeploy" >
<echo> ==============================================================
= JDK version to be used = jdk1.4.0
= Ant version to be used = apache-ant-1.5.3
==============================================================
</echo>
</target>


<target name="undeploy">
<delete file="${domain}/${ear}.ear"/>
</target>

</project>


-----------------
2)
<project name="Test" default="deploy" basedir=".">

<target name="deploy" description ="deploying" >
<echo> ==============================================================
= JDK version to be used = jdk1.4.0
= Ant version to be used = apache-ant-1.5.3
==============================================================
</echo>
</target>


<target name="undeploy">
<delete file="${domain}/${ear}.ear"/>
</target>

</project>
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Sahina CR",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
reply
    Bookmark Topic Watch Topic
  • New Topic