I have Ant 1.4.1 installed on my machine (W2K, JDK1.3.1):

C:\>ant -version
Ant version 1.4.1 compiled on October 11 2001

I was only able to get build.bat up & running when un-setting my
systemwide ANT_HOME environment variable so that the following lines in
the build.bat file could do their work:

if not "%ANT_HOME%" == "" goto gotAntHome
set ANT_HOME=tools
:gotAntHome

When ANT_HOME remains set to the system-wide setting, build.bat fails
when compiling the JTidy Helper class because it can't import jtidy.jar.

Why should ANT_HOME be set to the cocoon tools directory?

</Steven>

> -----Original Message-----
> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 24 januari 2002 20:52
> To: [EMAIL PROTECTED]
> Subject: Re: [WARN] Build with 'compile' target fails
>
>
> From: "Piroumian, Konstantin" <[EMAIL PROTECTED]>
>
>
> > Something's went wrong in the latest updates. Build
> 'compile' fails with:
> >
> >      [echo] Building with Ant version 1.4.1 compiled on
> October 11 2001
> >      [echo] using build file
> D:\Java\repository\xml-cocoon2\build.xml
> >      [echo]
> --------------------------------------------------------------
> >     [javac] Compiling 1 source file to
> > D:\Java\repository\xml-cocoon2\tools\anttasks
> >     [javac]
> D:\Java\repository\xml-cocoon2\tools\src\JTidyTask.java:31:
> > Class org.w3c.tidy.Tidy not found in import.
> >     [javac] import org.w3c.tidy.Tidy;
> >     [javac]        ^
> >     [javac] 1 error
>
> All builds work correctly if you use build.sh or build.bat in
> root cocoon
> dir.
> In fact, in one of the latest updates, new targets were added with new
> tasks, and of these, JTidyTask, uses jTidy, as the stacktrace clearly
> indicates. JTidy jar is copied in the tools/lib dir with
> xerces and xalan
> now:
> (build.bat)...
> copy lib\optional\jtidy*.jar tools\lib
> ...
>
> If you use build.xml directy just copy the jTidy jar in tools/lib from
> lib/optional and all should compile.
>
> --
> Nicola Ken Barozzi                 [EMAIL PROTECTED]
> These are the days of miracle and wonder...
>           ...so don't cry baby, don't cry...
>                                                   Paul Simon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

Reply via email to