Obtain AS depends via Maven, publish AS artifacts to Maven. Zell, please

advise:

    <!-- TODO: these don't seem to be needed for the ActionScript library
               build, why are/where they here -->
        <include name="thane-0.0-SNAPSHOT.abc"/>
        <include name="tamarin-builtin.abc"/>
        <include name="narya-abc.abc"/>


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1004 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2010-11-18 21:12:01 +00:00
parent f1582b44ff
commit 2e132d0851
3 changed files with 72 additions and 15 deletions
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.threerings</groupId>
<artifactId>vilyalib</artifactId>
<packaging>swc</packaging>
<version>1.0-SNAPSHOT</version>
<name>vilya</name>
<description>Facilities for making networked multiplayer games.</description>
<url>http://code.google.com/p/vilya/</url>
<issueManagement>
<url>http://code.google.com/p/vilya/issues/list</url>
</issueManagement>
<repositories>
<repository>
<id>flexlib-repo</id>
<url>http://maven.ow2.org/maven2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.threerings</groupId>
<artifactId>aspirin</artifactId>
<version>1.6</version>
<scope>compile</scope>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.threerings</groupId>
<artifactId>naryalib</artifactId>
<version>1.2-SNAPSHOT</version>
<scope>compile</scope>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.threerings</groupId>
<artifactId>nenyalib</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
<type>swc</type>
</dependency>
</dependencies>
</project>
+27 -15
View File
@@ -39,21 +39,6 @@
<pathelement location="${classes.dir}"/>
<pathelement location="${tclasses.dir}"/>
</path>
<!-- TEMP: needed for ActionScript library build -->
<property name="libs.dir" value="lib"/>
<copy todir="${deploy.dir}/lib" flatten="true">
<fileset dir="${libs.dir}">
<include name="aspirin*.swc"/>
<include name="naryalib.swc"/>
<include name="nenyalib.swc"/>
<include name="as3isolib-fp9.swc"/>
<!-- Thane dependencies -->
<include name="thane-0.0-SNAPSHOT.abc"/>
<include name="tamarin-builtin.abc"/>
<include name="narya-abc.abc"/>
</fileset>
</copy>
<!-- END TEMP -->
</target>
<target name="-preptools" depends="-prepare">
@@ -106,6 +91,28 @@
<target name="aslib" unless="no_rebuild_aslib" depends="-checkaslib"
description="Builds the ActionScript code">
<!-- TODO: these don't seem to be needed for the ActionScript library
build, why are/where they here -->
<property name="libs.dir" value="lib"/>
<copy todir="${deploy.dir}/lib" flatten="true">
<fileset dir="${libs.dir}">
<!-- Thane dependencies -->
<include name="thane-0.0-SNAPSHOT.abc"/>
<include name="tamarin-builtin.abc"/>
<include name="narya-abc.abc"/>
</fileset>
</copy>
<!-- END TODO -->
<!-- obtain our ActionScript dependencies via Maven -->
<artifact:pom id="as-pom" file="as-pom.xml"/>
<artifact:dependencies filesetId="aslibs.fileset" pomRefId="as-pom" useScope="compile"/>
<copy todir="${deploy.dir}/lib">
<fileset dir="lib" includes="as3isolib-*.swc"/>
<fileset refid="aslibs.fileset"/>
<mapper type="flatten"/>
</copy>
<copy file="etc/aslib-config.xml.in" tofile="${deploy.dir}/aslib-config.xml">
<filterset>
<filter token="flex_sdk_dir" value="${flexsdk.dir}"/>
@@ -313,5 +320,10 @@
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="pom"/>
</artifact:deploy>
<artifact:pom id="as-pom" file="as-pom.xml"/>
<artifact:deploy file="${deploy.dir}/${ant.project.name}lib.swc" uniqueVersion="false">
<remoteRepository url="${maven.deploy.repo}"/>
<pom refid="as-pom"/>
</artifact:deploy>
</target>
</project>
Binary file not shown.