Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 68572 invoked by uid 500); 17 May 2001 22:32:16 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 68494 invoked from network); 17 May 2001 22:32:14 -0000 From: "Dave Townsend" To: Subject: Setting properties depending on the os Date: Thu, 17 May 2001 23:32:58 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I am trying to set some properties depending on what the os is. The main reason is that the user.home property does not properly reflect the users home directory (for files) on a windows machine. Instead you need the "My Documents" subdirectory of this. I attempted to do this as follows: Unfortunatley from what I can tell, the property homedir no longer exists after the antcall task is complete. Is there any way to pass these back, or another way of doing what I am trying to achieve? The only other thought I had was to put ${os.name} in as a dependency to the basic target, but it seems that properties cant be used there. Dave Townsend "Vital papers will demonstrate their vitality by spontaneously moving from where you left them to where you can't find them."