> -----Original Message-----
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 18 October 2001 2:13 pm
> To: [EMAIL PROTECTED]
> Subject: Re: Build.xml standardization
>
>
> "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.
Ah. Good idea! Should we suggest this to the ant team or is
somebody from there already monitoring us...?
> > 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.
I was thinking more for the projects which don't install. The mods I made
to the build.xml file mean that, if a install.dir isn't defined *anywhere*
(note it's still in there, just commented out), the build.xml already has
the functionality to say the project can't do an (un)installation.
<shrug/> I thought it was a good idea ;)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other commitment through the use
of this email.
Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]