RE: Newbie: task can't find my source files

2011-08-25 Thread XiaoWei Zhang
turn bring you problem. Regards, -Xiaowei Zhang -Original Message- From: Ego [mailto:m47841-mailingli...@yahoo.it] 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 a

Re: Newbie: task can't find my source files

2011-08-25 Thread Ego
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=${basedir}/projects/modules/src # I overlooked subpackage sr2 previously, but that's not essential

Re: Newbie: task can't find my source files

2011-08-25 Thread Ego
Update: Finally I managed to compile and jar the content of the src dir. This is the updated build.properties file: src.dir=${basedir}/projects/modules/src build.dir=${basedir}/projects/WEB-INF/build dist.dir=${basedir}/projects/WEB-INF/dist project.name=gdv main-class=apps.gdv.GDVLauncher jar-cl

Re: Newbie: task can't find my source files

2011-08-23 Thread Ego
> You might try to compute the dir and hand that value to > javac... > > For example: > > property="basedir.basename"/> > > > .../> > > > Not sure that will fix it...but it may :) It didn't in fact. Thanks anyway for all the help. -

Re: Newbie: task can't find my source files

2011-08-22 Thread Scot P. Floess
You might try to compute the dir and hand that value to javac... For example: Not sure that will fix it...but it may :) On Mon, 22 Aug 2011, Ego wrote: I bet basename will yield src? Exactly. I typed in the following lines, as suggested: dir = [${basedir.dir}] base =

Re: Newbie: task can't find my source files

2011-08-22 Thread Ego
> I bet basename will yield src? Exactly. I typed in the following lines, as suggested: dir = [${basedir.dir}] base = [${basedir.basename}] Side notes: - versose output contains the line Project base dir set to: D:\Workspaces\Java - source code for project's main class begins

Re: Newbie: task can't find my source files

2011-08-22 Thread Scot P. Floess
I bet basename will yield src? On Mon, 22 Aug 2011, Ego wrote: Good news: yields: D:\Workspaces\Java\projects\modules instead of the expected: D:\Workspaces\Java\projects\modules\src Surely something's going wrong when processing the includes="" property (or the nested elements, it's

Re: Newbie: task can't find my source files

2011-08-22 Thread Ego
Good news: yields: D:\Workspaces\Java\projects\modules instead of the expected: D:\Workspaces\Java\projects\modules\src Surely something's going wrong when processing the includes="" property (or the nested elements, it's the same).

Re: Newbie: task can't find my source files

2011-08-22 Thread Scot P. Floess
D'oh, I should have guessed the src.dir would emit as it did ;) How about taking the dirname task on src.dir and echoing that? If memory serves, when I kick off my its usually from a "root" directory and not a relative one. On Mon, 22 Aug 2011, Ego wrote: Woah, thanks Scot! That's a F

Re: Newbie: task can't find my source files

2011-08-22 Thread Ego
Woah, thanks Scot! That's a FAST reply, and a good one I think. If nothing else, it helped me to rule out some possible causes of error. To answer your question, I intend to collect my buildfiles in a separate folder, sibling to the projects root, and that's the current dir when I fire "ant".

Re: Newbie: task can't find my source files

2011-08-20 Thread Scot P. Floess
Took a quick look through your whole email. I'd suggest, putting this in your compile target:   Obviously, don't use the ellipses ;) Really all I mean is insert the echo statement as I've done above... You'll probably see the problem right away :) It may be you need to insert the

Newbie: task can't find my source files

2011-08-20 Thread Ego
I've read thoroughly the manual and examples but still can't find the reason for this behavior. First, some pointers to state my case. - Environment: Windows XP SP3, Ant 1.8.1, jdk1.6.0_02 - My project builds and run fine from the cmdline, provided that the CLASSPATH env. variable is set. I can