"Morrison, John" wrote:
> 
> Hi All.
> 
> I've been playing with the build file I've been generating on a new project
> and have a question and a new version for people to destroy ;)
> 
> Question/problem.  It was decided to recommend that
> build.dir=${tmp.dir}/${project.name}/build  Which is fine, under Linux
> tmp.dir = /tmp.  Under M$ tmp.dir is also sensible.  Under _cygwin_ however,
> tmp.dir also = /tmp ant then can't resolve /tmp to be a cygwin mount (on my
> system) and builds on the root of which ever drive I'm currently using.
> This is annoying.  But I can't think of a solution.  Ideas?

Under M$, ${tmp.dir} == C:\Temp

Ant is run from the JVM, which has no knowledge of whether it was called from
cygwin or not.  All it knows is that it is on a Windows machine.  This should
be consistent.  The only way around this is to change the "ant" scripts to
call Ant with -Dtmp.dir=/cygdrive/c/cygwin/tmp (assuming cygwin is mounted on
the C drive) or -Dtmp.dir=C:\\Temp.

It's a small change, and tmp.dir is not a JVM property.

> I've extended the build.xml file so that if install.dir _isn't_ defined then
> the system displays a 'can't do' message.  What do people think?

I think a project should define a default install dir that can be overridden
by the user's .ant.properties file.

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

Reply via email to