Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 61926 invoked from network); 9 Feb 2007 19:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2007 19:18:13 -0000 Received: (qmail 40197 invoked by uid 500); 9 Feb 2007 19:18:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 40169 invoked by uid 500); 9 Feb 2007 19:18:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 40158 invoked by uid 99); 9 Feb 2007 19:18:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 11:18:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [71.6.11.180] (HELO zazu.stratalight.com) (71.6.11.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 11:18:05 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: using symlink on filesets Date: Fri, 9 Feb 2007 11:17:44 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: using symlink on filesets Thread-Index: AcdMM4Y4FoOpE5wGTOa+YC6/K9zILAAKQ5mAAAUYI+AAA2kpIA== From: "Tracy Jones" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org I am trying to create sym links in 1 directory for each file in another directory. I got this example from a previous posting, but so far am unable to make it work for me. The code is below - the problem I am having is that the sym link is being created in whatever directory I am in when I run the ant command rather than the directory that I have specified in the destdir argument (foo). Here's the output of the run root@StrataLight:/home/sluser# ant -f test.xml -d Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: test.xml Adding reference: ant.PropertyHelper Detected Java version: 1.3 in: /opt/vame1.4 Detected OS: Linux Adding reference: ant.ComponentHelper Setting ro project property: ant.file -> /var/stratalight/home/sluser/test.xml Adding reference: ant.projectHelper Adding reference: ant.parsing.context Adding reference: ant.targets parsing buildfile /var/stratalight/home/sluser/test.xml with URI =3D file:///var/stratalight/home/sluser/test.xml Setting ro project property: ant.project.name -> test Adding reference: test Setting ro project property: ant.file.test -> /var/stratalight/home/sluser/test.xml Project base dir set to: /var/stratalight/home/sluser +Target: +Target: depends [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. +Datatype symlinkFileset org.apache.tools.ant.taskdefs.MacroInstance [macrodef] creating macro symlinkFileset Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor Adding reference: ant.executor Build sequence for target(s) `depends' is [depends] Complete build sequence is [depends, ] depends: Adding reference: commonRefId [echo] foo [apply] Current OS is Linux fileset: Setup scanner in dir /var/stratalight/home/sluser/bar with patternSet{ includes: [*] excludes: [] } [apply] Executing 'ln' with arguments: [apply] '-s' [apply] '-f' [apply] '-v' [apply] '/var/stratalight/home/sluser/bar/a' [apply] [apply] The ' characters around the executable and arguments are [apply] not part of the command. Execute:Java13CommandLauncher: Executing 'ln' with arguments: '-s' '-f' '-v' '/var/stratalight/home/sluser/bar/a' The ' characters around the executable and arguments are not part of the command. [apply] create symbolic link `./a' to `/var/stratalight/home/sluser/bar/a' [apply] Applied ln to 1 file and 0 directories. BUILD SUCCESSFUL Can anyone help?? Tracy --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org