You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Nicola Ken Barozzi <ba...@nicolaken.com> on 2002/02/25 10:04:35 UTC
Krysalis Centipede 0.2 ready
Ok, so I did a release of latest changes to Centipede.
It gives you Ant and Cocoon, along with basic targets, structured build
file, interactive build and a project-info.xml file that contains all basic
project information.
- Major refactoring of tools structure to make upgrades to Centipede, Ant
and Cocoon tools easier.
- Added a project-info.xml file to group all basic info of the project in
one file; an Ant task puts this information in Ant as properties
automatically.
- Added izpress Ant task to compress html.
- Upgraded Cocoon to latest CVS version; now it uses the new TreeProcessor
and JispStore by default.
Fast HOWTO:
- modify project-info.xml
- put the right stuff in the right dirs:
- java source in src/java
- documentation in src/documentation
- libs in /lib (core or optional)
- other libs are easy to understand (I hope ;-)
- run build.bat or build.sh
Just one note: the /tools dir is not intended to be modified directly, so
that easy upgrade can be done there by simple dir substitution.
Which in fact means that all modifications done there will go in the next
versions of Centipede ;-)
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Krysalis Centipede 0.2 ready
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
----- Original Message -----
From: "Ugo Cei" <u....@cbim.it>
To: <fo...@xml.apache.org>
Sent: Monday, February 25, 2002 6:09 PM
Subject: Re: Krysalis Centipede 0.2 ready
> Nicola Ken Barozzi wrote:
>
> > This problem comes from the fact that all jars in ./tools/centipede/lib/
> > must be in the classpath.
> > Usually they are placed in ant/lib and that's all, but to make ant
upgrade
> > easier, I put them in another dir.
> >
> > build.bat puts these jars in the classpath, and it works.
> > I tried to do the same with build.sh, and it works on my machine, but
mind
> > me, I have W200 and cygwin, and don't know if paths are treated
consistently
> > with Linux in Cygwin.
>
> Paths in Unix use a colon as separator, not a semicolon. Change the line
> that sets the CLASSPATH to:
>
>
CLASSPATH="./tools/centipede/lib/xml-apis.jar:./tools/centipede/lib/xerces.j
ar:./tools/centipede/lib/xalan.jar:./tools/centipede/lib/junit.jar:./tools/c
entipede/lib/jIzPress.jar:./tools/centipede/lib/jtidy.jar"
>
> It compiles now.
:-) Thanks.
Gee, I thought I put commas there, AFAIK they should work too, but
semicolons got in.
Thank you very much, patch applied to CVS :-)
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Krysalis Centipede 0.2 ready
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
> This problem comes from the fact that all jars in ./tools/centipede/lib/
> must be in the classpath.
> Usually they are placed in ant/lib and that's all, but to make ant upgrade
> easier, I put them in another dir.
>
> build.bat puts these jars in the classpath, and it works.
> I tried to do the same with build.sh, and it works on my machine, but mind
> me, I have W200 and cygwin, and don't know if paths are treated consistently
> with Linux in Cygwin.
Paths in Unix use a colon as separator, not a semicolon. Change the line
that sets the CLASSPATH to:
CLASSPATH="./tools/centipede/lib/xml-apis.jar:./tools/centipede/lib/xerces.jar:./tools/centipede/lib/xalan.jar:./tools/centipede/lib/junit.jar:./tools/centipede/lib/jIzPress.jar:./tools/centipede/lib/jtidy.jar"
It compiles now.
Ugo
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
Re: Krysalis Centipede 0.2 ready
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
----- Original Message -----
From: "Ugo Cei" <u....@cbim.it>
> Since you're using JDK 1.4...
>
> $ ./build.sh
> Buildfile: build.xml
>
> init:
>
[echo] --------------------------------------------------------------
> [echo] Setting up customized ant tasks...
> [echo] ... done.
>
[echo] --------------------------------------------------------------
> [echo] Krysalis Centipede [2002]
>
> ...
>
> [user-input] Please select a target [compile]
> compile
>
> BUILD FAILED
>
> java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
> at JTidyTask.init(JTidyTask.java:70)
>
> this is using:
>
> java version "1.4.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
> Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
>
> under RedHat Linux 7.1.
This problem comes from the fact that all jars in ./tools/centipede/lib/
must be in the classpath.
Usually they are placed in ant/lib and that's all, but to make ant upgrade
easier, I put them in another dir.
build.bat puts these jars in the classpath, and it works.
I tried to do the same with build.sh, and it works on my machine, but mind
me, I have W200 and cygwin, and don't know if paths are treated consistently
with Linux in Cygwin.
All I know is that if I "cd" in the directory of build.sh and execute it, it
works on my machine; unfortunately, I don't have a Linux box at hand to
debug it.
Please look in build.sh and see if you can fix it, it would be great!
Thank you :-)
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Krysalis Centipede 0.2 ready
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
>>It looks like they are there, but now:
>>
>>$ ./build.sh
>>Buildfile: build.xml
>>
>>BUILD FAILED
>>
>>Unable to instantiate listener org.apache.tools.ant.XmlLogger
>>
>
> Hmmm... on my machine W2000, latest Cygwin, JDK1.4 it works...
>
> It seems that ant-optional.jar is not in the classpath.
Since you're using JDK 1.4...
$ ./build.sh
Buildfile: build.xml
init:
[echo] --------------------------------------------------------------
[echo] Setting up customized ant tasks...
[echo] ... done.
[echo] --------------------------------------------------------------
[echo] Krysalis Centipede [2002]
...
[user-input] Please select a target [compile]
compile
BUILD FAILED
java.lang.NoClassDefFoundError: org/w3c/tidy/Tidy
at JTidyTask.init(JTidyTask.java:70)
this is using:
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
under RedHat Linux 7.1.
Ugo
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
Re: Krysalis Centipede 0.2 ready
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
----- Original Message -----
From: "Ugo Cei" <u....@cbim.it>
To: <fo...@xml.apache.org>
Sent: Monday, February 25, 2002 11:51 AM
Subject: Re: Krysalis Centipede 0.2 ready
> It looks like they are there, but now:
>
> $ ./build.sh
> Buildfile: build.xml
>
> BUILD FAILED
>
> Unable to instantiate listener org.apache.tools.ant.XmlLogger
Hmmm... on my machine W2000, latest Cygwin, JDK1.4 it works...
It seems that ant-optional.jar is not in the classpath.
Can some *nix use please check this?
Thanks
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Krysalis Centipede 0.2 ready
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
> Oops, copy-paste of cvs dirs made me think they were there, but only
> locally. :-/
> Committed them now, they *should* be there (hope never dies ;-)
> Thanks.
It looks like they are there, but now:
$ ./build.sh
Buildfile: build.xml
BUILD FAILED
Unable to instantiate listener org.apache.tools.ant.XmlLogger
Total time: 0 seconds
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
Re: Krysalis Centipede 0.2 ready
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
----- Original Message -----
From: "Ugo Cei" <u....@cbim.it>
To: <fo...@xml.apache.org>
Sent: Monday, February 25, 2002 11:29 AM
Subject: Re: Krysalis Centipede 0.2 ready
> Nicola Ken Barozzi wrote:
>
> > They are already there, please get them from CVS.
>
> Are they? CVS does not find them at the moment.
>
Oops, copy-paste of cvs dirs made me think they were there, but only
locally. :-/
Committed them now, they *should* be there (hope never dies ;-)
Thanks.
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Krysalis Centipede 0.2 ready
Posted by Ugo Cei <u....@cbim.it>.
Nicola Ken Barozzi wrote:
> They are already there, please get them from CVS.
Are they? CVS does not find them at the moment.
Ugo
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
Re: Krysalis Centipede 0.2 ready
Posted by Nicola Ken Barozzi <ba...@nicolaken.com>.
From: "Steven Noels" <st...@outerthought.org>
> Nicola,
>
> I just downloaded it and am kind of getting acquainted with it (lots of
> changes indeed).
:-)
> There's reference to two external build-files in build.xml:
>
> <!-- ================= Main project targets and info
> ================ -->
> <!ENTITY project-target SYSTEM "./src/targets/project.xtarget">
> <!ENTITY interactive-target SYSTEM "./src/targets/interactive.xtarget">
> <!--
> =================================================================== -->
>
> I would suggest to set up some placeholder targets in these dirs.
Aaaarg, made an error in dist! :-/
They are already there, please get them from CVS.
> Furthermore, the DTD's are still 'version' 1.0 instead of the 1.1 in
> forrest-cvs.
Yup, this is when forrest comes in ;-)
> I must say I didn't believe at first that the documentation was
> generated using Cocoon - it was simply too fast :-)
:-) I tweaked the parameters so now the speed is 3 times faster than first
version.
--
Nicola Ken Barozzi barozzi@nicolaken.com
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
RE: Krysalis Centipede 0.2 ready
Posted by Steven Noels <st...@outerthought.org>.
Nicola,
I just downloaded it and am kind of getting acquainted with it (lots of
changes indeed).
>
> Ok, so I did a release of latest changes to Centipede.
>
> It gives you Ant and Cocoon, along with basic targets,
> structured build
> file, interactive build and a project-info.xml file that
> contains all basic
> project information.
>
> - Major refactoring of tools structure to make upgrades to
> Centipede, Ant
> and Cocoon tools easier.
> - Added a project-info.xml file to group all basic info of
> the project in
> one file; an Ant task puts this information in Ant as properties
> automatically.
> - Added izpress Ant task to compress html.
> - Upgraded Cocoon to latest CVS version; now it uses the new
> TreeProcessor
> and JispStore by default.
cool!
> Fast HOWTO:
> - modify project-info.xml
> - put the right stuff in the right dirs:
> - java source in src/java
> - documentation in src/documentation
> - libs in /lib (core or optional)
> - other libs are easy to understand (I hope ;-)
> - run build.bat or build.sh
There's reference to two external build-files in build.xml:
<!-- ================= Main project targets and info
================ -->
<!ENTITY project-target SYSTEM "./src/targets/project.xtarget">
<!ENTITY interactive-target SYSTEM "./src/targets/interactive.xtarget">
<!--
=================================================================== -->
I would suggest to set up some placeholder targets in these dirs.
Furthermore, the DTD's are still 'version' 1.0 instead of the 1.1 in
forrest-cvs.
> Just one note: the /tools dir is not intended to be modified
> directly, so
> that easy upgrade can be done there by simple dir substitution.
> Which in fact means that all modifications done there will go
> in the next
> versions of Centipede ;-)
Got that ;-)
I must say I didn't believe at first that the documentation was
generated using Cocoon - it was simply too fast :-)
OK, I'll have to look into it, thanks for a great starter.
</Steven>