Luke,
You are right, removing cygwin from my path allowed your script v1.7 to work
as intended.
Why was I able to build with the previous build script? Is it because I
am using Win2k? I even tried building without cygwin in
my path and it still works for me. Here is the output of v1.7 when I have
cygwin on my path and I turn
echo on:
============================================================================
============================
e:\Projects\JBoss\jboss\src\build>build.bat
e:\Projects\JBoss\jboss\src\build>dir | find "Directory" 1>}1{.bat
find: Directory: No such file or directory
e:\Projects\JBoss\jboss\src\build>set quote="
e:\Projects\JBoss\jboss\src\build>echo if %3!==! set quote= 1>directory.bat
e:\Projects\JBoss\jboss\src\build>echo set PWD=%quote%%2 %3 %4 %5 %6 %7 %8
%9 %quote% 1>>directory.b
at
e:\Projects\JBoss\jboss\src\build>call }1{
e:\Projects\JBoss\jboss\src\build>for %a in (}1{ directory) do del %a.bat
e:\Projects\JBoss\jboss\src\build>del }1{.bat
e:\Projects\JBoss\jboss\src\build>del directory.bat
e:\Projects\JBoss\jboss\src\build>set quote=
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar;/cygdrive/
e/Projects/JBoss/jboss/s
rc/build\..\..\lib\jaxp.jar
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar;/cygdrive/
e/Projects/JBoss/jboss/s
rc/build\..\..\lib\jaxp.jar;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..
\lib\xmlbeans.jar
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar;/cygdrive/
e/Projects/JBoss/jboss/s
rc/build\..\..\lib\jaxp.jar;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..
\lib\xmlbeans.jar;/cygdr
ive/e/Projects/JBoss/jboss/src/build\..\..\build\classes
e:\Projects\JBoss\jboss\src\build>set
CP=/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\ant.ja
r;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar;/cygdrive/
e/Projects/JBoss/jboss/s
rc/build\..\..\lib\jaxp.jar;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..
\lib\xmlbeans.jar;/cygdr
ive/e/Projects/JBoss/jboss/src/build\..\..\build\classes;/cygdrive/e/Project
s/JBoss/jboss/src/build\
..\..\lib\javac.jar
e:\Projects\JBoss\jboss\src\build>java -classpath
"/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\
lib\ant.jar;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\lib\parser.jar;
/cygdrive/e/Projects/JBo
ss/jboss/src/build\..\..\lib\jaxp.jar;/cygdrive/e/Projects/JBoss/jboss/src/b
uild\..\..\lib\xmlbeans.
jar;/cygdrive/e/Projects/JBoss/jboss/src/build\..\..\build\classes;/cygdrive
/e/Projects/JBoss/jboss/
src/build\..\..\lib\javac.jar" org.apache.tools.ant.Main
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main
============================================================================
==========================
I think this may have something to do with the find UNIX command working
differently than the DOS one.
I fixed it so v1.7 runs now by making sure that C:\WINNT\SYSTEM32 come
before cygwin in my path. The WINNT find.exe
gets picked up by your script and thus works as designed.
Sorry for all this inconveinence,
;) Marc
*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************
> -----Original Message-----
> From: Luke Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 30, 2001 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: NT Build Script Problems
>
>
>
>
> "Marc T. Calello" wrote:
> >
> > Hey Luke,
> >
>
> Hi Marc,
>
> > > Can you tell me what platform are you running on?
> > I am on Windows 2000.
> >
> > > Can you check which version of ant.jar you are
> > > using?
> > In /jboss/lib I have:
> > -rw-r--r-- 1 mcalello None 449630 Dec 7 09:43 ant.jar
> >
> > > Also, do you have a version of ant on your global classpath, as
> > > this is prepended to the classpath used in the old build script and
> > > might mean that it would work regardless of the change.
> >
> > I do have the older version of ant.jar on my machine, but it is
> not on my
> > classpath.
> > Global ClassPath:
> > CLASSPATH = CLASSPATH='D:\Program
> > Files\JavaSoft\Jaxp1.0.1\jaxp.jar;D:\Program
> > Files\JavaSoft\Jaxp1.0.1\parser.jar;'
> >
>
> Shouldn't be a problem then - I'm confused as to why the previous build
> script worked though ... It stopped working for me some time ago, when
> the version of ant changed. And the problem is caused by a recognised
> change to the way ant behaves - it can no longer handle relative paths,
> so it's not a platform issue.
>
> > Luke, the thing that caught my eye with build.bat_v1.6 was that
> it was using
> > 'PWD'. I have cygwin installed on
> > my machine, which emulates a UNIX shell. So PWD returns,
> > /cygdrive/e/Projects/JBoss/jboss/src/build, then that
> > was appended with backslashes...so to me the paths looked like
> they couldn't
> > work.
> >
>
> It doesn't execute the command 'pwd' anywhere - it just sets an
> environment variable called "PWD" to contain the current directory. The
> name is arbitrary. There is no easy way to do this in windows (unless
> you have cygwin or something installed, which can't be relied on), so
> it resorts to trickery and makes use of the text output by the "dir"
> command which tells you the directory it is being run from.
>
> Have you tried it with the cygwin directory removed from your path as
> this would obviously clear up whether that has anything to do with the
> problem. Or it may be a windows2000 thing.
>
> Luke.
>
>
>
> --
> Luke Taylor.
> PGP Key ID: 0x57E9523C
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]