activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pdr <pdrom...@gmail.com>
Subject Building NMS With nant problems
Date Sun, 05 Apr 2009 06:50:48 GMT

  I found some issues when building nms with nant.  Specifically, the problem
is the following lines in nant-common.xml:

  <property name="user.home"
value="${environment::get-variable('USERPROFILE')}"
            if="${environment::variable-exists('USERPROFILE') and
platform::is-windows()}"
            unless="${property::exists('user.home')}"/>

  <fail message="The USERPROFILE environment variable is not defined. 
Please set it to your home directory."
            unless="${property::exists('user.home')}"
if="${platform::is-windows()}"/>


The proper nant function is:

  <property name="user.home"
value="${environment::get-variable('USERPROFILE')}"
            if="${environment::variable-exists('USERPROFILE') and
platform::is-win32()}"
            unless="${property::exists('user.home')}"/>

  <fail message="The USERPROFILE environment variable is not defined. 
Please set it to your home directory."
            unless="${property::exists('user.home')}"
if="${platform::is-win32()}"/>



  This has probably been found by a lot of different people and I might have
sync'd an old build from the svn repository.  I searched the forum before I
registered so it's possible that my search may have been faulty.  Here's
some more details:

http://nant.sourceforge.net/release/latest/help/functions/platform.is-win32.html

  Original error:

BUILD FAILED

C:\amq-svn\Apache.NMS.ActiveMQ\nant-common.xml(57,4):
Unknown function 'platform::is-windows'.
Expression: ${environment::variable-exists('USERPROFILE') and
platform::is-windows()}
                                                             
^^^^^^^^^^^^^^^^^^^^^

Total time: 0.1 seconds.

-- 
View this message in context: http://www.nabble.com/Building-NMS-With-nant-problems-tp22891047p22891047.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message