activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r590892 - /activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml
Date Thu, 01 Nov 2007 04:39:24 GMT
Author: chirino
Date: Wed Oct 31 21:39:23 2007
New Revision: 590892

URL: http://svn.apache.org/viewvc?rev=590892&view=rev
Log:
Fixed build for windows

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml?rev=590892&r1=590891&r2=590892&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml Wed Oct 31 21:39:23 2007
@@ -41,10 +41,16 @@
 
   <!-- Figure out the user's HOME directory --> 
   <property name="user.home" value="${environment::get-variable('HOME')}"
-            if="${environment::variable-exists('HOME')}"
+            if="${environment::variable-exists('HOME') and platform::is-unix()}"
             unless="${property::exists('user.home')}"/>
-  <fail message="The HOME environment is not defined.  Please set it to your home directory."
+  <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 HOME environment variable is not defined.  Please set it to your
home directory."
+            unless="${property::exists('user.home')}" if="${platform::is-unix()}"/>
+  <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()}"/>
             
   <!-- Figure out the NANT repositories--> 
   <property name="nant.repo" value="${environment::get-variable('NANT_REPO')}"



Mime
View raw message