ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: error msg for incorrect jar/basedir value
Date Mon, 16 Jan 2006 18:07:04 GMT
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 <glennoph@gmail.com> 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:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
user-help@ant.apache.org


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

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


Mime
View raw message