Skip to content

Instantly share code, notes, and snippets.

@rjernst
Created August 13, 2015 07:45
Show Gist options
  • Save rjernst/9c9dcda71b1ac9ee1f85 to your computer and use it in GitHub Desktop.
Save rjernst/9c9dcda71b1ac9ee1f85 to your computer and use it in GitHub Desktop.
diff --git a/dev-tools/src/main/resources/ant/integration-tests.xml b/dev-tools/src/main/resources/ant/integration-tests.xml
index 013a6d3..6889680 100644
--- a/dev-tools/src/main/resources/ant/integration-tests.xml
+++ b/dev-tools/src/main/resources/ant/integration-tests.xml
@@ -25,14 +25,18 @@
<tempfile property="temp.cwd" destDir="${integ.temp}"/>
<mkdir dir="${temp.cwd}"/>
+ <!-- convert to a proper location, because CMD.exe is known to not work correctly with forward slashes -->
+ <local name="script.path"/>
+ <property name="script.path" location="@{script}.bat"/>
+
<!-- print commands we run -->
<local name="script.base"/>
<basename file="@{script}" property="script.base"/>
<!-- crappy way to output, but we need it. make it nice later -->
- <echoxml><exec script="${script.base}"><nested/></exec></echoxml>
+ <echoxml><exec script="${script.path}"><nested/></exec></echoxml>
<exec executable="cmd" osfamily="winnt" dir="${temp.cwd}" failonerror="${failonerror}" spawn="@{spawn}" taskname="${script.base}">
<arg value="/c"/>
- <arg value="@{script}.bat"/>
+ <arg file="&quot;${script.path}&quot;"/>
<nested/>
</exec>
@Mpdreamz
Copy link

Hey ryan do you have a mvn goal i can call directly on the command line to make this fail ? I keep getting random test failures only once did the tests run to completion and did I a see this ant run failure.

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