You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Martin van den Bemt <mv...@mvdb.com> on 2001/01/20 13:47:02 UTC

[FIX] w2k (maby nt4) ant.bat and build.bat

Hi,

This time a real fix for all you win2k users (don't have winnt 4 anymore,
but I think it could work,).

What I did :

(build.bat)
- get the first parameter value and put it in a tmp file
- use for to analyze if there is -D option available (this is a little bit
dangerous if i use -Dummy option as a cmdline option advice : don't do that
;-))
- if the first token is - we have an option here and also the second cmd
line parameter is read and stored in the cmdline variable.
- if the first token isn't - than we assume that the commandline parameter
is on it's own (meaning :  no blah=blah option).

- it calls ant.bat with the collected values
- ant.bat does the same with his parameters and passes the values to ant
itself.

Possible problems :

- calling ant with a blah=blah parameter doesn't get parsed correctly
- Don't pass the cmdline to the ant class with surrounding quotes. As I only
supply values like jars and nothing fancy, I didn't have anything in mind on
how to really test this. If the quotes are necessary for the jvm (or doesn't
hurt ant or the jvm), please put surrounding quotes around it.
- bootstrap.bat doesn't do parsing, since it doesn't get called with any
parameters (although it's looking for it...)


It's still better than not being able to build at all in win2k....


Mvgr,
Martin van den Bemt
mvdb@mvdb.com



Re: [FIX] w2k (maby nt4) ant.bat and build.bat

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Martin van den Bemt" <mv...@mvdb.com>
To: <an...@jakarta.apache.org>
Sent: Sunday, January 21, 2001 4:26 PM
Subject: RE: [FIX] w2k (maby nt4) ant.bat and build.bat


> Does the jvm like -D=1? It's (at least the way I see it) an invalid option
> anyway. -DD=1 should do the trick a assume..
>

I would see it as invalid too. Only there is no error message :-(

Nico



RE: [FIX] w2k (maby nt4) ant.bat and build.bat

Posted by Martin van den Bemt <mv...@mvdb.com>.
Does the jvm like -D=1? It's (at least the way I see it) an invalid option
anyway. -DD=1 should do the trick a assume..

Mvgr,
Martin

-----Original Message-----
From: Nico Seessle [mailto:Nico.Seessle@epost.de]
Sent: Saturday, January 20, 2001 6:51 PM
To: ant-dev@jakarta.apache.org
Subject: Re: [FIX] w2k (maby nt4) ant.bat and build.bat


----- Original Message -----
From: "Martin van den Bemt" <mv...@mvdb.com>
To: <an...@jakarta.apache.org>
Sent: Saturday, January 20, 2001 5:23 PM
Subject: RE: [FIX] w2k (maby nt4) ant.bat and build.bat


> Are you testing on win200 or another version of Miniatursaft Fensters ;-))

Yes, W2K (SP1). But this seems to be a problem inside ant and not in your
.bat.

Nico



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



Re: [FIX] w2k (maby nt4) ant.bat and build.bat

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Martin van den Bemt" <mv...@mvdb.com>
To: <an...@jakarta.apache.org>
Sent: Saturday, January 20, 2001 5:23 PM
Subject: RE: [FIX] w2k (maby nt4) ant.bat and build.bat


> Are you testing on win200 or another version of Miniatursaft Fensters ;-))

Yes, W2K (SP1). But this seems to be a problem inside ant and not in your
.bat.

Nico



RE: [FIX] w2k (maby nt4) ant.bat and build.bat

Posted by Martin van den Bemt <mv...@mvdb.com>.
Much appreciated ;-))
Compiling netbeans in all his glorie is going well ;-))

using this... (tried to get -Dbuildrnumber=mvdb.com (20-01-2001) working,
but too bad... I don't consider it a bug.. Ant thinks I have a target.

D:\work\netbeans\nbbuild>ant -Dbuild.compiler.deprecation=off -Dbuild.compil
er.d
ebug=on -Dbuildnumber=mvdb.com(20-01-2001) all

The only thing I noticed is if you put something between quotes my "parser"
will not work . It gets confused about ""blah"" while comparing. Maby losing
the extra quotes while comparing will fix this...

Are you testing on win200 or another version of Miniatursaft Fensters ;-))
Ich bin ein viertel deutsch, so ich verstehe deutsch ein bisschen ;-))

Mvgr,
Martin van den Bemt (from the Netherlands..)
mvdb@mvdb.com

-----Original Message-----
From: Nico Seessle [mailto:Nico.Seessle@epost.de]
Sent: Saturday, January 20, 2001 3:45 PM
To: ant-dev@jakarta.apache.org
Subject: Re: [FIX] w2k (maby nt4) ant.bat and build.bat


----- Original Message -----
From: "Martin van den Bemt" <mv...@mvdb.com>
To: "Antdev" <an...@jakarta.apache.org>
Sent: Saturday, January 20, 2001 1:47 PM
Subject: [FIX] w2k (maby nt4) ant.bat and build.bat


> Hi,
>
> This time a real fix for all you win2k users (don't have winnt 4 anymore,
> but I think it could work,).
>

Looks better now :-)

Although I have found another funny thing:

D:\temp>ant -verbose -D=1
Ant version 1.3alpha compiled on December 25 2000

D:\temp>ant -D=1 -verbose
Buildfile: build.xml does not exist!
Build failed

I will try to find out what is going on here :-)

Nico



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



Re: [FIX] w2k (maby nt4) ant.bat and build.bat

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message ----- 
From: "Martin van den Bemt" <mv...@mvdb.com>
To: "Antdev" <an...@jakarta.apache.org>
Sent: Saturday, January 20, 2001 1:47 PM
Subject: [FIX] w2k (maby nt4) ant.bat and build.bat 


> Hi,
> 
> This time a real fix for all you win2k users (don't have winnt 4 anymore,
> but I think it could work,).
> 

Looks better now :-) 

Although I have found another funny thing: 

D:\temp>ant -verbose -D=1
Ant version 1.3alpha compiled on December 25 2000

D:\temp>ant -D=1 -verbose
Buildfile: build.xml does not exist!
Build failed

I will try to find out what is going on here :-)

Nico