From user-return-72588-apmail-ant-user-archive=ant.apache.org@ant.apache.org Sat Dec 1 21:32:59 2012 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01F44E173 for ; Sat, 1 Dec 2012 21:32:59 +0000 (UTC) Received: (qmail 8154 invoked by uid 500); 1 Dec 2012 21:32:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 8032 invoked by uid 500); 1 Dec 2012 21:32:58 -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 8024 invoked by uid 99); 1 Dec 2012 21:32:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 21:32:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lewis.mcgibbney@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 21:32:49 +0000 Received: by mail-qa0-f45.google.com with SMTP id j15so499019qaq.4 for ; Sat, 01 Dec 2012 13:32:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nY8ThsAFy81JYHp2wbYxitQ00jLyQqaZ2Bk3iTXBBEs=; b=eS5TF3iKsjx4lG2rshubCXoDXNiHO32yq3RIcnLTfvC2bEmbg8mgE5D4izeWUMHMAh r39QNZjbAZaiG5hXjDeqEQuioivC7MyNYWMMHzDEJlmhC8ZyS0T6wiA0hN8hrAssYfif lCKZquEhgbmGD0dnH1atjzQKtX4GRaNpoguP39eGAA8A+lTe1zhtPd1l+pLZvacFC1tD g6YSGijHfYQG1Unoq9z0ctZp+/t5uJnV0WG9ILyztcDcUOpCzmsy6f06hSMz20rRuI3n VNML/brXh7hm7nHhk+vLsGu4K32jvgKeN6Sc0Ha1Qjhghx+78DrMr9+EFHbor6ZylyuB Zzcg== MIME-Version: 1.0 Received: by 10.224.187.69 with SMTP id cv5mr9869358qab.30.1354397548173; Sat, 01 Dec 2012 13:32:28 -0800 (PST) Received: by 10.49.105.9 with HTTP; Sat, 1 Dec 2012 13:32:28 -0800 (PST) In-Reply-To: References: Date: Sat, 1 Dec 2012 21:32:28 +0000 Message-ID: Subject: Re: Correct configuration for reading a list into a Java class From: Lewis John Mcgibbney To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Martin, On Sat, Dec 1, 2012 at 6:34 PM, Martin Gainty wrote: > > it appears that a upstream entity is concatenating 2 folder names (instead of one) into your dir attribute ${gora.avsc.dir} so when ${gora.avsc.dir} is referenced during a file readan IO error occurs I understand exactly what you are saying. I found this thread http://www.mail-archive.com/user@ant.apache.org/msg28390.html Which looked horribly convoluted, so I simplified the code a bit. This gives the following output generate-gora-src: [java] 12/12/01 20:42:45 INFO compiler.GoraCompiler: Compiling /home/lewismc/ASF/2.x/src/gora/webpage.avsc:/home/lewismc/ASF/2.x/src/gora/host.avsc to ./src/java [java] Exception in thread "main" java.io.FileNotFoundException: /home/lewismc/ASF/2.x/src/gora/webpage.avsc:/home/lewismc/ASF/2.x/src/gora/host.avsc (No such file or directory) So again it looks like its concatenating the string. I'm maybe thinking however that this has to do with the Java class that I'm invoking. I'm questioning how it reads in multiple files before compiling. I think this is where the problem is. I'll keep hacking, then call back with the good news... when I get some :0) Thanks for your suggestions to date. I've certainly learned more about Ant today. Lewis --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org