[xwiki-devs] Packaging application using application manager plugin
Hi, I recently created an application in xwiki. This was set of some classes and its objects. All the classes and objects are created in a space called aeternam. This space also contains some other data (mainly the pages that got created while testing the application). Now I want to select only the needed pages inside this space ie the classes that were created and some configuration objects and package them into a xar file. So that same can be imported in some other instance of xwiki as an application under the space aeternam. I believe application manager plugin would be best way to do this. If there is any other way to do what I just described please let me know that too. So I created a new application called aeternam application. I want to now add the classes and objects pages under aeternam space to it. Is there anyway to do this. When I click the edit link next to the application in application listing page, it does open an edit page, where there is a placeholder to add pages or documents. However, one cannot choose the documents from any link, one has to type it. Now there are many classes and objects I would like to package and it would not be possible for me to remember each document's name. So is there any better way of doing this with or without application manager app. Thanks Sachin ----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Packaging-application-using-application-manager-plugin... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Sachin,
I recently created an application in xwiki.
Great :-) Will you consider publishing it on http://code.xwiki.org/ for the community to enjoy it ?
[snip]
However, one cannot choose the documents from any link, one has to type it. Now there are many classes and objects I would like to package and it would not be possible for me to remember each document's name. So is there any better way of doing this with or without application manager app.
Right now there is no alternative to typing each document name manually... I know how annoying it is, I constantly forgot to add one of the 15 pages I had in the Bulletin Board Application... And I guess it must be the same for you, maybe with even more pages. A good way not to forget any page is to go to the /xwiki/bin/view/Main/AllDocs page and then use the treeview for the aeternam space. Then you can copy all your children docs, paste them in the field, and start removing those that don't interest you. A bit long, but at least you'll forget none of them... Guillaume
On Wed, Jun 4, 2008 at 12:44 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sachin,
I recently created an application in xwiki.
Great :-) Will you consider publishing it on http://code.xwiki.org/ for the community to enjoy it ?
[snip]
However, one cannot choose the documents from any link, one has to type it. Now there are many classes and objects I would like to package and it would not be possible for me to remember each document's name. So is there any better way of doing this with or without application manager app.
Right now there is no alternative to typing each document name manually... I know how annoying it is, I constantly forgot to add one of the 15 pages I had in the Bulletin Board Application... And I guess it must be the same for you, maybe with even more pages.
A good way not to forget any page is to go to the /xwiki/bin/view/Main/AllDocs page and then use the treeview for the aeternam space. Then you can copy all your children docs, paste them in the field, and start removing those that don't interest you. A bit long, but at least you'll forget none of them...
Application Manager also support pattern based on SQL LIKE syntax (see http://www.techonthenet.com/sql/like.php) : - [SpaceName.%] will include all pages in the sapce SpaceName - [%.MyApp%] will include all pages starting with MyApp You can look at Application Manager application descriptor as an example. (I'm adding this documentation in the application manager page.) If you simply need a one shot selective export you can use the groovy script provided by Admin application. See http://code.xwiki.org/xwiki/bin/view/Applications/AdminApplication
Guillaume _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Thank you Thomas and Guillaume for the help. This helped me a lot. Firstly our application is just collection of classes, all the velocity code is written in vm templates, so as to speed the page rendering. Thus this application would work against a specific skin only. Anyway if all goes well then we may be able to launch it as a portal by end of the year. I have some additional queries and would be grateful to you for throwing some light on these: 1. What is the purpose of Dependencies field of the application? 2. What is the difference between Documents, Documents to include and Documents to link fields? What is the purpose of each and how to decide which document goes in which placeholder. 3. What is the purpose of Applications field of the application? Regards Sachin Thomas Mortagne wrote:
On Wed, Jun 4, 2008 at 12:44 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sachin,
I recently created an application in xwiki.
Great :-) Will you consider publishing it on http://code.xwiki.org/ for the community to enjoy it ?
[snip]
However, one cannot choose the documents from any link, one has to type it. Now there are many classes and objects I would like to package and it would not be possible for me to remember each document's name. So is there any better way of doing this with or without application manager app.
Right now there is no alternative to typing each document name manually... I know how annoying it is, I constantly forgot to add one of the 15 pages I had in the Bulletin Board Application... And I guess it must be the same for you, maybe with even more pages.
A good way not to forget any page is to go to the /xwiki/bin/view/Main/AllDocs page and then use the treeview for the aeternam space. Then you can copy all your children docs, paste them in the field, and start removing those that don't interest you. A bit long, but at least you'll forget none of them...
Application Manager also support pattern based on SQL LIKE syntax (see http://www.techonthenet.com/sql/like.php) : - [SpaceName.%] will include all pages in the sapce SpaceName - [%.MyApp%] will include all pages starting with MyApp
You can look at Application Manager application descriptor as an example.
(I'm adding this documentation in the application manager page.)
If you simply need a one shot selective export you can use the groovy script provided by Admin application. See http://code.xwiki.org/xwiki/bin/view/Applications/AdminApplication
Guillaume _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Packaging-application-using-application-manager-plugin... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Jun 9, 2008 at 9:33 PM, Sachin Mittal <[email protected]> wrote:
Thank you Thomas and Guillaume for the help. This helped me a lot. Firstly our application is just collection of classes, all the velocity code is written in vm templates, so as to speed the page rendering. Thus this application would work against a specific skin only. Anyway if all goes well then we may be able to launch it as a portal by end of the year.
I have some additional queries and would be grateful to you for throwing some light on these: 1. What is the purpose of Dependencies field of the application?
It contains the plugins your application needs (it is just informationnal as application does not check it yet).
2. What is the difference between Documents, Documents to include and Documents to link fields? What is the purpose of each and how to decide which document goes in which placeholder.
Documents : all the documents your application contains "Documents to include" and "Documents to link" are used only when copying an application or a wiki template (which is considered as a big application by wiki manager) in XEM. you list here which document content will be replace by a #includeInContext("sourcewiki:Space.Page") or #includeTopic("sourcewiki:Space.Page") in place of just copy it.
3. What is the purpose of Applications field of the application?
Application field list all the application your application depends on and is used when you export "Recursively" your application. For all thi,s a good example is XEM which has a top application called "xem" depending on "xapp" (applicatiopn manager) and "wikimanager" (wiki manager). I definitly have to documents all application manager details. Thanks for the remainder ;)
Regards Sachin
Thomas Mortagne wrote:
On Wed, Jun 4, 2008 at 12:44 PM, Guillaume Lerouge <[email protected]> wrote:
Hi Sachin,
I recently created an application in xwiki.
Great :-) Will you consider publishing it on http://code.xwiki.org/ for the community to enjoy it ?
[snip]
However, one cannot choose the documents from any link, one has to type it. Now there are many classes and objects I would like to package and it would not be possible for me to remember each document's name. So is there any better way of doing this with or without application manager app.
Right now there is no alternative to typing each document name manually... I know how annoying it is, I constantly forgot to add one of the 15 pages I had in the Bulletin Board Application... And I guess it must be the same for you, maybe with even more pages.
A good way not to forget any page is to go to the /xwiki/bin/view/Main/AllDocs page and then use the treeview for the aeternam space. Then you can copy all your children docs, paste them in the field, and start removing those that don't interest you. A bit long, but at least you'll forget none of them...
Application Manager also support pattern based on SQL LIKE syntax (see http://www.techonthenet.com/sql/like.php) : - [SpaceName.%] will include all pages in the sapce SpaceName - [%.MyApp%] will include all pages starting with MyApp
You can look at Application Manager application descriptor as an example.
(I'm adding this documentation in the application manager page.)
If you simply need a one shot selective export you can use the groovy script provided by Admin application. See http://code.xwiki.org/xwiki/bin/view/Applications/AdminApplication
Guillaume _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Packaging-application-using-application-manager-plugin... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, Just a quick follow up. I added the syntax [aeternam.%Class%] under both documents and documents to include fields. This did fetch the right documents when I viewed the application. However clicking on export with defaul options created an empty xar file. Anything I am doing wrong or missing something here. Thanks Sachin Thomas Mortagne wrote:
Application Manager also support pattern based on SQL LIKE syntax (see http://www.techonthenet.com/sql/like.php) : - [SpaceName.%] will include all pages in the sapce SpaceName - [%.MyApp%] will include all pages starting with MyApp
You can look at Application Manager application descriptor as an example.
(I'm adding this documentation in the application manager page.)
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Packaging-application-using-application-manager-plugin... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Jun 9, 2008 at 9:42 PM, Sachin Mittal <[email protected]> wrote:
Hi, Just a quick follow up. I added the syntax [aeternam.%Class%] under both documents and documents to include fields. This did fetch the right documents when I viewed the application.
However clicking on export with defaul options created an empty xar file.
Well the descriptor view and export use exactly the same method to resolve the files to export so I don't understand why you have this empty result. Which version of xwiki core and application manager plugin do you use ? Do you have any error in the log ?
Anything I am doing wrong or missing something here.
Thanks Sachin
Thomas Mortagne wrote:
Application Manager also support pattern based on SQL LIKE syntax (see http://www.techonthenet.com/sql/like.php) : - [SpaceName.%] will include all pages in the sapce SpaceName - [%.MyApp%] will include all pages starting with MyApp
You can look at Application Manager application descriptor as an example.
(I'm adding this documentation in the application manager page.)
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Packaging-application-using-application-manager-plugin... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (3)
-
Guillaume Lerouge -
Sachin Mittal -
Thomas Mortagne