maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r360128 [1/3] - in /maven/sandbox/wiki: ./ wiki-management-api/ wiki-management-api/src/ wiki-management-api/src/main/ wiki-management-api/src/main/java/ wiki-management-api/src/main/java/org/ wiki-management-api/src/main/java/org/apache/ w...
Date Fri, 30 Dec 2005 18:14:50 GMT
Author: jvanzyl
Date: Fri Dec 30 10:12:53 2005
New Revision: 360128

URL: http://svn.apache.org/viewcvs?rev=360128&view=rev
Log:
adding stub wiki mangement sandbox project for stephane

Added:
    maven/sandbox/wiki/
    maven/sandbox/wiki/pom.xml   (with props)
    maven/sandbox/wiki/wiki-management-api/
    maven/sandbox/wiki/wiki-management-api/pom.xml   (with props)
    maven/sandbox/wiki/wiki-management-api/src/
    maven/sandbox/wiki/wiki-management-api/src/main/
    maven/sandbox/wiki/wiki-management-api/src/main/java/
    maven/sandbox/wiki/wiki-management-api/src/main/java/org/
    maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/
    maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/
    maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/
    maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/
    maven/sandbox/wiki/wiki-management-providers/pom.xml   (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/wsdl/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/wsdl/confluenceservice-v1.wsdl
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/jira/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/jira/authentication/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSourceTest.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/jira/project/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSourceTest.java
  (with props)
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/resources/
    maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/test/resources/jira.properties
  (with props)
    maven/sandbox/wiki/wiki-site/
    maven/sandbox/wiki/wiki-site/pom.xml   (with props)
    maven/sandbox/wiki/wiki-site/src/
    maven/sandbox/wiki/wiki-site/src/site/
    maven/sandbox/wiki/wiki-site/src/site/apt/
    maven/sandbox/wiki/wiki-site/src/site/apt/index.apt   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/
    maven/sandbox/wiki/wiki-site/src/site/resources/css/
    maven/sandbox/wiki/wiki-site/src/site/resources/css/maven-theme.css   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/css/site.css   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/
    maven/sandbox/wiki/wiki-site/src/site/resources/images/apache-maven-project-2.png   (with
props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/banner.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/bg.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/breadcrumbs.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/collapsed.gif   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/expanded.gif   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/h3.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/h5.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/logo_apache.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/logo_maven.jpg   (with props)
    maven/sandbox/wiki/wiki-site/src/site/resources/images/maven-logo-2.gif   (with props)
    maven/sandbox/wiki/wiki-site/src/site/site.xml   (with props)

Added: maven/sandbox/wiki/pom.xml
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/pom.xml?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/pom.xml (added)
+++ maven/sandbox/wiki/pom.xml Fri Dec 30 10:12:53 2005
@@ -0,0 +1,111 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.wiki</groupId>
+  <artifactId>wiki</artifactId>
+  <packaging>pom</packaging>
+  <name>Maven wiki</name>
+  <version>1</version>
+  <description>Wiki Management API</description>
+  <issueManagement>
+    <system>jira</system>
+    <url>http://jira.codehaus.org/browse/WIKI</url>
+  </issueManagement>
+  <ciManagement>
+    <system>wiki-dev@maven.apache.org</system>
+    <notifiers>
+      <notifier>
+        <address>wiki-dev@maven.apache.org</address>
+      </notifier>
+    </notifiers>
+  </ciManagement>
+  <inceptionYear>2003</inceptionYear>
+  <mailingLists>
+    <mailingList>
+      <name>Maven Wiki User List</name>
+      <subscribe>wiki-users-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>wiki-users-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://nagoya.apache.org/eyebrowse/SummarizeList?listName=wiki-users@maven.apache.org</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Wiki Developer List</name>
+      <subscribe>wiki-dev-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>wiki-dev-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://nagoya.apache.org/eyebrowse/SummarizeList?listName=wiki-dev@maven.apache.org</archive>
+    </mailingList>
+  </mailingLists>
+  <developers>
+    <developer>
+      <id>jvanzyl</id>
+      <name>Jason van Zyl</name>
+      <email>jason@maven.org</email>
+      <roles>
+        <role>Developer</role>
+      </roles>
+    </developer>
+  </developers>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/wiki/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/wiki/trunk/</developerConnection>
+    <url>http://svn.apache.org/viewcvs.cgi/maven/wiki/</url>
+  </scm>
+  <organization>
+    <name>Apache Software Foundation</name>
+    <url>http://www.apache.org/</url>
+  </organization>
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-release-plugin</artifactId>
+          <configuration>
+            <tagBase>https://svn.apache.org/repos/asf/maven/wiki/tags</tagBase>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+  <modules>
+    <module>wiki-management-api</module>
+    <module>wiki-management-providers</module>
+  </modules>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+    </dependency>
+  </dependencies>
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven.wiki</groupId>
+        <artifactId>wiki-provider-api</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      <!--
+      <dependency>
+        <groupId>org.apache.maven.wiki</groupId>
+        <artifactId>wiki-provider-test</artifactId>
+        <version>1.0-SNAPSHOT</version>
+      </dependency>
+      -->
+    </dependencies>
+  </dependencyManagement>
+  <distributionManagement>
+    <repository>
+      <id>repo1</id>
+      <url>scp://beaver.codehaus.org/home/projects/maven/repository-staging/to-ibiblio/maven2</url>
+    </repository>
+    <snapshotRepository>
+      <id>snapshots</id>
+      <url>scp://beaver.codehaus.org/home/projects/maven/repository-staging/snapshots/maven2</url>
+    </snapshotRepository>
+  </distributionManagement>
+</project>

Propchange: maven/sandbox/wiki/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-api/pom.xml
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-api/pom.xml?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-api/pom.xml (added)
+++ maven/sandbox/wiki/wiki-management-api/pom.xml Fri Dec 30 10:12:53 2005
@@ -0,0 +1,13 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.maven.wiki</groupId>
+    <artifactId>wiki</artifactId>
+    <version>1</version>
+  </parent>
+  <artifactId>wiki-management-api</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Wiki Management API</name>
+  <url>http://maven.apache.org</url>
+</project>

Propchange: maven/sandbox/wiki/wiki-management-api/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-api/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
(added)
+++ maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,5 @@
+package org.apache.maven.issue;
+
+public interface IssueProvider
+{
+}

Propchange: maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-api/src/main/java/org/apache/maven/issue/IssueProvider.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/pom.xml
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/pom.xml?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/pom.xml (added)
+++ maven/sandbox/wiki/wiki-management-providers/pom.xml Fri Dec 30 10:12:53 2005
@@ -0,0 +1,30 @@
+<project>
+  <parent>
+    <groupId>org.apache.maven.wiki</groupId>  
+    <artifactId>wiki</artifactId>
+    <version>1</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>wiki-management-providers</artifactId>
+  <packaging>pom</packaging>
+  <name>Maven Wiki Management Providers</name>
+  <version>1</version>
+  <dependencies>
+    <!--
+    <dependency>
+      <groupId>org.apache.maven.wiki</groupId>
+      <artifactId>wagon-provider-test</artifactId>
+      <version>1.0-alpha-6-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.apache.maven.wiki</groupId>
+      <artifactId>wiki-provider-api</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+  <modules>
+    <module>wiki-management-provider-confluence</module>
+  </modules>  
+</project>

Propchange: maven/sandbox/wiki/wiki-management-providers/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,42 @@
+<project>
+  <parent>
+    <groupId>org.apache.maven.issue</groupId>
+    <artifactId>issue-management-providers</artifactId>
+    <version>1</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>wiki-management-provider-confluence</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Confluence Wiki Management Provider</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>axis</groupId>
+      <artifactId>axis</artifactId>
+      <version>1.3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>1.0.4</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>axistools-maven-plugin</artifactId>
+        <configuration>
+          <packageSpace>org.apache.maven.wiki.confluence</packageSpace>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>wsdl2java</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
Fri Dec 30 10:12:53 2005
@@ -0,0 +1 @@
+MNGPCLOVER,Clover Maven Plugin,Description,jason,10010,10001

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/projects.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,15 @@
+package org.apache.maven.issue.jira.authentication;
+
+/**
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public interface AuthenticationSource
+{
+    String getLogin();
+
+    String getPassword();
+
+    void initialize()
+        throws AuthenticationSourceInitializationException;
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSource.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,24 @@
+package org.apache.maven.issue.jira.authentication;
+
+/**
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public class AuthenticationSourceInitializationException
+    extends Exception
+{
+    public AuthenticationSourceInitializationException( String message )
+    {
+        super( message );
+    }
+
+    public AuthenticationSourceInitializationException( Throwable cause )
+    {
+        super( cause );
+    }
+
+    public AuthenticationSourceInitializationException( String message, Throwable cause )
+    {
+        super( message, cause );
+    }
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/AuthenticationSourceInitializationException.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,85 @@
+package org.apache.maven.issue.jira.authentication;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.Properties;
+
+/**
+ * <p>
+ * A simple authentication source that uses a properties file. If you format the properties
+ * file using the ":" as the delimiter then Ruby's YAML package can also use the configuration.
+ * So the following would work with both Java and Ruby:
+ * </p>
+ *
+ * <pre>
+ * user: jason
+ * password: monkey
+ * </pre>
+ *
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public class PropertiesFileAuthenticationSource
+    implements AuthenticationSource
+{
+    private String login;
+
+    private String password;
+
+    private File propertiesFile;
+
+    public PropertiesFileAuthenticationSource()
+    {
+    }
+
+    public PropertiesFileAuthenticationSource( File properties )
+    {
+        this.propertiesFile = properties;
+    }
+
+    public void initialize()
+        throws AuthenticationSourceInitializationException
+    {
+        if ( propertiesFile == null )
+        {
+            propertiesFile = new File( System.getProperty( "user.home" ), "jira.properties"
);
+        }
+
+        Properties p = new Properties();
+
+        try
+        {
+            p.load( new FileInputStream( propertiesFile ) );
+
+            login = p.getProperty( "user" );
+
+            if ( login == null )
+            {
+                throw new AuthenticationSourceInitializationException( "Source contains no
login information." );
+            }
+
+            password = p.getProperty( "password" );
+
+            if ( password == null )
+            {
+                throw new AuthenticationSourceInitializationException( "Source contains no
password information." );
+            }
+
+        }
+        catch ( IOException e )
+        {
+            throw new AuthenticationSourceInitializationException( "Cannot find " + propertiesFile
+ "for login and password information." );
+        }
+    }
+
+    public String getLogin()
+    {
+        return login;
+    }
+
+    public String getPassword()
+    {
+        return password;
+    }
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/authentication/PropertiesFileAuthenticationSource.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,105 @@
+package org.apache.maven.issue.jira.project;
+
+import org.codehaus.plexus.util.StringUtils;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.HashMap;
+
+/**
+ * @author Jason van Zyl
+ * @version $Id$
+ */
+public class CsvFileProjectRecordSource
+    implements ProjectRecordSource
+{
+    private File source;
+
+    private Map variables;
+
+    public CsvFileProjectRecordSource( File source )
+    {
+        this.source = source;
+
+        variables = new HashMap();
+    }
+
+    public Iterator getRecords()
+        throws ProjectRecordRetrievalException
+    {
+        try
+        {
+            return new RecordIterator( source );
+        }
+        catch ( FileNotFoundException e )
+        {
+            throw new ProjectRecordRetrievalException( "Cannot find source file: " + source
);
+        }
+    }
+
+    class RecordIterator
+        implements Iterator
+    {
+        private BufferedReader reader;
+
+        private String line;
+
+        public RecordIterator( File source )
+            throws FileNotFoundException
+        {
+            reader = new BufferedReader( new FileReader( source ) );
+        }
+
+        public boolean hasNext()
+        {
+            try
+            {
+                while ( ( line = reader.readLine() ) != null )
+                {
+                    if ( line.indexOf( "=" ) > 0 )
+                    {
+                        String[] s = StringUtils.split( line, "=" );
+
+                        String key = s[0].trim();
+
+                        String value = s[1].trim();
+
+                        variables.put( key, value );
+
+                        continue;
+                    }
+                    else if ( line.startsWith( "#" ) || line.trim().length() == 0 )
+                    {
+                        continue;
+                    }
+
+                    break;
+                }
+            }
+            catch ( IOException e )
+            {
+                // do nothing
+            }
+
+            return line != null;
+        }
+
+        public void remove()
+        {
+            throw new UnsupportedOperationException();
+        }
+
+        public Object next()
+        {
+            String[] s = StringUtils.split( StringUtils.interpolate( line, variables ), ","
);
+
+            return new ProjectRecord( s[0], s[1], s[2], s[3], s[4], s[5] );
+        }
+    }
+}
+

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/CsvFileProjectRecordSource.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,60 @@
+package org.apache.maven.issue.jira.project;
+
+/**
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public class ProjectRecord
+{
+    private String key;
+    
+    private String name;
+
+    private String description;
+
+    private String leadId;
+
+    private String permissionSchemeId;
+
+    private String notificationSchemeId;
+
+    public ProjectRecord( String key, String name, String description, String leadId, String
permissionSchemeId, String notificationSchemeId )
+    {
+        this.key = key;
+        this.name = name;
+        this.description = description;
+        this.leadId = leadId;
+        this.permissionSchemeId = permissionSchemeId;
+        this.notificationSchemeId = notificationSchemeId;
+    }
+
+    public String getKey()
+    {
+        return key;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+
+    public String getDescription()
+    {
+        return description;
+    }
+
+    public String getLeadId()
+    {
+        return leadId;
+    }
+
+    public String getPermissionSchemeId()
+    {
+        return permissionSchemeId;
+    }
+
+    public String getNotificationSchemeId()
+    {
+        return notificationSchemeId;
+    }
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecord.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,24 @@
+package org.apache.maven.issue.jira.project;
+
+/**
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public class ProjectRecordRetrievalException
+    extends Exception
+{
+    public ProjectRecordRetrievalException( String message )
+    {
+        super( message );
+    }
+
+    public ProjectRecordRetrievalException( Throwable cause )
+    {
+        super( cause );
+    }
+
+    public ProjectRecordRetrievalException( String message, Throwable cause )
+    {
+        super( message, cause );
+    }
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordRetrievalException.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java?rev=360128&view=auto
==============================================================================
--- maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
(added)
+++ maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
Fri Dec 30 10:12:53 2005
@@ -0,0 +1,13 @@
+package org.apache.maven.issue.jira.project;
+
+import java.util.Iterator;
+
+/**
+ * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+ * @version $Id$
+ */
+public interface ProjectRecordSource
+{
+    Iterator getRecords()
+        throws ProjectRecordRetrievalException;
+}

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/sandbox/wiki/wiki-management-providers/wiki-management-provider-confluence/src/main/java/org/apache/maven/issue/jira/project/ProjectRecordSource.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message