>From Ant manual: "When this task executes, it will set the specified
property to the value of the specified file (or directory) up to, but not
including, the last path element."

dirname tasks expects an actual file name, to return the path without the
filename (opposite of the basename task).  Since you are just sending
dirname a directory name, could it be that it is stripping off the last
directory (jboss-seam-2.1.0.SP1), which in your case WOULD be the last path
element?
Brian


On Sat, Jan 10, 2009 at 5:22 AM, Ben Stover <[email protected]> wrote:

> When I define a property with:
>
>  <property name="seam.dir" value="C:/mySeam/jboss-seam-2.1.0.SP1" />
>        <import file="${seam.dir}/build/common.build.xml" />
>
> then everything works fine.
>
> On contrast when I define:
>
>  <dirname property="seam.dir" file="C:\\opt\\Seam\\jboss-seam-2.1.0.SP1" />
>        <import file="${seam.dir}/build/common.build.xml" />
>
> then build/common.build.xml is not found because a different directory is
> taken.
>
> Why?
>
> Ben
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to