ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ant Wiki] Update of "AntNewbies" by KenMcKnight
Date Fri, 08 Apr 2005 21:40:26 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ant Wiki" for change notification.

The following page has been changed by KenMcKnight:
http://wiki.apache.org/ant/AntNewbies

The comment on the change is:
Posting question #9 re The <exec> type doesn't support the nested "echo" element

------------------------------------------------------------------------------
  
  '''Answer #7''' - Use the <depend> task. It will handle most of what you want. 
  
+ ----
+ 
  
  ```Question#8``` How can I perform an if-then-else construct for building multiple JARs/WARs
within a single build.xml
  
@@ -277, +279 @@

  
  In the <or></or> block I'd  like to test if a certain set of filenames exist
within a directory and if so populate a fileset that will be built into the jar.
  
+ 
+ ----
+ 
+ ```Question#9``` Why am I getting: The <exec> type doesn't support the nested "echo"
element.
+ 
+ An offshore developer is getting this strange message:
+ {{{
+ BUILD FAILED
+ F:\Vitria431\BW431\vant\buildfiles\bwsrc\bme\newbme.xml:22: Following error occured while
executing this line
+ F:\Vitria431\BW431\vant\buildfiles\bwsrc\bme\newbme.xml:123: The <exec> type doesn't
support the nested "echo" element.
+ }}}
+ 
+ Here's a snippet of the code:
+ 
+ {{{
+     <!-- Small BME -->
+     <echo message="Smalling bme..."/>
+     <exec dir="${bwsrc.dir}/bme/commands" executable="makeall">
+       <arg line="bmesmall"/>
+     </exec>
+ }}}
+ 
+ The executable "makeall" outputs something like this:
+ 
+ {{{
+ $ makeall bmesmall
+ Using jvm.lib at "c:\local\jdk1.4.x\lib\jvm.lib"
+ 
+ Root directory: D:\ws\svn\jedi
+ Language: en/us, start time: Fri Apr 08 14:34:38 2005
+ WARNING! VCDIR not set. I'll try to find C++ stuff.
+ Building target "bmeSmall" (bwsrc\bme\bmesmall.bld:102)
+ del D:\ws\svn\jedi\export\bme\modules\ant.jar
+ del D:\ws\svn\jedi\export\bme\modules\applet.jar
+ del D:\ws\svn\jedi\export\bme\modules\autoupdate.jar
+ }}}
+ 
+ I'm thinking it either has to do with their version of JDK (1.4.1_02) or Ant (they claim
it's 1.6.1). Anyone seen this error before? I can't get it to reproduce on my system.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message