www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <richard.eck...@gmail.com>
Subject ${maven.home} problem on slave windows1
Date Tue, 30 Jul 2013 17:48:02 GMT
Hi there,

I have an odd problem running a Maven build on the slave windows1.

The build fails with the message:

${maven.home} is not specified as a directory: 'F:\hudson\tools\maven\latest3'.

The code producing this error is basically taking the value of the "maven.home"
system property, creating a Java File object from the value and calling ".isDirectory()"
on it. So I wonder why "new File("F:\hudson\tools\maven\latest3").isDirectory()" would 
return false on windows1. Mind, this is not my code, it's part of Maven itself.

Earlier in the build log, the same path is used in a classpath line and appears
to be unproblematic there:

f:\hudson\tools\java\latest-1.6-64/bin/java -Xmx800m -XX:MaxPermSize=256m -cp f:\hudson\hudson-slave\maven3-agent.jar;f:\hudson\tools\maven\latest3\boot\plexus-classworlds-2.4.jar
org.jvnet.hudson.maven3.agent.Maven3Main f:\hudson\tools\maven\latest3 C:\Users\hudson\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\4bb6b7e7-5af105be
f:\hudson\hudson-slave\maven3-interceptor.jar f:\hudson\hudson-slave\maven3-interceptor-commons.jar

The only difference I can see is "F:\…" vs. "f:\…", but as Windows is not case sensitive,
that shouldn't 
be an issue.

A problematic build is e.g. this one: https://builds.apache.org/job/UIMA-uimaFIT/122/console

Since the build is nice on Linux slaves, I suspect some Windows oddness. 
Does anybody have an idea what's the problem here? 


-- Richard
View raw message