Author: vmassol
Date: 2007-09-04 12:28:31 +0200 (Tue, 04 Sep 2007)
New Revision: 4708
Modified:
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application-no-database.xml
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application.xml
xwiki-products/xwiki-enterprise/trunk/installers/generic/src/main/resources/install.xml
xwiki-products/xwiki-enterprise/trunk/installers/windows/pom.xml
Log:
XE-124: Standalone versions do not have execute permissions set for unix sh
files
Modified:
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application-no-database.xml
===================================================================
---
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application-no-database.xml
2007-09-03 15:59:53 UTC (rev 4707)
+++
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application-no-database.xml
2007-09-04 10:28:31 UTC (rev 4708)
@@ -38,6 +38,9 @@
<outputDirectory>webapps/xwiki</outputDirectory>
<unpack>true</unpack>
</dependencySet>
+ <!-- Copy sh files so that we can set their permissions. This is required
since the
+ Assembly plugin looses file permissions.
+ See http://jira.codehaus.org/browse/MASSEMBLY-238 -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
@@ -48,6 +51,29 @@
</includes>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
+ <unpackOptions>
+ <includes>
+ <include>**/*.sh</include>
+ </includes>
+ </unpackOptions>
+ <fileMode>755</fileMode>
</dependencySet>
+ <!-- Copy all other files (excluding sh files). See above for details. -->
+ <dependencySet>
+ <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
+ plugin where the artifact name will be used instead of / if
outputFileNameMapping is
+ not specified -->
+ <outputFileNameMapping></outputFileNameMapping>
+ <includes>
+ <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+ </includes>
+ <outputDirectory>/</outputDirectory>
+ <unpack>true</unpack>
+ <unpackOptions>
+ <excludes>
+ <exclude>**/*.sh</exclude>
+ </excludes>
+ </unpackOptions>
+ </dependencySet>
</dependencySets>
</assembly>
Modified:
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application.xml
===================================================================
---
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application.xml
2007-09-03 15:59:53 UTC (rev 4707)
+++
xwiki-products/xwiki-enterprise/trunk/distribution/src/assemble/application.xml
2007-09-04 10:28:31 UTC (rev 4708)
@@ -38,6 +38,9 @@
<outputDirectory>webapps/xwiki</outputDirectory>
<unpack>true</unpack>
</dependencySet>
+ <!-- Copy sh files so that we can set their permissions. This is required
since the
+ Assembly plugin looses file permissions.
+ See http://jira.codehaus.org/browse/MASSEMBLY-238 -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
@@ -48,13 +51,36 @@
</includes>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
+ <unpackOptions>
+ <includes>
+ <include>**/*.sh</include>
+ </includes>
+ </unpackOptions>
+ <fileMode>755</fileMode>
</dependencySet>
+ <!-- Copy all other files (excluding sh files). See above for details. -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<includes>
+ <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+ </includes>
+ <outputDirectory>/</outputDirectory>
+ <unpack>true</unpack>
+ <unpackOptions>
+ <excludes>
+ <exclude>**/*.sh</exclude>
+ </excludes>
+ </unpackOptions>
+ </dependencySet>
+ <dependencySet>
+ <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
+ plugin where the artifact name will be used instead of / if
outputFileNameMapping is
+ not specified -->
+ <outputFileNameMapping></outputFileNameMapping>
+ <includes>
<include>com.xpn.xwiki.products:xwiki-enterprise-database</include>
</includes>
<outputDirectory>/database</outputDirectory>
Modified:
xwiki-products/xwiki-enterprise/trunk/installers/generic/src/main/resources/install.xml
===================================================================
---
xwiki-products/xwiki-enterprise/trunk/installers/generic/src/main/resources/install.xml
2007-09-03 15:59:53 UTC (rev 4707)
+++
xwiki-products/xwiki-enterprise/trunk/installers/generic/src/main/resources/install.xml
2007-09-04 10:28:31 UTC (rev 4708)
@@ -52,6 +52,10 @@
<file src="${xwiki.readme}" targetdir="$INSTALL_PATH"/>
<file src="${xwiki.license}" targetdir="$INSTALL_PATH"/>
<fileset dir="${xwiki.container}" targetdir="$INSTALL_PATH"
override="true"/>
+ <!-- Set execute permissions for .sh files -->
+ <executable targetfile="$INSTALL_PATH/start_xwiki.sh" stage="never"/>
+ <executable targetfile="$INSTALL_PATH/stop_xwiki.sh" stage="never"/>
+ <executable targetfile="$INSTALL_PATH/start_xwiki_debug.sh"
stage="never"/>
</pack>
<pack name="Default Wiki" required="no">
<description>A set of default Wiki pages. If you don't install this
you'll get an empty Wiki. To be used when upgrading an existing XWiki
installation so that your current pages are kept and not
overwritten.</description>
Modified: xwiki-products/xwiki-enterprise/trunk/installers/windows/pom.xml
===================================================================
--- xwiki-products/xwiki-enterprise/trunk/installers/windows/pom.xml
2007-09-03 15:59:53 UTC (rev 4707)
+++ xwiki-products/xwiki-enterprise/trunk/installers/windows/pom.xml
2007-09-04 10:28:31 UTC (rev 4708)
@@ -94,7 +94,8 @@
</goals>
<configuration>
<tasks>
- <!-- Dependency plugin discards file permissions so we need to
set them back manually -->
+ <!-- Dependency plugin discards file permissions so we need to
set them back
+ manually. See http://jira.codehaus.org/browse/MDEP-109 -->
<chmod
file="${project.build.directory}/dependency/bin/windres" perm="ugo+rx"/>
<chmod file="${project.build.directory}/dependency/bin/ld"
perm="ugo+rx"/>
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications