Skip to content

Commit

Permalink
mavenized things.
Browse files Browse the repository at this point in the history
  • Loading branch information
lookfirst committed Apr 18, 2013
1 parent b3f6fe0 commit b53f0c2
Show file tree
Hide file tree
Showing 116 changed files with 416 additions and 213 deletions.
26 changes: 26 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<projectDescription>
<name>sardine</name>
<comment>An easy to use webdav client for java.</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
156 changes: 156 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<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>

<groupId>com.github.lookfirst</groupId>
<artifactId>sardine</artifactId>
<packaging>jar</packaging>
<version>2.0</version>
<description>An easy to use webdav client for java</description>
<name>Sardine WEBDAV client</name>
<url>https://github.com/lookfirst/sardine</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>com.googlecode.sardine.Version</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<instrumentation>
<excludes>
<!-- Generated class -->
<exclude>com/googlecode/sardine/model/*.class</exclude>
<!-- not interested in ant commands -->
<exclude>com/googlecode/sardine/ant/*.class</exclude>
<exclude>com/googlecode/sardine/ant/command/*.class</exclude>
</excludes>
</instrumentation>
</configuration>
<executions>
<execution>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.2.3</version>
</dependency>

<!-- JAXB is not included in JDK 5. -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.1.12</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.7</version>
</dependency>

<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.2</version>
</dependency>

<!-- ant and junit must be defined as provided for a succesful compile. -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.9.0</version>
<scope>provided</scope>
</dependency>

<!-- test utilities -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.googlecode.sardine;
package com.github.sardine;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

import com.googlecode.sardine.model.*;
import com.googlecode.sardine.util.SardineUtil;
import com.github.sardine.model.*;
import com.github.sardine.util.SardineUtil;

/**
* An Access control element (ACE) either grants or denies a particular set of (non-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.googlecode.sardine;
package com.github.sardine;

import com.googlecode.sardine.model.Ace;
import com.googlecode.sardine.model.Acl;
import com.googlecode.sardine.model.Group;
import com.googlecode.sardine.model.Owner;
import com.googlecode.sardine.model.Propstat;
import com.googlecode.sardine.model.Response;
import com.github.sardine.model.Ace;
import com.github.sardine.model.Acl;
import com.github.sardine.model.Group;
import com.github.sardine.model.Owner;
import com.github.sardine.model.Propstat;
import com.github.sardine.model.Response;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine;
package com.github.sardine;

import com.googlecode.sardine.model.Principal;
import com.github.sardine.model.Principal;

import javax.xml.namespace.QName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* License for the specific language governing permissions and limitations under the License.
*/

package com.googlecode.sardine;
package com.github.sardine;

import com.googlecode.sardine.model.Creationdate;
import com.googlecode.sardine.model.Getcontentlength;
import com.googlecode.sardine.model.Getcontenttype;
import com.googlecode.sardine.model.Getetag;
import com.googlecode.sardine.model.Getlastmodified;
import com.googlecode.sardine.model.Propstat;
import com.googlecode.sardine.model.Resourcetype;
import com.googlecode.sardine.model.Response;
import com.googlecode.sardine.util.SardineUtil;
import com.github.sardine.model.Creationdate;
import com.github.sardine.model.Getcontentlength;
import com.github.sardine.model.Getcontenttype;
import com.github.sardine.model.Getetag;
import com.github.sardine.model.Getlastmodified;
import com.github.sardine.model.Propstat;
import com.github.sardine.model.Resourcetype;
import com.github.sardine.model.Response;
import com.github.sardine.util.SardineUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Element;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.googlecode.sardine;
package com.github.sardine;

import javax.xml.namespace.QName;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine;
package com.github.sardine;

import com.googlecode.sardine.impl.SardineImpl;
import com.github.sardine.impl.SardineImpl;

import java.net.ProxySelector;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.googlecode.sardine;
package com.github.sardine;

/**
* Provides version information from the manifest.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.googlecode.sardine.ant;
package com.github.sardine.ant;

import org.apache.tools.ant.ProjectComponent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package com.googlecode.sardine.ant;
package com.github.sardine.ant;

import java.util.ArrayList;
import java.util.List;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

import com.googlecode.sardine.Sardine;
import com.googlecode.sardine.SardineFactory;
import com.googlecode.sardine.ant.command.Copy;
import com.googlecode.sardine.ant.command.CreateDirectory;
import com.googlecode.sardine.ant.command.Delete;
import com.googlecode.sardine.ant.command.Exists;
import com.googlecode.sardine.ant.command.Move;
import com.googlecode.sardine.ant.command.Put;
import com.github.sardine.Sardine;
import com.github.sardine.SardineFactory;
import com.github.sardine.ant.command.Copy;
import com.github.sardine.ant.command.CreateDirectory;
import com.github.sardine.ant.command.Delete;
import com.github.sardine.ant.command.Exists;
import com.github.sardine.ant.command.Move;
import com.github.sardine.ant.command.Put;

/**
* Controller for the Sardine ant Task
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;

import com.googlecode.sardine.ant.Command;
import com.github.sardine.ant.Command;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.FileSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
/**
* Ant task comamnds.
*/
package com.googlecode.sardine.ant.command;
package com.github.sardine.ant.command;
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
/**
* Ant task support.
*/
package com.googlecode.sardine.ant;
package com.github.sardine.ant;
Loading

0 comments on commit b53f0c2

Please sign in to comment.