You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2005/03/09 02:56:46 UTC

getting rid of INFO messages during build

i did a little test and removed all <echo> statements from the build 
files. my build time for a clean build went from 1min to 35s.

it turns out that the target names indicate enough information. 
interested parties who want to learn how the build works take a look in 
the build file itself. i have preserved these messages as xml comments 
in the build file where appropriate. here is the complete output:

C:\src\lenya-1.2>build
Buildfile: build.xml

init:
------------------- Apache Lenya 1.2.3-dev [1999-2004] ----------------
Building with Apache Ant version 1.6.2 compiled on July 16 2004
Using build file C:\src\lenya-1.2\build.xml

prepare-cocoon:
Copying 174 files to C:\src\lenya-1.2\build\lenya\webapp
Processing C:\src\cocoon-2.1\build\webapp\WEB-INF\cocoon.xconf to 
C:\src\lenya-
.2\build\lenya\webapp\WEB-INF\cocoon.xconf
Loading stylesheet C:\src\lenya-1.2\src\webapp\WEB-INF\cocoon-xconf.xsl
Processing C:\src\cocoon-2.1\build\webapp\WEB-INF\logkit.xconf to 
C:\src\lenya-
.2\build\lenya\webapp\WEB-INF\logkit.xconf
Loading stylesheet C:\src\lenya-1.2\src\webapp\WEB-INF\logkit-xconf.xsl
Copying 1 file to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF
Processing C:\src\cocoon-2.1\build\webapp\WEB-INF\web.xml to 
C:\src\lenya-1.2\b
ild\lenya\webapp\WEB-INF\web.xml
Loading stylesheet C:\src\lenya-1.2\src\webapp\WEB-INF\web-xml.xsl

build-custom-tasks:
Created dir: C:\src\lenya-1.2\build\lenya\tools\anttasks
Compiling 49 source files to C:\src\lenya-1.2\build\lenya\tools\anttasks

prepare-src:
Copying 415 files to C:\src\lenya-1.2\build\lenya\src
Copying 1 directories to C:\src\lenya-1.2\build\lenya\src
Copying 3 files to C:\src\lenya-1.2\build\lenya\src

compile:
Created dir: C:\src\lenya-1.2\build\lenya\classes
Compiling 410 source files to C:\src\lenya-1.2\build\lenya\classes

webapp:
Copying 877 files to C:\src\lenya-1.2\build\lenya\webapp
Excludes CVS,.svn
Copying 90 directories to C:\src\lenya-1.2\build\lenya\webapp\lenya\pubs
Copying 253 files to C:\src\lenya-1.2\build\lenya\webapp\lenya\pubs
Copying 1 file to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF
Deleting: C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch
Copying 1 file to C:\src\lenya-1.2\src\targets
Copying 445 files to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\classes
Copying 2 files to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\classes
Copying 4 files to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\classes
Copying 1 file to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\classes
Copying 1 file to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\classes
Created dir: C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\logs
Copying 16 files to C:\src\lenya-1.2\build\lenya\webapp\WEB-INF\lib

successfully-built-message-jetty:
*****************************************************************
*
* You have successfully built Apache Lenya 1.2.3-dev based on
*
*      Cocoon (../cocoon-2.1)
*
* Start using Apache Lenya with Jetty by typing
*      Linux/UNIX: ./lenya.sh servlet
*      Windows:      lenya
*
* and browse to
*      http://127.0.0.1:8888
*
* Thanks for using Apache Lenya
*
*****************************************************************

BUILD SUCCESSFUL
Total time: 35 seconds

C:\src\lenya-1.2>

any objections to checking this in?

on a seperate note, i like the success message.

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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


Re: getting rid of INFO messages during build

Posted by Andreas Hartmann <an...@apache.org>.
Gregor J. Rothfuss wrote:
> i did a little test and removed all <echo> statements from the build 
> files. my build time for a clean build went from 1min to 35s.

Cool, thanks a lot

-- Andreas


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


Re: getting rid of INFO messages during build

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael Wechner wrote:
> Gregor J. Rothfuss wrote:
> 
>>
>> do you agree to turn the info statements into xsl comments?
> 
> 
> 
> I don't fully understand to be honest. Can you explain a bit more?

ever line that is now <echo>INFO something in the build files will 
become <!-- something

this gets rid of the clutter during build (which scrolls by too fast 
anyway), and speeds up the build.

information about what is going on in the build is preserved in the 
build file.

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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


Re: getting rid of INFO messages during build

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote:

>
> do you agree to turn the info statements into xsl comments?


I don't fully understand to be honest. Can you explain a bit more?

Thanks

Michi

>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


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


Re: getting rid of INFO messages during build

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael Wechner wrote:
> Gregor J. Rothfuss wrote:
> 
>>
>> any objections to checking this in?
> 
> 
> 
> -1 because it really helps to make modifications
> 
> I am 0 for commenting them but I am definitely -1 for removing them.

i was not specific enough. the source looks like this:

     <!-- Copy publications -->
     <copyPubs todir="${build.webapp}/lenya/pubs" 
pubsrootdirs="${pubs.root.dirs}" excludes="CVS,.svn">

so the intent is still clear if you look at the build files (agreed that 
this is very useful)

do you agree to turn the info statements into xsl comments?


-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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


Re: getting rid of INFO messages during build

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael Wechner wrote:

> The best solution of course would be something like log4j, whereas it comes
> to my mind that this wouldn't be very hard to do, we could just write a 
> simple logtask,

not necessary. if you ever need to be verbose, do build -v > log.txt

-- 
Gregor J. Rothfuss
COO, Wyona       Content Management Solutions    http://wyona.com
Apache Lenya                              http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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


Re: getting rid of INFO messages during build

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote: 

>
> any objections to checking this in?


-1 because it really helps to make modifications

I am 0 for commenting them but I am definitely -1 for removing them.

The best solution of course would be something like log4j, whereas it comes
to my mind that this wouldn't be very hard to do, we could just write a 
simple logtask,
e.g.

<log level="info">Hello World!</log>

Doesn't something like this exist already?

Michi


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


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