You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2004/11/16 15:12:30 UTC
Automatic plkugin download (Re: Duplicate code)
Juan Jose Pablos wrote:
> I do not want build site to update any plug-in/skin/theme/newFunkyIcons
> automatically. I want "build site" to do that, no more no less.
>
> If I want to update a plug-in/skin/theme/newFunkyIcons I will call it
> myself, but not forrest.
>
> There is a 1000 reasons for not doing this.
> I am going to explain the last one last week I had fixed the
> OpenOffice/OpenOffice problem, but this automatic mechanism was
> downloading the plug-in from the net and that was broken.
This should not be happening. If you already have the plugin installed
in build/plugins then the plugin infrastructure *does not* download it
again. There is no automatic update functionality. The behaviour you
describe does not happen for me.
Are you cleaning your build directory?
> It is common for users to put forrest running on a cron job to build a
> site every night. This updating feature could break suddenly the process
> without user knowing what is going on...
Not the way it currently workss (no automated downloading of plugins
that are already present). If you update the version of FOrrest running
on the cron job from SVN then you need to do a clean build, this will
delete the plugins directory and force a *one time* download of the new
plugin.
> Let me know is my reasoning is totally wrong.
Your reasoning is 100% correct in my view. But I am totally confused as
to why you are having this problem.
I repeat - Forrest does not download plugins that are already present.
The only time they will try and download them is if they are not already
present. Have you any idea why you are experiencing a different behaviour?
Ross
Re: Automatic plkugin download (Re: Duplicate code)
Posted by Ross Gardler <rg...@apache.org>.
Juan Jose Pablos wrote:
> So is ok if we change this:
>
> cheche@yarel:~/xml/forrest/trunk/plugins$ svn diff build.xml
> Index: build.xml
> ===================================================================
> --- build.xml (revision 71505)
> +++ build.xml (working copy)
> @@ -14,7 +14,7 @@
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
> -<project default="dist" basedir="." name="Forrest build file">
> +<project default="local-deploy" basedir="." name="Forrest build file">
+1 - I should have done that when I added the local-deploy target.
Thanks.
Ross
Re: Automatic plkugin download (Re: Duplicate code)
Posted by Juan Jose Pablos <ch...@che-che.com>.
Ross Gardler wrote:
>
> Are you cleaning your build directory?
>
Yes, I do
>
> Your reasoning is 100% correct in my view. But I am totally confused as
> to why you are having this problem.
>
> I repeat - Forrest does not download plugins that are already present.
> The only time they will try and download them is if they are not already
> present. Have you any idea why you are experiencing a different behaviour?
Yes, I found the error. After a cleand build. I do:
cd plugins
cheche@yarel:~/xml/forrest/trunk/plugins$ ant
Buildfile: build.xml
init:
dist:
[input] Which plugin do you want to package?
OpenOffice.org
[zip] Building zip:
/home/cheche/xml/forrest/trunk/site-author/content/plugins/OpenOffice.org.zip
BUILD SUCCESSFUL
It is using the dist instead of the local-deploy as I was expecting.
Still, This method assumes that the user has write access to
$FORREST_HOME and it is not the case on a multi-user enviroment.
So is ok if we change this:
cheche@yarel:~/xml/forrest/trunk/plugins$ svn diff build.xml
Index: build.xml
===================================================================
--- build.xml (revision 71505)
+++ build.xml (working copy)
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<project default="dist" basedir="." name="Forrest build file">
+<project default="local-deploy" basedir="." name="Forrest build file">
Cheers,
Cheche