forked from flexunit/flexunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup compilation of fluint extensions and included them in tests
- Loading branch information
Simeon Bateman
committed
Mar 1, 2011
1 parent
904dd0e
commit cdaddb1
Showing
5 changed files
with
143 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
.DS_Store | ||
FlexUnit4/bin/* | ||
FlexUnit4/target/* | ||
*/bin-debug | ||
FlexUnit4UIListener/bin/* | ||
FlexUnit4CIListener/bin/* | ||
FlexUnit4FluintExtensions/bin/* | ||
FlexUnit4FluintExtensions/target/* | ||
FlexUnit4CIListener/target/* | ||
FlexUnit4CIListener/libs/* | ||
FlexUnit4AirCIListener/bin/* | ||
FlexUnit4FlexCoverListener/bin/* | ||
FlexUnit4FluintExtensions/bin/* | ||
FlexUnit4FlexCoverListener/libs/* | ||
FlexUnit4FlexCoverListener/target/* | ||
FlexUnit4CIListener/bin/* | ||
FlexUnit4AntTasks/target/* | ||
FlexUnit4Test/libs/* | ||
FlexUnit4Test/target/* | ||
FlexUnit4UIListener/libs/* | ||
FlexUnit4UIListener/target/* | ||
.metadata | ||
.actionScriptProperties | ||
*/.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="FlexUnit4CIListener" basedir="." default="package"> | ||
<import file="${basedir}/../utils.xml" /> | ||
<property environment="env" /> | ||
|
||
<!-- Configuration --> | ||
<property name="build.artifactId" value="fluint-extensions" /> | ||
<property name="build.finalName" value="${build.artifactId}-${build.version}-${build.number}-${build.sdk}" /> | ||
<property name="build.packaging" value="swc" /> | ||
<property name="build.deploy.name" value="FlexUnit Fluint Extensions" /> | ||
<property name="build.deploy.description" value="Extensions to FlexUnit 4 to allow interaction with Fluint tests." /> | ||
|
||
<!-- Existing --> | ||
<property name="src.loc" location="${basedir}/src" /> | ||
<property name="lib.loc" location="${basedir}/libs" /> | ||
|
||
<!-- Generated --> | ||
<property name="dist.loc" location="${basedir}/target" /> | ||
<property name="sonatype.loc" location="${dist.loc}/sonatype" /> | ||
<property name="bin.loc" location="${basedir}/target/bin" /> | ||
<property name="doc.loc" location="${basedir}/target/docs" /> | ||
|
||
<!-- Setup Flex Ant Resources --> | ||
<property name="FLEX_HOME" location="${env.FLEX_HOME}" /> | ||
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" /> | ||
|
||
<target name="clean"> | ||
<delete dir="${dist.loc}" failonerror="false" /> | ||
<delete failonerror="false"> | ||
<fileset dir="${lib.loc}"> | ||
<include name="flexunit*.swc" /> | ||
</fileset> | ||
</delete> | ||
</target> | ||
|
||
<target name="init"> | ||
<mkdir dir="${lib.loc}" /> | ||
<mkdir dir="${dist.loc}" /> | ||
<mkdir dir="${sonatype.loc}" /> | ||
<mkdir dir="${bin.loc}" /> | ||
<mkdir dir="${doc.loc}" /> | ||
|
||
<!-- Copy required dependencies --> | ||
<copy todir="${lib.loc}" overwrite="true" failonerror="false"> | ||
<fileset dir="${basedir}/../FlexUnit4/target"> | ||
<include name="flexunit*as3*.swc" /> | ||
</fileset> | ||
</copy> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<compc output="${bin.loc}/${build.finalName}.${build.packaging}"> | ||
<include-sources dir="${src.loc}" includes="*" append="true" /> | ||
<source-path path-element="${src.loc}" /> | ||
<compiler.external-library-path dir="${lib.loc}" append="true"> | ||
<include name="*.swc" /> | ||
</compiler.external-library-path> | ||
<compiler.external-library-path dir="${FLEX_HOME}/frameworks/libs" append="true"> | ||
<include name="flex.swc" /> | ||
<include name="framework.swc" /> | ||
<include name="rpc.swc" /> | ||
<include name="utilities.swc" /> | ||
</compiler.external-library-path> | ||
<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces> | ||
<compiler.headless-server>true</compiler.headless-server> | ||
</compc> | ||
</target> | ||
|
||
<target name="report" depends="compile" if="build.report"> | ||
<java jar="${FLEX_HOME}/lib/asdoc.jar" fork="true" failonerror="true"> | ||
<jvmarg value="-Xmx256M" /> | ||
<arg line="+flexlib '${FLEX_HOME}/frameworks'" /> | ||
<arg line="-doc-sources '${src.loc}'" /> | ||
<arg line="-source-path+='${src.loc}'" /> | ||
<arg line="-output '${doc.loc}'" /> | ||
<arg line="-library-path+='${lib.loc}'" /> | ||
</java> | ||
</target> | ||
|
||
<target name="package" depends="report"> | ||
<copy file="${bin.loc}/${build.finalName}.${build.packaging}" todir="${dist.loc}" /> | ||
</target> | ||
|
||
<target name="deploy" depends="package" description="Requires Ant-Contrib and GPG to work."> | ||
<!-- Copy artifacts w/o build number for use with sonatype --> | ||
<copy todir="${sonatype.loc}"> | ||
<fileset dir="${dist.loc}"> | ||
<include name="*.swc" /> | ||
</fileset> | ||
<filtermapper> | ||
<replacestring from="-${build.number}-" to="-" /> | ||
</filtermapper> | ||
</copy> | ||
|
||
<!-- prepare sonatype bundle --> | ||
<sonatype-bundle dir="${sonatype.loc}" | ||
todir="${sonatype.loc}" | ||
pomTemplate="${basedir}/../pom.template" | ||
artifact="${build.artifactId}" | ||
type="${build.packaging}" | ||
name="${build.deploy.name}" | ||
version="${build.version}" | ||
description="${build.deploy.description}"> | ||
<includes> | ||
<include name="*.swc" /> | ||
<include name="pom.xml" /> | ||
</includes> | ||
</sonatype-bundle> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters