Are you running on windows?  Testing on windows I do
see the same problem, but it appears to me that
directories with trailing spaces are clipped at the OS
level. Nothing we can do here... if you or anyone else
has a nice idea of where in the manual we could make
mention of this little tidbit that's great.

Thanks,
Matt

--- glenn opdycke-hansen <[EMAIL PROTECTED]> wrote:

> Ant script to recreate problem is attached.
> > <project name="jar-filespec-prob"
> default="create-jar-basedir-space">
> 
> <!-- root dir of files to be jarred -->
> <property name="jar.root.dir" value="jar-root"/>
> 
> <!-- recreate the jar root directory -->
> <delete dir="${jar.root.dir}"/>
> <mkdir dir="${jar.root.dir}"/>
> 
> <!-- nb root dir with appended space in dir name 
> -->
> <property name="jar.root.dir.space" value="jar-root
> "/>
> 
> <property name="out.dir" value="output"/>
> <property name="out.jar" value="out.jar"/>
> <property name="out1.jar" value="out1.jar"/>
> <property name="out2.jar" value="out2.jar"/>
> 
> <!--
>
======================================================
>      target create-jar-basedir-space
>  -->
> <target name="create-jar-basedir-space">
> 
> <available property="jar.root.dir.exists"
>   file="${jar.root.dir}" type="dir"/>
> 
> <available property="jar.root.dir.dir1.exists"
>   file="${jar.root.dir}/dir1" type="dir"/>
> 
> <echo>
> jar.root.dir.exists=${jar.root.dir.exists}
> jar.root.dir.dir1.exists=${jar.root.dir.dir1.exists}
> 
> jar destfile="${out.dir}/${out1.jar}"
>   basedir="${jar.root.dir}"
> </echo>
> 
> <jar destfile="${out.dir}/${out1.jar}"
>   basedir="${jar.root.dir}">
> </jar>
> 
> <available property="jar.root.dir.space.exists"
>   file="${jar.root.dir.space}" type="dir"/>
> 
> <available property="jar.root.dir.space.dir1.exists"
>   file="${jar.root.dir.space}/dir1" type="dir"/>
> 
> <available property="jar.root.dir.space.dot.exists"
>   file="${jar.root.dir.space}/." type="dir"/>
> 
> <echo>
> 
>
jar.root.dir.space.exists=${jar.root.dir.space.exists}
>
jar.root.dir.space.dot.exists=${jar.root.dir.space.dot.exists}
>
jar.root.dir.space.dir1.exists=${jar.root.dir.space.dir1.exists}
> jar destfile="${out.dir}/${out2.jar}"
>   basedir="${jar.root.dir.space}"
> 
> </echo>
> 
> <jar destfile="${out.dir}/${out2.jar}"
>   basedir="${jar.root.dir.space}">
> </jar>
> 
> </target>
> 
> </project>
> 
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to