svn commit: r168219 - in /maven/maven-1/plugins/trunk/cruisecontrol: ./ plugin.properties project.xml src/plugin-resources/cruisecontrol.jsl xdocs/changes.xml xdocs/properties.xml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r168219 - in /maven/maven-1/plugins/trunk/cruisecontrol: ./ plugin.properties project.xml src/plugin-resources/cruisecontrol.jsl xdocs/changes.xml xdocs/properties.xml

brettporter
Administrator
Author: brett
Date: Wed May  4 17:34:50 2005
New Revision: 168219

URL: http://svn.apache.org/viewcvs?rev=168219&view=rev
Log:
PR: MPCRUISECONTROL-23
Submitted by: Philip Dodds
Reviewed by:  Brett Porter
Add a Jabber publisher
Publish only on success configuration
Improve documentation

Modified:
    maven/maven-1/plugins/trunk/cruisecontrol/   (props changed)
    maven/maven-1/plugins/trunk/cruisecontrol/plugin.properties
    maven/maven-1/plugins/trunk/cruisecontrol/project.xml
    maven/maven-1/plugins/trunk/cruisecontrol/src/plugin-resources/cruisecontrol.jsl
    maven/maven-1/plugins/trunk/cruisecontrol/xdocs/changes.xml
    maven/maven-1/plugins/trunk/cruisecontrol/xdocs/properties.xml

Propchange: maven/maven-1/plugins/trunk/cruisecontrol/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed May  4 17:34:50 2005
@@ -1,2 +1,3 @@
 target
 *.log
+maven-cruisecontrol-plugin.iml

Modified: maven/maven-1/plugins/trunk/cruisecontrol/plugin.properties
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/cruisecontrol/plugin.properties?rev=168219&r1=168218&r2=168219&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/cruisecontrol/plugin.properties (original)
+++ maven/maven-1/plugins/trunk/cruisecontrol/plugin.properties Wed May  4 17:34:50 2005
@@ -97,3 +97,13 @@
 maven.cruisecontrol.artifactspublisher=false
 maven.cruisecontrol.artifacts.dir=
 maven.cruisecontrol.artifacts.dest=${maven.build.dir}/artifacts
+maven.cruisecontrol.artifactspublisher.publishOnFailure=true
+
+maven.cruisecontrol.jabberpublisher=false
+maven.cruisecontrol.jabber.host=jabber.org
+maven.cruisecontrol.jabber.username=MISSING_USERNAME
+maven.cruisecontrol.jabber.password=MISSING_PASSWORD
+maven.cruisecontrol.jabber.recipient=MISSING_RECIEPT
+maven.cruisecontrol.jabber.chatroom=false
+maven.cruisecontrol.jabber.ssl=false
+maven.cruisecontrol.jabber.buildresultsurl=false

Modified: maven/maven-1/plugins/trunk/cruisecontrol/project.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/cruisecontrol/project.xml?rev=168219&r1=168218&r2=168219&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/cruisecontrol/project.xml (original)
+++ maven/maven-1/plugins/trunk/cruisecontrol/project.xml Wed May  4 17:34:50 2005
@@ -99,6 +99,11 @@
       </roles>
     </developer>
   </developers>
+  <contributors>
+    <contributor>
+      <name>Philip Dodds</name>
+    </contributor>
+  </contributors>
   <dependencies>
     <dependency>
       <groupId>commons-jelly</groupId>

Modified: maven/maven-1/plugins/trunk/cruisecontrol/src/plugin-resources/cruisecontrol.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/cruisecontrol/src/plugin-resources/cruisecontrol.jsl?rev=168219&r1=168218&r2=168219&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/cruisecontrol/src/plugin-resources/cruisecontrol.jsl (original)
+++ maven/maven-1/plugins/trunk/cruisecontrol/src/plugin-resources/cruisecontrol.jsl Wed May  4 17:34:50 2005
@@ -91,7 +91,7 @@
          <j:if test="${publishartifacts == 'true'}">
           <artifactspublisher
             dir="${maven.cruisecontrol.artifacts.dir}"
-            dest="${maven.cruisecontrol.artifacts.dest}/${pom.artifactId}"/>  
+            dest="${maven.cruisecontrol.artifacts.dest}/${pom.artifactId}" publishOnFailure="${maven.cruisecontrol.artifactspublisher.publishOnFailure}"/>  
          </j:if>
          <j:set var="ftpstatus" value="${maven.cruisecontrol.currentbuildstatusftppublisher}"/>
          <j:if test="${ftpstatus == 'true'}">
@@ -117,6 +117,17 @@
               destDir="${maven.cruisecontrol.ftppublisher.destDir}"
               srcDir="${maven.cruisecontrol.ftppublisher.srcDir}/${pom.artifactId}"
               deleteArtifacts="${maven.cruisecontrol.ftppublisher.deleteArtifacts}"/>
+         </j:if>
+     <j:set var="jabberpublisher" value="${maven.cruisecontrol.jabberpublisher}"/>
+            <j:if test="${jabberpublisher == 'true'}">
+         <jabber
+              host="${maven.cruisecontrol.jabber.host}"              
+              username="${maven.cruisecontrol.jabber.username}"
+              password="${maven.cruisecontrol.jabber.password}"
+              recipient="${maven.cruisecontrol.jabber.recipient}"
+              chatroom="${maven.cruisecontrol.jabber.chatroom}"
+              ssl="${maven.cruisecontrol.jabber.ssl}"
+              buildresultsurl="${maven.cruisecontrol.jabber.buildresultsurl}"/>
          </j:if>
           <htmlemail
               skipusers="${maven.cruisecontrol.mail.skipusers}"

Modified: maven/maven-1/plugins/trunk/cruisecontrol/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/cruisecontrol/xdocs/changes.xml?rev=168219&r1=168218&r2=168219&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/cruisecontrol/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/cruisecontrol/xdocs/changes.xml Wed May  4 17:34:50 2005
@@ -26,6 +26,12 @@
   </properties>
   <body>
     <release version="1.7-SNAPSHOT" date="in SVN">
+      <action dev="brett" type="add" issue="MPCRUISECONTROL-23" due-to="Philip Dodds">
+        Add a Jabber publisher and configuration.
+      </action>
+      <action dev="brett" type="add" issue="MPCRUISECONTROL-23" due-to="Philip Dodds">
+        Add ability to publish only on success.
+      </action>
       <action dev="vmassol" type="update">
         Removed all dependencies on the SCM module and instead replace all
         occurrences with <code>${pom.artifactId}</code>.

Modified: maven/maven-1/plugins/trunk/cruisecontrol/xdocs/properties.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/cruisecontrol/xdocs/properties.xml?rev=168219&r1=168218&r2=168219&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/cruisecontrol/xdocs/properties.xml (original)
+++ maven/maven-1/plugins/trunk/cruisecontrol/xdocs/properties.xml Wed May  4 17:34:50 2005
@@ -240,6 +240,71 @@
         </tr>    
       </table>
     </section>
+    <section name="Maven Cruise Control Plug-in Jabber Settings">
+      <table>
+       <tr>
+          <td>maven.cruisecontrol.jabberpublisher</td>
+          <td>Yes</td>
+          <td>
+            <p>Control whether to include publishing to a Jabber server. Default value is
+              <code>false</code>.</p>            
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.host</td>
+          <td>No</td>
+          <td>
+            <p>Default value is
+              <code>jabber.org</code>.</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.username</td>
+          <td>No</td>
+          <td>
+            <p>The username to use to connect to the Jabber server</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.password</td>
+          <td>No</td>
+          <td>
+            <p>The password to use to connect to the Jabber server</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.recipient</td>
+          <td>No</td>
+          <td>
+            <p>The recipient that you wish to send the notification to</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.chatroom</td>
+          <td>Yes</td>
+          <td>
+            <p>Whether the recipient is a chatroom.  Default value is
+              <code>false</code>.</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.ssl</td>
+          <td>Yes</td>
+          <td>
+            <p>Whether to use SSL to connect to the Jabber server.  Default value is
+              <code>false</code>.</p>
+          </td>
+        </tr>
+        <tr>
+          <td>maven.cruisecontrol.jabber.buildresultsurl</td>
+          <td>Yes</td>
+          <td>
+            <p>Whether to include the build results URL.  Default value is
+              <code>false</code>.</p>
+          </td>
+        </tr>    
+      </table>
+    </section>
     <section name="Maven Cruise Control Plug-in FTP Publisher Settings">
       <table>
         <tr>
@@ -454,5 +519,128 @@
       </tr>
      </table>
     </section>
+    <section name="Maven Cruise Control Plug-in SCP Publisher Settings">
+     <table>
+      <tr>
+        <td>maven.cruisecontrol.scppublisher</td>
+        <td>Yes</td>
+        <td>
+          <p>Copies the XML log file from the build with a SCP command onto a remote host. Default value is
+            <code>false</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.sourcedir</td>
+        <td>Yes</td>
+        <td>
+          <p>The directory to copy from. Default value is
+            <code>${maven.cruisecontrol.logs.dir}</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.targetuser</td>
+        <td>Yes</td>
+        <td>
+          <p>Log in to the target machine as this user.</p>
+          <p>
+        <strong>NOTE: </strong>This property doesn't have any default value, a value is required if
+        <code>maven.cruisecontrol.scppublisher</code> property is set to <code>true</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.targethost</td>
+        <td>Yes</td>
+        <td>
+          <p>SCP to this machine.</p>
+          <p>
+        <strong>NOTE: </strong>This property doesn't have any default value, a value is required if
+        <code>maven.cruisecontrol.scppublisher</code> property is set to <code>true</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.targetlogdir</td>
+        <td>Yes</td>
+        <td>
+          <p>The directory to copy the log files. Default value is
+            <code>.</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.targetstatusfiledir</td>
+        <td>Yes</td>
+        <td>
+          <p>The directory to copy the currentstatusfile. Default value is
+            <code>.</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.targetseparator</td>
+        <td>Yes</td>
+        <td>
+          <p>The file separator on the target machine. Default value is
+            <code>/</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.ssh</td>
+        <td>Yes</td>
+        <td>
+          <p>The ssh application. Default value is
+            <code>ssh</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.file</td>
+        <td>Yes</td>
+        <td>
+          <p>The filename to copy. Default value is the current log file.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.scp.statusfile</td>
+        <td>Yes</td>
+        <td>
+          <p>The statusfilename to copy. Default value is
+          <code>${maven.cruisecontrol.currentbuildstatus.filename}</code>.</p>
+        </td>
+      </tr>
+     </table>
+    </section>
+    <section name="Maven Cruise Control Plug-in Artifact Publisher Settings">
+     <table>
+      <tr>
+        <td>maven.cruisecontrol.artifactspublisher</td>
+        <td>Yes</td>
+        <td>
+          <p>Copies the build artifacts from to a given local location. Default value is
+            <code>false</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.artifacts.dir</td>
+        <td>Yes</td>
+        <td>
+          <p>The directory to copy from. Default value is
+            <code>${maven.cruisecontrol.logs.dir}</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.artifacts.dest</td>
+        <td>Yes</td>
+        <td>
+          <p>The directory to copy to. Default value is
+            <code>${maven.build.dir}/artifacts}</code>.</p>
+        </td>
+      </tr>
+      <tr>
+        <td>maven.cruisecontrol.artifactsPublisher.publishOnFailure</td>
+        <td>Yes</td>
+        <td>
+          <p>Whether to publish the artifacts on a failed build. Default value is
+            <code>true</code>.</p>
+        </td>
+      </tr>
+     </table>
+    </section>    
   </body>
 </document>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]