Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33984 invoked from network); 2 Sep 2008 00:19:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 00:19:01 -0000 Received: (qmail 16125 invoked by uid 500); 2 Sep 2008 00:18:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16092 invoked by uid 500); 2 Sep 2008 00:18:57 -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 16080 invoked by uid 99); 2 Sep 2008 00:18:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2008 17:18:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddevienne@gmail.com designates 209.85.132.240 as permitted sender) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 00:18:00 +0000 Received: by an-out-0708.google.com with SMTP id b2so322988ana.25 for ; Mon, 01 Sep 2008 17:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=wIZMy/zwZ4yy+FMT60h/4RerPt4WEAPY6zUIQ1f1Mcw=; b=RTqx3O2r2V8iV9z70W9VToP1uTrbPZBgXRChXYRTKhs1d06Ve/cMYV1SukunG9Yn2x zxIQELbUg7hZnzNdlSaiTCivr3wXSDHbngenbtz1l1iN5Jq7q6dWqr9lw3su4TG1QNmg Xur/+ZV2BsDmX0bejv8xJVRaNYzAqAAUPTrXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=in7GWIAyRNdAGbiFeQ7wKUJ2V37NvptTcXSTDvUCFCuuXyN720F4HdN1ns1yC11sMe HEDhOoYfgq13StjhQTtjF+ukitC8QtVirDM8xt3ii9SJLdMHbK8HJf6AhhK0oxJN9vIw VeYH0xiGSZCkoCU4uH85a39O1sYs+YGspoKLU= Received: by 10.100.140.2 with SMTP id n2mr6571727and.95.1220314693869; Mon, 01 Sep 2008 17:18:13 -0700 (PDT) Received: by 10.100.197.12 with HTTP; Mon, 1 Sep 2008 17:18:13 -0700 (PDT) Message-ID: <255d8d690809011718w52e8ba34s61592df54c510fe4@mail.gmail.com> Date: Mon, 1 Sep 2008 19:18:13 -0500 From: "Dominique Devienne" To: "Ant Users List" Subject: Re: Force fileset to relative paths? In-Reply-To: <7d9daabd0809011203q12206170r313396c519e78961@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d9daabd0809011203q12206170r313396c519e78961@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Sep 1, 2008 at 2:03 PM, c0uchm0nster wrote: > I'm using the cpptasks plugin, or taskdef, or whatever they're called > (sorry, I'm brand new to ant), and a shell script to call msvc through > wine, which is working pretty well. Excellent choice! ;-) No easy to get started with, but excellent. Watch out that there's little activity on this project though... > My (hopefully) last problem now is this: In the fileset to grab all > the .cpp files it takes all the relative search paths I set and makes > them absolute paths, so "**/*.cpp" turns into, for example, > /var/cruisecontrol/checkout/idkfa/src/messaging/eventmanager.cpp . > What's wrong with that? Well, since this gets passed to cl (the MSVC > command-line compiler), and since most windows apps (cl included) use > / for command-line flags instead of - it tries to interpret every > single file as some command-line parameter instead of a file: Isn't it CppTasks that calls cl? I've never used the "msvc" compiler option of on Linux, but normally it "should do the right thing". Or are you somehow bypassing ? > SO, finally, my question: Is there any way to force the fileset > returned values to be relative paths? Or is there any way I can modify > what it returns, through a find-replace or some kind of tool? That's 's job, but you must turn your fileset into a property though. Depends what you do with it afterwards. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org