Skip to content

Instantly share code, notes, and snippets.

@joshm1
Created July 6, 2010 23:02
Show Gist options
  • Save joshm1/466055 to your computer and use it in GitHub Desktop.
Save joshm1/466055 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="Distribution">
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="Distribution.classpath">
<pathelement location="${basedir}/bin"/>
<fileset dir="${basedir}/lib/java">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="Distribution.classpath"/>
</javac>
</target>
<target depends="build" name="run-scenarios">
<taskdef name="scenarioRunner"
classname="org.jbehave.ant.ScenarioRunnerTask"
classpathref="Distribution.classpath" />
<scenarioRunner
scenarioIncludes="**/*Scenario.java"
scenarioExcludes="**/*Steps.java"
classLoaderInjected="true"
skip="false"
ignoreFailure="true"
batch="true"
scope="compile"
sourceDirectory="src"
testSourceDirectory="src" />
</target>
</project>
@joshm1
Copy link
Author

joshm1 commented Jul 7, 2010

Changed classLoaderInjected from false to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment