aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisagh Moayyed <mmoayyed@unicon.net>2018-08-22 14:10:40 +0430
committerRoel Spilker <r.spilker@gmail.com>2018-08-27 21:38:47 +0200
commitae881e5de6294ebc5fabc6f39f3ff7686d2bacb7 (patch)
tree964dfa82d36a46c711334182e2878976d5d10953
parentca2b8c281b6efd1ebc99b212483c9751834f570b (diff)
downloadlombok-ae881e5de6294ebc5fabc6f39f3ff7686d2bacb7.tar.gz
lombok-ae881e5de6294ebc5fabc6f39f3ff7686d2bacb7.tar.bz2
lombok-ae881e5de6294ebc5fabc6f39f3ff7686d2bacb7.zip
add ant task to install lombok jar into local maven repository
-rw-r--r--build.xml28
1 files changed, 27 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index c50bf644..b6c9657c 100644
--- a/build.xml
+++ b/build.xml
@@ -32,7 +32,8 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<property name="rt-openjdk8" location="lib/openJDK8Environment/openjdk8_rt.jar" />
<available file="${rt-openjdk6}" property="rt-openjdk6.available" />
<available file="${rt-openjdk8}" property="rt-openjdk8.available" />
-
+ <property environment="env"/>
+
<path id="build.path">
<fileset dir="lib/build">
<include name="*.jar" />
@@ -367,6 +368,31 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating</echo>
<property name="lombok.dist.built" value="true" />
</target>
+ <target name="install-maven" depends="version,dist" description="Install THE lombok.jar into the local maven repository using Apache Maven, assumed to be available in $PATH">
+ <fail unless="env.MAVEN_HOME" message="MAVEN_HOME environment variable must be set. "/>
+ <echo message="MAVEN_HOME: ${env.MAVEN_HOME}" />
+ <echo message="Lombok version: ${lombok.version}" />
+
+ <echo file="pom.xml"><![CDATA[<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>]]>${lombok.version}<![CDATA[</version>
+</project>]]></echo>
+
+ <exec executable="${env.MAVEN_HOME}/bin/mvn">
+ <arg value="install:install-file"/>
+ <arg value="-Dfile=dist/lombok-${lombok.version}.jar"/>
+ <arg value="-DgroupId=org.projectlombok1"/>
+ <arg value="-DartifactId=lombok"/>
+ <arg value="-Dversion=${lombok.version}"/>
+ <arg value="-Dpackaging=jar"/>
+ </exec>
+
+ <delete file="pom.xml" quiet="true" />
+
+ </target>
+
<target name="dist-utils" description="Builds lombok-utils.jar, which is a library used by i.e. lombok.ast project." depends="version, compile">
<mkdir dir="dist" />
<jar destfile="dist/lombok-utils-${lombok.version}.jar">