[xwiki-users] Custom Xar
Hi everyone, First of all :-), I'm using XE 1.8.1 . I have created news panels in order to do my "own" xwiki. In order not to recreate these panels, I wanted to create a xar which contains a single folder (Panels) containing the page relating to my new panels and a file : package.xml. My problem is : when I use the function Import in my XE to export my "customised" xar, it uploads the file (.xar) but I can't really add it in Xwiki. Does anyone see the reason ? Thanks in advance, Hesediel. -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2669458.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Morning everyone, I reply to my own post in order to up it. This is a real problem. Does anyone try to Import a customsie xar ? By customise xar, I mean a war containing : * A folder (a space) containing : ** Several Files/Pages like for example, Panels.MyPanel * A package.xml like this : <?xml version="1.0" encoding="ISO-8859-1" ?> <package> <infos> <name>Panels</name> <description></description> <licence /> <author>You :)</author> <version>1.0</version> <backupPack>false</backupPack> <preserveVersion>false</preserveVersion> </infos> <files> <file defaultAction="0" language="">Panels.MyPanel1</file> <file defaultAction="0" language="">Panels.MyPanel2</file> <file defaultAction="0" language="">Panels.MyPanel3</file> </files> </package> -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2675033.html Sent from the XWiki- Users mailing list archive at Nabble.com.
This feature works fine AFAIK. We use it all the time for our applications (which are a set of xml pages). I believe the problem is in your XAR somewhere. You could compare with one of the application XAR we distribute. Thanks -Vincent PS: Haven't checked the validity of your package.xml file. On Apr 22, 2009, at 11:08 AM, Hesediel wrote:
Morning everyone,
I reply to my own post in order to up it. This is a real problem. Does anyone try to Import a customsie xar ?
By customise xar, I mean a war containing : * A folder (a space) containing : ** Several Files/Pages like for example, Panels.MyPanel
* A package.xml like this : <?xml version="1.0" encoding="ISO-8859-1" ?> <package> <infos> <name>Panels</name> <description></description> <licence /> <author>You :)</author> <version>1.0</version> <backupPack>false</backupPack> <preserveVersion>false</preserveVersion> </infos> <files> <file defaultAction="0" language="">Panels.MyPanel1</file> <file defaultAction="0" language="">Panels.MyPanel2</file> <file defaultAction="0" language="">Panels.MyPanel3</file> </files> </package>
Re Vincent :-), I've just compared my Xar and one of the application Xar you distribute. The onyl difference is : <preserveVersion>true</preserveVersion> (in mine, it's set to false). But I think it's not the core of the problem. Like I said, I success in uploading the xar file but I can't deploy it : When I click of the name of the uploaded xar (displayed on the table under Files available to import), nothing is displayed. So i can't reach the Import button. -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2675114.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Ok so, I found the thing causing me troubles : the accents like é, è and co.... Some of my pages containing in their name accents. When I remove this pages from my xar, I was able to upload my xar in Xwiki. What I mean by that is, when I click on the name of my xar in the table under Available files to import, it shows me the content of my xar in Available documents to import (and so I'm able to click on the button Import. The strange thing is : Xwiki don't say anything when I upload a "basic" xar containing a full backup of my installation (so containing pages with accents). I've compared lines concerning the pages with accents in my package.xml file to these containing the page with accents in the package.xml generated by Xwiki and it's the SAME. Thanks in advance, Hesediel. -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2677046.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hesediel wrote:
Ok so, I found the thing causing me troubles : the accents like é, è and co....
Some of my pages containing in their name accents. When I remove this pages from my xar, I was able to upload my xar in Xwiki. What I mean by that is, when I click on the name of my xar in the table under Available files to import, it shows me the content of my xar in Available documents to import (and so I'm able to click on the button Import.
The strange thing is : Xwiki don't say anything when I upload a "basic" xar containing a full backup of my installation (so containing pages with accents). I've compared lines concerning the pages with accents in my package.xml file to these containing the page with accents in the package.xml generated by Xwiki and it's the SAME.
Thanks in advance,
Hesediel.
Any errors in the logs? Could you check the encoding specified in the package.xml file? -- Sergiu Dumitriu http://purl.org/net/sergiu/
Morning Sergiu, I've just check the logs to see if there are errors. I've got this error when I tried to import my xar containing pages with accents :java.lang.IllegalArgumentException. The encoding specified in the package.xml is the same specified in yours : <?xml version="1.0" encoding="ISO-8859-1" ?> -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2681406.html Sent from the XWiki- Users mailing list archive at Nabble.com.
It must be the program I use in order to compress my files. I've tried with : * Winrar 3.80. * Winzip 8.0. And I didn't work. Which programs do you use in order to compress files to do a zip (and then a xar) ? Thanks in advane, Hesediel. -- View this message in context: http://n2.nabble.com/Custom-Xar-tp2669458p2681905.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Hesediel -
Sergiu Dumitriu -
Vincent Massol