Author: norman
Date: Tue Jan 25 12:29:19 2011
New Revision: 1063252
URL: http://svn.apache.org/viewvc?rev=1063252&view=rev
Log:
Make sure we build the scripts to execute the command line administrator tool
in a easy fashion. See JAMES-1179
Modified:
james/server/trunk/container-spring/pom.xml
james/server/trunk/pom.xml
Modified: james/server/trunk/container-spring/pom.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/container-spring/pom.xml?rev=1063252&r1=1063251&r2=1063252&view=diff
==============================================================================
--- james/server/trunk/container-spring/pom.xml (original)
+++ james/server/trunk/container-spring/pom.xml Tue Jan 25 12:29:19 2011
@@ -88,6 +88,25 @@
<platform>unix</platform>
</platforms>
</program>
+
+ <!-- This create the scripts for the command line administration
client. Maybe this should better be moved to the cli module, but I'm not sure
yet -->
+ <program>
+ <mainClass>org.apache.james.cli.ServerCmd</mainClass>
+ <!-- call it only run because appassemble will add .bat by
default on windows -->
+ <name>james-cli</name>
+ <!-- Only generate windows bat script for this application -->
+ <platforms>
+ <platform>windows</platform>
+ </platforms>
+ </program>
+ <program>
+ <mainClass>org.apache.james.cli.ServerCmd</mainClass>
+ <name>james-cli.sh</name>
+ <!-- Only generate unix shell script for the client -->
+ <platforms>
+ <platform>unix</platform>
+ </platforms>
+ </program>
</programs>
<daemons>
@@ -241,6 +260,12 @@
<!-- copy the linux wrapper-linux-x86-32 to wrapper, so use
it as default if no matching wrapper was found-->
<copy
file="${project.build.directory}/appassembler/jsw/james/bin/wrapper-linux-x86-32"
tofile="${project.build.directory}/appassembler/jsw/james/bin/wrapper" />
+
+ <!-- this is only needed because windows freak out on long cmd
lines, so we strip of the absolute path
+ from the lib dir to make windows happy again
+ -->
+ <replace
file="${project.build.directory}/appassembler/bin/james-cli.bat"
token="%BASEDIR%\lib" value="..\lib" />
+ <replace
file="${project.build.directory}/appassembler/bin/james-cli.sh" token="setenv"
value="setenv.sh" />
</tasks>
</configuration>
@@ -403,6 +428,10 @@
<dependencies>
<dependency>
<groupId>org.apache.james</groupId>
+ <artifactId>james-server-cli</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.james</groupId>
<artifactId>james-server-lifecycle-api</artifactId>
</dependency>
<dependency>
Modified: james/server/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=1063252&r1=1063251&r2=1063252&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Tue Jan 25 12:29:19 2011
@@ -279,6 +279,12 @@
<dependencies>
<dependency>
<groupId>org.apache.james</groupId>
+ <artifactId>james-server-cli</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.james</groupId>
<artifactId>james-server-container-spring</artifactId>
<version>${project.version}</version>
</dependency>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]