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 89A6E84E4 for ; Fri, 26 Aug 2011 03:05:03 +0000 (UTC) Received: (qmail 42446 invoked by uid 500); 26 Aug 2011 03:05:02 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41784 invoked by uid 500); 26 Aug 2011 03:04:42 -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 41739 invoked by uid 99); 26 Aug 2011 03:04:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 03:04:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [203.81.22.165] (HELO mail1.qilinsoft.com) (203.81.22.165) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 03:04:30 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Newbie: task can't find my source files Date: Fri, 26 Aug 2011 11:03:03 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie: task can't find my source files Thread-Index: AcxjKStwwbRmXDBhT+Kcfb0zrfaxHQAbzzqg References: <1314278201.77391.YahooMailClassic@web24714.mail.ird.yahoo.com> From: "XiaoWei Zhang" To: "Ant Users List" , Cc: "Scot P. Floess" X-Virus-Checked: Checked by ClamAV on apache.org Hi Ego, I'm not sure what the root cause for your problem is. But I'd like to share how we use 'javac' target in our production environment, hope it would be of help. Firstly, we defined a common target named 'common-compile' in a XML which can be imported by the 'real' build XML files, the scriptlet of invoking 'javac' in this target implementation is as following: To use this target, we wrote following lines in the build.xml: =20 No matter where the build.xml was placed, you can run it smoothly as long as you imported the common XML which defines 'common-compile' target. Also, I'd suggest not using ${basedir} in your build.properties, because per your description it's a common properties file which may be shared by other build XML files. While referenced from build XML files under different folders, it can be of different values and in turn bring you problem. Regards, -Xiaowei Zhang -----Original Message----- From: Ego [mailto:m47841-mailinglists@yahoo.it]=20 Sent: Thursday, August 25, 2011 9:17 PM To: Ant Users List Cc: Scot P. Floess Subject: Re: Newbie: task can't find my source files SOLVED: Still I can't say why all / statements fail in my configuration, but at last I found a workaround. I'll post it in case someone had similar issues. build.properties ---------------- src.dir=3D${basedir}/projects/modules/src # I overlooked subpackage sr2 previously, but that's not essential. # Even including it (the old way, I mean) I get "[javac] No sources found." src1=3D${src.dir}/apps/gdv/ src2=3D${src.dir}/packages/gui/elements/ src3=3D${src.dir}/packages/sde/actor/ src4=3D${src.dir}/packages/sde/monitor/ src5=3D${src.dir}/packages/sde/semaphore/ src6=3D${src.dir}/packages/synch/ build.dir=3D${basedir}/projects/WEB-INF/build dist.dir=3D${basedir}/projects/WEB-INF/dist project.name=3Dgdv main-class=3Dapps.gdv.GDVLauncher # I wish I could be more platform independent here... jar-classpath=3D.\\gdv.jar And here's the 'compile' task: --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org