diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-05-29 00:17:20 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-06-23 15:55:18 +0200 |
commit | 0bbedd092a1f0f506d106943b4b400c7986c5f36 (patch) | |
tree | f07bdd4d4c2d69bd7e204d8e15e99209106aee3b /buildScripts/eclipse-p2.ant.xml | |
parent | 22ac024abb3680b298bef78052f5a13239513b29 (diff) | |
download | lombok-0bbedd092a1f0f506d106943b4b400c7986c5f36.tar.gz lombok-0bbedd092a1f0f506d106943b4b400c7986c5f36.tar.bz2 lombok-0bbedd092a1f0f506d106943b4b400c7986c5f36.zip |
[build] rewriting the build system
Diffstat (limited to 'buildScripts/eclipse-p2.ant.xml')
-rw-r--r-- | buildScripts/eclipse-p2.ant.xml | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/buildScripts/eclipse-p2.ant.xml b/buildScripts/eclipse-p2.ant.xml index db33b674..75f6c4eb 100644 --- a/buildScripts/eclipse-p2.ant.xml +++ b/buildScripts/eclipse-p2.ant.xml @@ -19,25 +19,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> -<project name="lombok-eclipse-p2" basedir=".." xmlns:ivy="antlib:com.zwitserloot.ivyplusplus"> +<project name="lombok.eclipsep2" basedir=".." xmlns:ivy="antlib:com.zwitserloot.ivyplusplus"> <description> This buildfile is part of projectlombok.org. It is responsible for building the eclipse P2 update site. </description> - <taskdef classpath="lib/ivyplusplus.jar" resource="com/zwitserloot/ivyplusplus/antlib.xml" uri="antlib:com.zwitserloot.ivyplusplus" /> - - <target name="-p2-clean"> + <target name="eclipsep2.clean"> <delete dir="build/p2" quiet="true" /> </target> - <target name="dist-eclipse-p2" depends="build-eclipse-p2"> - <tar destfile="dist/eclipse-p2.tar.bz2" compression="bzip2"> - <tarfileset dir="build/p2" /> - </tar> + <target name="-eclipsep2.get-epoch"> + <mkdir dir="build/p2-support" /> + <echo file="build/p2-support/Epoch.java">public class Epoch {public static void main(String[] args) {System.out.print(System.currentTimeMillis());}}</echo> + <javac srcdir="build/p2-support" release="8" includeAntRuntime="false" destdir="build/p2-support" /> + <java classname="Epoch" classpath="build/p2-support" fork="false" outputproperty="dt.epochMillis" /> </target> - <target name="build-eclipse-p2" depends="-set-epoch-millis"> - <property name="lombok.version" value="1.18.99" /> + <target name="eclipsep2.build" depends="version, -eclipsep2.get-epoch"> <tstamp><format property="dt.year" pattern="yyyy" /></tstamp> <mkdir dir="build/p2" /> <mkdir dir="build/p2/features" /> @@ -111,10 +109,25 @@ This buildfile is part of projectlombok.org. It is responsible for building the <delete file="build/p2/content.xml" /> </target> - <target name="-set-epoch-millis"> - <mkdir dir="build/p2-support" /> - <echo file="build/p2-support/Epoch.java">public class Epoch {public static void main(String[] args) {System.out.print(System.currentTimeMillis());}}</echo> - <javac srcdir="build/p2-support" release="8" includeAntRuntime="false" destdir="build/p2-support" /> - <java classname="Epoch" classpath="build/p2-support" fork="false" outputproperty="dt.epochMillis" /> + <target name="eclipsep2.pack" depends="eclipsep2.build"> + <tar destfile="dist/eclipse-p2.tar.bz2" compression="bzip2"> + <tarfileset dir="build/p2" /> + </tar> + </target> + + <target name="eclipsep2.publish" depends="setup.ssh, eclipsep2.pack"> + <ivy:scpUpload + from="dist/eclipse-p2.tar.bz2" + to="/data/lombok/staging" + server="projectlombok.org" + username="${ssh.username}" + keyfile="${ssh.keyfile}" + knownHosts="ssh.knownHosts" /> + <ivy:sshExec + cmd="/data/lombok/stagingCmd/deployP2" + server="projectlombok.org" + username="${ssh.username}" + keyfile="${ssh.keyfile}" + knownHosts="ssh.knownHosts" /> </target> </project> |