You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Juan Jose Pablos <ch...@che-che.com> on 2004/01/21 10:39:15 UTC

[VOTE] Keeping build layout more consistency

Hi,

I have noticed this

on xml-forrest:
tools/ant
tools/jetty

but when you create the build:

xml-forrest:
build/ant
build/jetty


Can this be moved to:

build/tools/ant
build/tools/jetty


Cheers,
Cheche


Re: [VOTE] Keeping build layout more consistency

Posted by Juan Jose Pablos <ch...@che-che.com>.
Nicola Ken Barozzi wrote:
> Juan Jose Pablos wrote:
> 
> ...
> 
>> Sorry if I was not very clear:
>>
>> move outpur dir:
>>
>> build/ant     --->         build/tools/ant
>> build/jetty     --->        build/tools/jetty
> 
> 
> Well, this is still not quite right, as we don't have build/ant and 
> build/jetty.
> 
> What we have is that mainly
> 
>   src/core -> build/dist/shbat
> 
> except mainly for
> 
>   tools/ant      ->  build/dist/shbat/ant
>   tools/jetty    ->  build/dist/shbat/jetty
> 
>   lib/**         ->  build/dist/shbat/lib/**
>   part of lib/**
>   + forrest jar   -> build/dist/shbat/context/WEB-INF/lib
> 


There is as well:

build/dist/shbat/tasks

Is there any reason of why a .java file is copied to the build directory?

Cheers,
Cheche


Re: [VOTE] Keeping build layout more consistency

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Juan Jose Pablos wrote:

> Nicola Ken Barozzi wrote:
> 
>>
>> What we have is that mainly
>>
>>   src/core -> build/dist/shbat
> 
> Is there a reason for this change?

You mean for this copying? Yes, because we need to add the libs in teh 
WEB-INF dir and supply the forrest jar and we ned to filter the 
cocoon.xconf.

> Would it be posible to have FORREST_HOME pointed to xml-forrest/src/core 
> instead of xml-forrest/build/dist/shbat

That's the goal, see above for the main issues remaining.

>> As for the libraries, we should do two things:
>>
>>  1 - use autodownload in a repository, so that both xml-forrest and
>>      the dist can use them from the same repository (ie no copying)
> 
> I know, I think maven can help with this right?

No need to change buildtool just for this. We can use Apache Incubator 
Depot Ruper that works with the same repository and more.

>>  2 - make jetty not need to have the libraries in the WEB-INF/lib
>>      dir, so that we don't need necessarily to copy them there
> 
> I will add a bug, so we do not forget things...

+1

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: [VOTE] Keeping build layout more consistency

Posted by Juan Jose Pablos <ch...@che-che.com>.
Nicola Ken Barozzi wrote:
> 
> What we have is that mainly
> 
>   src/core -> build/dist/shbat
> 

Is there a reason for this change?


Would it be posible to have FORREST_HOME pointed to xml-forrest/src/core 
instead of xml-forrest/build/dist/shbat
> As for the libraries, we should do two things:
> 
>  1 - use autodownload in a repository, so that both xml-forrest and
>      the dist can use them from the same repository (ie no copying)

I know, I think maven can help with this right?

>  2 - make jetty not need to have the libraries in the WEB-INF/lib
>      dir, so that we don't need necessarily to copy them there
> 


I will add a bug, so we do not forget things...

Cheers,
Cheche


Re: [VOTE] Keeping build layout more consistency

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Juan Jose Pablos wrote:

...
> Sorry if I was not very clear:
> 
> move outpur dir:
> 
> build/ant     --->         build/tools/ant
> build/jetty     --->        build/tools/jetty

Well, this is still not quite right, as we don't have build/ant and 
build/jetty.

What we have is that mainly

   src/core -> build/dist/shbat

except mainly for

   tools/ant      ->  build/dist/shbat/ant
   tools/jetty    ->  build/dist/shbat/jetty

   lib/**         ->  build/dist/shbat/lib/**
   part of lib/**
   + forrest jar   -> build/dist/shbat/context/WEB-INF/lib

For consistency we would need to do:

   src/core/tools/**  -> build/dist/shbat/tools/**

but since we have other tools that use it it's ok to go with

   tools/**           -> build/dist/shbat/tools/**

+1 to that, go ahead and do it.

As for the libraries, we should do two things:

  1 - use autodownload in a repository, so that both xml-forrest and
      the dist can use them from the same repository (ie no copying)
  2 - make jetty not need to have the libraries in the WEB-INF/lib
      dir, so that we don't need necessarily to copy them there

I am on number 1, but on number 2 I tried once but couldn't get it to 
work. If others can do it, it would be very much appreciated.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: [VOTE] Keeping build layout more consistency

Posted by Juan Jose Pablos <ch...@che-che.com>.
Antonio Gallardo wrote:
> Juan Jose Pablos dijo:
> 
>>Hi,
>>
>>I have noticed this
>>
>>on xml-forrest:
>>tools/ant
>>tools/jetty
>>
>>but when you create the build:
>>
>>xml-forrest:
>>build/ant
>>build/jetty
>>
>>
>>Can this be moved to:
>>
>>build/tools/ant
>>build/tools/jetty
> 
> 
> Not sure, but the files are copied because are part of the distribution.
> AFAIK, the idea of the "build/" dir is an output directory. (Based on the
> Cocoon project).
> 
> Best Regards,
> 
> Antonio Gallardo

Sorry if I was not very clear:

move outpur dir:

build/ant 	---> 		build/tools/ant
build/jetty 	--->		build/tools/jetty



Thanks Antonio!


Re: [VOTE] Keeping build layout more consistency

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Juan Jose Pablos dijo:
> Hi,
>
> I have noticed this
>
> on xml-forrest:
> tools/ant
> tools/jetty
>
> but when you create the build:
>
> xml-forrest:
> build/ant
> build/jetty
>
>
> Can this be moved to:
>
> build/tools/ant
> build/tools/jetty

Not sure, but the files are copied because are part of the distribution.
AFAIK, the idea of the "build/" dir is an output directory. (Based on the
Cocoon project).

Best Regards,

Antonio Gallardo