notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2322 - infrastructure/jira-dpml/svn/src/main/net/dpml/jira
- From: peter AT neubauer.se
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2322 - infrastructure/jira-dpml/svn/src/main/net/dpml/jira
- Date: Tue, 19 Apr 2005 11:33:50 -0400
Author: peter AT neubauer.se
Date: Tue Apr 19 11:33:47 2005
New Revision: 2322
Modified:
infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnHelper.java
infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnUpdateListener.java
Log:
modifying of the metro.pwd starts to work
Modified: infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnHelper.java
==============================================================================
--- infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnHelper.java
(original)
+++ infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnHelper.java Tue
Apr 19 11:33:47 2005
@@ -19,6 +19,7 @@
import java.io.File;
import java.io.PrintStream;
+import java.io.PrintWriter;
public class SvnHelper
{
@@ -57,6 +58,25 @@
catch ( Exception e )
{
java.io.StringWriter sw = new java.io.StringWriter();
+ e.printStackTrace( new PrintWriter( sw ) );
+ log.println( "error: " + sw );
+ return;
+ }
+
+ }
+ public static void commitSvn( String svnDir, String username,
+ PrintStream log )
+ {
+ try
+ {
+ String[] t_args = new String[]{svnDir, "commit","-m", "Jira:
user " + username + "signed up or updated password"};
+ log.println( t_args );
+ executeCommand( log, t_args );
+ return;
+ }
+ catch ( Exception e )
+ {
+ java.io.StringWriter sw = new java.io.StringWriter();
e.printStackTrace( new java.io.PrintWriter( sw ) );
log.println( "error: " + sw );
return;
Modified:
infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnUpdateListener.java
==============================================================================
---
infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnUpdateListener.java
(original)
+++
infrastructure/jira-dpml/svn/src/main/net/dpml/jira/SvnUpdateListener.java
Tue Apr 19 11:33:47 2005
@@ -142,16 +142,18 @@
{
log( "DebugListener.userSignup" );
logEvent( event );
+ String username = event.getUser().getName();
+ String password = "welcome";
+ SvnHelper.updateSvnPassword( "htpasswd2", m_passwordFile, username,
+ password, System.out );
+ SvnHelper.commitSvn( m_svnWorkingDir, username, System.out );
+
}
public void userCreated( UserEvent event )
{
log( "SvnListener.userCreated" );
logEvent( event );
- String username = event.getUser().getEmail();
- String password = "test";
- SvnHelper.updateSvnPassword( "htpasswd2", m_passwordFile, username,
- password, System.out );
}
public void userForgotPassword( UserEvent event )
- svn commit: r2322 - infrastructure/jira-dpml/svn/src/main/net/dpml/jira, peter, 04/19/2005
Archive powered by MHonArc 2.6.24.