| <?xml version="1.0" encoding="UTF-8"?> |
| <project default="build-site"> |
| <target name="init"> |
| <tstamp/> |
| <property name="sitedir" location="thirdparty-nonp2"/> |
| |
| <property name="thriftversion" value="0.9.3"/> |
| <property name="thrifturl" value="https://repo1.maven.org/maven2/org/apache/thrift/libthrift/${thriftversion}/libthrift-${thriftversion}.jar" /> |
| <property name="thriftfname" value="org.apache.thrift_${thriftversion}.jar"/> |
| </target> |
| |
| <!-- Packages everything we don't have in p2 update sites to a p2 update site, which we can upload to Github Pages and use from Tycho (Tycho only works with unpacked p2 repos). --> |
| <target name="build-site" depends="init"> |
| <delete dir="${sitedir}"/> |
| <mkdir dir="${sitedir}/features"/> |
| <mkdir dir="${sitedir}/plugins"/> |
| |
| <!-- SVNKit has a "publish yourself as OSS and you'll be fine" kind of license (http://svnkit.com/license.html) --> |
| <p2.mirror source="http://eclipse.svnkit.com/1.8.x/"> |
| <destination kind="metadata" location="file://${sitedir}" name="SVNKit" append="true" /> |
| <destination kind="artifact" location="file://${sitedir}" name="SVNKit" append="true" /> |
| <iu id="net.java.dev.jna.feature.group" /> |
| <iu id="org.tmatesoft.svnkit.feature.group" /> |
| </p2.mirror> |
| <delete dir="${sitedir}" includes="*.jar"/> |
| |
| <!-- Thrift is an Apache project (ASL 2.0) --> |
| <get src="${thrifturl}" dest="${sitedir}/plugins/${thriftfname}"/> |
| |
| <eclipse.publish.featuresAndBundles |
| repository="file:/${sitedir}/" |
| category="file:/${basedir}/category-3rdparty.xml" |
| compress="true"> |
| <features dir="${sitedir}/features" /> |
| <bundles dir="${sitedir}/plugins" /> |
| </eclipse.publish.featuresAndBundles> |
| </target> |
| |
| </project> |