cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Noels" <stev...@outerthought.org>
Subject RE: [WARN] Build with 'compile' target fails
Date Fri, 25 Jan 2002 09:10:32 GMT
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:barozzi@nicolaken.com]
> Sent: donderdag 24 januari 2002 20:52
> To: cocoon-dev@xml.apache.org
> Subject: Re: [WARN] Build with 'compile' target fails
>
>
> From: "Piroumian, Konstantin" <KPiroumian@flagship.ru>
>
>
> > 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                 xml-cocoon@nicolaken.com
> These are the days of miracle and wonder...
>           ...so don't cry baby, don't cry...
>                                                   Paul Simon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message