maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Delaney" <>
Subject RE: possible bug in maven antrun plugin
Date Tue, 16 Sep 2008 14:59:22 GMT
My apologies. This seems to have been resolved in maven-antrun-plugin
version 1.2 



From: Michael Delaney [] 
Sent: Tuesday, September 16, 2008 10:07 AM
To: Maven Users List
Subject: possible bug in maven antrun plugin


While trying to update our builds to run on Solaris, I was put some
logic in our ant scripts to enable cross platform execution (*.bat
versus *.sh ... etc). My initial idea was to rely on the ant property
"" (which should be set by default). I wrote my ant script and
got it working perfectly, outside of Maven. Once I attempted to execute
the same ant script in Maven, I noticed that the property was
not getting expanded at all.


I have included a small pom.xml and build.xml to show the behavior. Just
untar the archive, run 'mvn install' and then ant (no additional
parameters are required for either process). You will notice that the
property '' doesn't get expanded when called via Maven but does
when getting called via Ant.


I have a feeling this is a bug but I figured I could see if anything has
any additional input, or hacks, on this issue.


[ Maven AntRun output ]


     [echo] The following line should contain our OS name

     [echo] ${} == ${}


[ Ant output ]


     [echo] The following line should contain our OS name

     [echo] ${} == Windows XP

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message