[
http://jira.xwiki.org/jira/browse/XTOOLS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22254
]
Vincent Massol commented on XTOOLS-22:
--------------------------------------
I think it would be better to use default includes/excludes as in:
{code}
private static final String[] DEFAULT_EXCLUDES = new String[] {
"**/package.xml" };
private static final String[] DEFAULT_INCLUDES = new String[] { "**/**" };
...
private String[] getIncludes()
{
if ( includes != null && includes.length > 0 )
{
return includes;
}
return DEFAULT_INCLUDES;
}
private String[] getExcludes()
{
if ( excludes != null && excludes.length > 0 )
{
return excludes;
}
return DEFAULT_EXCLUDES;
}
{code}
> Allow to set a list of includes and excludes when packing/unpacking a XAR
> -------------------------------------------------------------------------
>
> Key: XTOOLS-22
> URL: http://jira.xwiki.org/jira/browse/XTOOLS-22
> Project: XWiki Platform Tools
> Issue Type: Improvement
> Components: XAR Plugin
> Reporter: Jerome Velociter
> Assigned To: Jerome Velociter
> Attachments: XTOOLS-22.patch
>
>
> Allow to define includes and exludes when performing xar/unxar, with a
> configuration on the following scheme
> <configuration>
> <includes>
> <include>XWiki/*</include>
> </includes>
> <excludes>
> <exclude>**/XWikiPreferences</exclude>
> </excludes>
> </configuration>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications