6ab4205054
Presently we have some servlet bits from threerings, but shortly I'll be pulling most of Narya's util package herein. This is a public library, so we don't want hopelessly threerings-specific things in there (put those in the newly slimmed down threerings library). What we can do is rely on Guava, which is what keeps useful things out of samskivert and often pushes them into weird places like Narya. What we can also do is use ooo-util to export the latest version of samskivert and Guava to all of our other projects. A project that relies on the latest snapshot of ooo-util can expect to have the latest snapshot of samskivert and Guava, and when either samskivert or Guava ships a versioned release, we'll ship a versioned release of ooo-util so that projects can bump to that release to obtain the latest transitive depends. We should stronly resist the addition of additional depends to this library, unless they are indisputably useful to every single library and project in the whole wide world. Guava made that cut a long while back, and samskivert lingers with us like an embarrassing uncle, but I don't imagine another universally useful library is likely to come along in this decade. But if it does, we've got a place to put it.
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
<project name="bootstrap" default="-extract-ooo-build">
|
|
<!--
|
|
Pulls in ooo-build from our maven repository to make our base build system available.
|
|
From http://ooo-build.googlecode.com/hg/etc/bootstrap.xml
|
|
|
|
To use, copy this file into your project's directory and add
|
|
|
|
<property name="ooo-build.vers" value="2.1"/>
|
|
<ant antfile="bootstrap.xml"/>
|
|
<import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>
|
|
|
|
to the top level of your build.xml. Then you can depend on -init-ooo in your lowest level
|
|
target to expose ooo-build's maven macros, javac macros, and antcontrib.
|
|
-->
|
|
|
|
<property name="maven.dir" value="${user.home}/.m2"/>
|
|
<property name="ooo-build.path"
|
|
value="com/threerings/ooo-build/${ooo-build.vers}"/>
|
|
<property name="ooo-build.jar"
|
|
value="ooo-build-${ooo-build.vers}.jar"/>
|
|
<property name="ooo-build.local.dir" value="${maven.dir}/repository/${ooo-build.path}"/>
|
|
<property name="ooo-build.local.file" value="${ooo-build.local.dir}/${ooo-build.jar}"/>
|
|
<condition property="ooo-build.exists"><available file="${ooo-build.local.file}"/></condition>
|
|
<target name="-download-ooo-build" unless="ooo-build.exists">
|
|
<mkdir dir="${ooo-build.local.dir}"/>
|
|
<get src="http://ooo-maven.googlecode.com/hg/repository/${ooo-build.path}/${ooo-build.jar}"
|
|
dest="${ooo-build.local.file}" usetimestamp="true"/>
|
|
</target>
|
|
|
|
<property name="ooo-build.dir" value="${maven.dir}/ooo-build/${ooo-build.vers}"/>
|
|
<condition property="extracted.exists"><available file="${ooo-build.dir}/ooo-build.xml"/></condition>
|
|
<target name="-extract-ooo-build" depends="-download-ooo-build" unless="extracted.exists">
|
|
<mkdir dir="${ooo-build.dir}"/>
|
|
<unjar src="${ooo-build.local.file}" dest="${ooo-build.dir}"/>
|
|
</target>
|
|
</project>
|