james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1141864 - in /james/server/trunk: cli/README cli/pom.xml pom.xml src/site/xdoc/dev-build.xml
Date Fri, 01 Jul 2011 08:16:20 GMT
Author: eric
Date: Fri Jul  1 08:16:19 2011
New Revision: 1141864

URL: http://svn.apache.org/viewvc?rev=1141864&view=rev
Log:
Add a mvn exec:java goal to invoke cli (JAMES-1276)

Added:
    james/server/trunk/cli/README
Modified:
    james/server/trunk/cli/pom.xml
    james/server/trunk/pom.xml
    james/server/trunk/src/site/xdoc/dev-build.xml

Added: james/server/trunk/cli/README
URL: http://svn.apache.org/viewvc/james/server/trunk/cli/README?rev=1141864&view=auto
==============================================================================
--- james/server/trunk/cli/README (added)
+++ james/server/trunk/cli/README Fri Jul  1 08:16:19 2011
@@ -0,0 +1,5 @@
+Apache James Server Command Line Interface
+------------------------------------------
+
+To invoke the James CLI from shell during your development process:
+mvn exec:java -Dexec.args="-h localhost -p 9999 help"

Modified: james/server/trunk/cli/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/cli/pom.xml?rev=1141864&r1=1141863&r2=1141864&view=diff
==============================================================================
--- james/server/trunk/cli/pom.xml (original)
+++ james/server/trunk/cli/pom.xml Fri Jul  1 08:16:19 2011
@@ -58,10 +58,23 @@ Parent pom build failure prevents inheri
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>java</goal>
+            </goals>
+         </execution>
+        </executions>
+        <configuration>
+          <mainClass>org.apache.james.cli.ServerCmd</mainClass>
+        </configuration>
+      </plugin>
     </plugins>
    </build>
-
-
+   
   <dependencies>
     <dependency>
       <groupId>org.apache.james</groupId>
@@ -77,4 +90,5 @@ Parent pom build failure prevents inheri
       <scope>test</scope>
     </dependency>
   </dependencies>
+
 </project>

Modified: james/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=1141864&r1=1141863&r2=1141864&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Fri Jul  1 08:16:19 2011
@@ -190,6 +190,11 @@
           <artifactId>maven-gpg-plugin</artifactId>
           <version>1.3</version>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>exec-maven-plugin</artifactId>
+          <version>1.2</version>
+        </plugin>
       </plugins>
     </pluginManagement>
 

Modified: james/server/trunk/src/site/xdoc/dev-build.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/src/site/xdoc/dev-build.xml?rev=1141864&r1=1141863&r2=1141864&view=diff
==============================================================================
--- james/server/trunk/src/site/xdoc/dev-build.xml (original)
+++ james/server/trunk/src/site/xdoc/dev-build.xml Fri Jul  1 08:16:19 2011
@@ -95,6 +95,7 @@
     <p><strong>Warning!</strong> Any changes you've made in the 'dist'
directory 
       will be lost after a recompilation. If you are running James for this directory
       we recommend you backup to avoid losing work. </p>
+    <p>You can also invoke the command line from a shell. Go to the server project
cli folder and type mvn exec:java -Dexec.args="-h localhost -p 9999 help"</p>
 
   </section>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message