mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
Merge pull request #95 from Parabot/feature/custom-maven
[FEATURE] Custom maven repository
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
mvn -U package
|
mvn -U package
|
||||||
mkdir -p $TRAVIS_BUILD_DIR/target/apidocs/zips/
|
|
||||||
zip -r $TRAVIS_BUILD_DIR/target/apidocs/zips/$PARABOT_VERSION.zip $TRAVIS_BUILD_DIR/target/apidocs/$PARABOT_VERSION
|
|
||||||
else
|
else
|
||||||
mvn -Dbuild.version="-RC-$TRAVIS_BUILD_ID" -U package
|
mvn -Dbuild.version="-RC-$TRAVIS_BUILD_ID" -U package
|
||||||
fi
|
fi
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
mvn install source:jar javadoc:jar deploy site-deploy
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<jdk.version>1.7</jdk.version>
|
<jdk.version>1.7</jdk.version>
|
||||||
<build.version></build.version>
|
<build.version></build.version>
|
||||||
|
<additionalparam>-Xdoclint:none</additionalparam>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<name>Parabot client</name>
|
<name>Parabot client</name>
|
||||||
@@ -104,12 +105,14 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.10.4</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-javadocs</id>
|
<id>attach-javadocs</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>jar</goal>
|
<goal>jar</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<phase>deploy</phase>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
@@ -117,9 +120,23 @@
|
|||||||
<failOnError>false</failOnError>
|
<failOnError>false</failOnError>
|
||||||
<quiet>true</quiet>
|
<quiet>true</quiet>
|
||||||
<outputDirectory>${project.build.directory}/apidocs/${project.version}</outputDirectory>
|
<outputDirectory>${project.build.directory}/apidocs/${project.version}</outputDirectory>
|
||||||
|
<additionalparam>-Xdoclint:none</additionalparam>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
<version>3.5.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-descriptor</id>
|
||||||
|
<goals>
|
||||||
|
<goal>attach-descriptor</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
@@ -140,7 +157,6 @@
|
|||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>make-assembly</id>
|
<id>make-assembly</id>
|
||||||
<!-- bind to the packaging phase -->
|
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
@@ -149,5 +165,38 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
|
<artifactId>wagon-ftp</artifactId>
|
||||||
|
<version>2.10</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<downloadUrl>https://maven.parabot.org/</downloadUrl>
|
||||||
|
<repository>
|
||||||
|
<uniqueVersion>false</uniqueVersion>
|
||||||
|
<id>parabot-maven</id>
|
||||||
|
<name>Custom Maven Repository</name>
|
||||||
|
<url>ftp://maven.parabot.org</url>
|
||||||
|
<layout>default</layout>
|
||||||
|
</repository>
|
||||||
|
<site>
|
||||||
|
<id>parabot-maven</id>
|
||||||
|
<name>Frontend Parabot Maven</name>
|
||||||
|
<url>ftp://maven.parabot.org/docs/${artifactId}/</url>
|
||||||
|
</site>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</reporting>
|
||||||
</project>
|
</project>
|
||||||
@@ -27,7 +27,7 @@ public class Getter implements Injectable {
|
|||||||
*
|
*
|
||||||
* @param into - classnode to inject getter method in
|
* @param into - classnode to inject getter method in
|
||||||
* @param fieldLocation - classnode where field is located
|
* @param fieldLocation - classnode where field is located
|
||||||
* @param fieldName - field name to get
|
* @param fieldNode - field name to get
|
||||||
* @param methodName - method name of getter
|
* @param methodName - method name of getter
|
||||||
* @param returnDesc - return type of method, can be null for default return
|
* @param returnDesc - return type of method, can be null for default return
|
||||||
* @param staticMethod - pass true if you want the method to be static
|
* @param staticMethod - pass true if you want the method to be static
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ import org.parabot.core.io.SizeInputStream;
|
|||||||
import org.parabot.core.ui.components.VerboseLoader;
|
import org.parabot.core.ui.components.VerboseLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Manages, parses and dumps class files & jars
|
* Manages, parses and dumps class files & jars
|
||||||
*
|
*
|
||||||
* @author Everel
|
* @author Everel
|
||||||
@@ -83,7 +82,7 @@ public class ClassPath {
|
|||||||
/**
|
/**
|
||||||
* Adds a jar to this classpath
|
* Adds a jar to this classpath
|
||||||
*
|
*
|
||||||
* @param url
|
* @param connection
|
||||||
*/
|
*/
|
||||||
public void addJar(final URLConnection connection) {
|
public void addJar(final URLConnection connection) {
|
||||||
try {
|
try {
|
||||||
@@ -148,7 +147,7 @@ public class ClassPath {
|
|||||||
/**
|
/**
|
||||||
* Finds and loads all classes/jar files in folder
|
* Finds and loads all classes/jar files in folder
|
||||||
*
|
*
|
||||||
* @param file
|
* @param f
|
||||||
* to find class / jar files
|
* to find class / jar files
|
||||||
* @param root
|
* @param root
|
||||||
*/
|
*/
|
||||||
@@ -192,9 +191,9 @@ public class ClassPath {
|
|||||||
/**
|
/**
|
||||||
* Loads class from input stream
|
* Loads class from input stream
|
||||||
*
|
*
|
||||||
* @param inputstream
|
* @param in
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
protected void loadClass(InputStream in) throws IOException {
|
protected void loadClass(InputStream in) throws IOException {
|
||||||
ClassReader cr = new ClassReader(in);
|
ClassReader cr = new ClassReader(in);
|
||||||
ClassNode cn = new ClassNode();
|
ClassNode cn = new ClassNode();
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ public abstract class AbstractDebugger implements Paintable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return <b>true</b> if this debugger is enabled, otherwise <b>false</b>
|
* @return True if this debugger is enabled, otherwise false
|
||||||
*/
|
*/
|
||||||
public abstract boolean isEnabled();
|
public abstract boolean isEnabled();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Timer {
|
|||||||
/**
|
/**
|
||||||
* Timer Constructor
|
* Timer Constructor
|
||||||
*
|
*
|
||||||
* @param start
|
* @param end
|
||||||
*/
|
*/
|
||||||
public Timer(long end) {
|
public Timer(long end) {
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user