You might try to compute the dir and hand that value to javac...

For example:

<basename file="${src.dir}" property="basedir.basename"/>
<dirname file="${src.dir}" property="basedir.dir"/>

<javac srcdir="${basedir.dir}/${basedir.basename}" .../>


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:

<basename file="${src.dir}" property="basedir.basename"/>
<dirname file="${src.dir}" property="basedir.dir"/>

<echo>
    dir  = [${basedir.dir}]
    base = [${basedir.basename}]
</echo>

Side notes:

- versose output contains the line
Project base dir set to: D:\Workspaces\Java

- source code for project's main class begins with the line:
package apps.gdv.v1_0_0;

- classes from 'packages' package (yeah, weird naming) begin with:
package packages.(*);

'apps', 'packages' and 'resources' are subfolders of ../modules/src (the base dir) hence the package declarations should be ok.
Or maybe there's something I'm missing just here.


Scot P. Floess             RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
                           http://flossware.sourceforge.net
                           https://github.com/organizations/FlossWare

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to