Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Commit 2febe35

Browse files
committed
separating into a core and plugin project
1 parent 3b2edee commit 2febe35

File tree

104 files changed

+785
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+785
-664
lines changed

phantomjs-maven-core/pom.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<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/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<parent>
5+
<groupId>com.github.klieber</groupId>
6+
<artifactId>phantomjs-root</artifactId>
7+
<version>0.6-SNAPSHOT</version>
8+
</parent>
9+
10+
<artifactId>phantomjs-maven-core</artifactId>
11+
12+
<name>PhantomJS Maven Core</name>
13+
<description>A library for downloading, installing, and executing phantomjs.</description>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>org.apache.maven</groupId>
18+
<artifactId>maven-core</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>org.codehaus.plexus</groupId>
22+
<artifactId>plexus-utils</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.eclipse.aether</groupId>
26+
<artifactId>aether-api</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.eclipse.aether</groupId>
30+
<artifactId>aether-util</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>de.schlichtherle.truezip</groupId>
34+
<artifactId>truezip-driver-zip</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>de.schlichtherle.truezip</groupId>
38+
<artifactId>truezip-driver-tar</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>de.schlichtherle.truezip</groupId>
42+
<artifactId>truezip-file</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>org.slf4j</groupId>
46+
<artifactId>slf4j-api</artifactId>
47+
</dependency>
48+
</dependencies>
49+
50+
</project>

src/main/java/com/github/klieber/phantomjs/PhantomJsException.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/PhantomJsException.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/archive/LinuxPhantomJSArchive.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/archive/LinuxPhantomJSArchive.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/archive/MacOSXPhantomJSArchive.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/archive/MacOSXPhantomJSArchive.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/archive/PhantomJSArchive.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/archive/PhantomJSArchive.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public abstract class PhantomJSArchive {
2727

2828
public PhantomJSArchive(String version) {
2929
this.basename = "phantomjs";
30-
this.version = version;
30+
this.version = version;
3131
}
3232

3333
public abstract String getExtension();
@@ -62,13 +62,12 @@ private StringBuilder getArchiveNameSB() {
6262
}
6363

6464
private StringBuilder getNameWithoutExtension() {
65-
StringBuilder sb = new StringBuilder()
66-
.append(this.basename)
67-
.append("-")
68-
.append(this.version)
69-
.append("-")
70-
.append(this.getClassifier());
71-
return sb;
65+
return new StringBuilder()
66+
.append(this.basename)
67+
.append("-")
68+
.append(this.version)
69+
.append("-")
70+
.append(this.getClassifier());
7271
}
7372

7473
public final String getVersion() {

src/main/java/com/github/klieber/phantomjs/archive/PhantomJSArchiveBuilder.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/archive/PhantomJSArchiveBuilder.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/archive/WindowsPhantomJSArchive.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/archive/WindowsPhantomJSArchive.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/cache/CachedArtifact.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/cache/CachedArtifact.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.github.klieber.phantomjs.util.ArtifactBuilder;
2525
import org.eclipse.aether.RepositorySystemSession;
2626
import org.eclipse.aether.artifact.Artifact;
27-
import org.eclipse.aether.repository.LocalRepository;
2827
import org.eclipse.aether.repository.LocalRepositoryManager;
2928

3029
import java.io.File;

src/main/java/com/github/klieber/phantomjs/cache/CachedFile.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/cache/CachedFile.java

File renamed without changes.

src/main/java/com/github/klieber/phantomjs/download/DownloadException.java renamed to phantomjs-maven-core/src/main/java/com/github/klieber/phantomjs/download/DownloadException.java

File renamed without changes.

0 commit comments

Comments
 (0)