You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Hubertus Groepper <hu...@groepper.com> on 2005/09/13 08:39:07 UTC
Static Export in 1.4
Hi all,
I've been using 1.2.x with the static exporter so far. In 1.4 I
assume this needs to be done with the new usecase framework. However,
I am unsure on how to implement this. There is PARAMETER_EXPORT_PATH
et al. in the PublishingEnvironment, but what/where is the publisher
configuration file? Sorry if this is obvious, didn't have much time
trying 1.4 so far. Also, what method is used behind the scenes to get
the website exported? Cocoon CLI or is this still wget-like?
Thanks!
hubertus
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Static Export in 1.4
Posted by Andreas Hartmann <an...@apache.org>.
Hubertus Groepper wrote:
[...]
> Thanks. It would be cool to have this indeed, but I am afraid it won't
> be me to implement this anytime soon given my current schedule and
> lenya knowledge.
> Will this be a new usecase on its own, called as the
> exit usecase for publishing or should this go into the publish
> usecase...?
It could be part of the publish usecase. Just extend it and
override doExecute():
public class PublishAndExport extends Publish {
...
public void doExecute() {
super.doExecute();
export();
}
}
Another option would be to implement an additional usecase and
call it via the UsecaseInvoker. That would be more flexible, since
the export could be triggered separately. But it would have a separate
transaction and wouldn't be rolled back together with the publish
usecase if an error occurs.
> Where do I call Cocoon CLI and define my params...?
Maybe you could take a look into the CLI implementation and invoke
the crawling / downloading directly (not via a command line exec).
> Boy, I
> am completely unfamiliar with the whole usecase framework at the moment
> :) So for now, I resort to adding the feature request to Bugzilla. Free
> beer in the lovely Bundeshauptstadt Berlin for first one to implement it.
:)
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Static Export in 1.4
Posted by Hubertus Groepper <hu...@groepper.com>.
Am 13.09.2005 um 09:24 schrieb Andreas Hartmann:
> Hubertus Groepper wrote:
>
>> Hi all,
>> I've been using 1.2.x with the static exporter so far. In 1.4 I
>> assume this needs to be done with the new usecase framework.
>> However, I am unsure on how to implement this. There is
>> PARAMETER_EXPORT_PATH et al. in the PublishingEnvironment, but
>> what/where is the publisher configuration file? Sorry if this is
>> obvious, didn't have much time trying 1.4 so far. Also, what
>> method is used behind the scenes to get the website exported?
>> Cocoon CLI or is this still wget-like?
>>
>
> This feature hasn't been implemented in 1.4 yet. You can override the
> Publish usecase and add the functionality, using whatever method
> you want.
> I guess it would be cool to have an "export whole site" usecase as
> well.
>
> The PublishingEnvironment is deprecated, it should proabably be
> removed.
>
> If you need more precise instructions, feel free to ask. Of course it
> would be appreciated if you shared your implementations with the
> community.
>
> -- Andreas
Thanks. It would be cool to have this indeed, but I am afraid it
won't be me to implement this anytime soon given my current schedule
and lenya knowledge. Will this be a new usecase on its own, called as
the exit usecase for publishing or should this go into the publish
usecase...? Where do I call Cocoon CLI and define my params...? Boy,
I am completely unfamiliar with the whole usecase framework at the
moment :) So for now, I resort to adding the feature request to
Bugzilla. Free beer in the lovely Bundeshauptstadt Berlin for first
one to implement it.
hubertus
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Static Export in 1.4
Posted by Andreas Hartmann <an...@apache.org>.
Hubertus Groepper wrote:
> Hi all,
> I've been using 1.2.x with the static exporter so far. In 1.4 I assume
> this needs to be done with the new usecase framework. However, I am
> unsure on how to implement this. There is PARAMETER_EXPORT_PATH et al.
> in the PublishingEnvironment, but what/where is the publisher
> configuration file? Sorry if this is obvious, didn't have much time
> trying 1.4 so far. Also, what method is used behind the scenes to get
> the website exported? Cocoon CLI or is this still wget-like?
This feature hasn't been implemented in 1.4 yet. You can override the
Publish usecase and add the functionality, using whatever method you want.
I guess it would be cool to have an "export whole site" usecase as well.
The PublishingEnvironment is deprecated, it should proabably be removed.
If you need more precise instructions, feel free to ask. Of course it
would be appreciated if you shared your implementations with the community.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org