Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial clone fails with The system cannot find the path specified

I'm trying a release:perform for my Maven application and it fails when is doing a Mercurial checkout as part of the process. Trying the same command from the command prompt, fails but provides more details:

hg clone -r Simple-Marauroa-0.02.05 https://javydreamercsw@bit
bucket.org/javydreamercsw/simple-marauroa-java "Z:\NetBeans\Simple Marauroa\Simp
le Marauroa Java\Simple Marauroa Parent\target\checkout"
adding changesets
adding manifests
adding file changes
added 226 changesets with 3379 changes to 2264 files
updating to branch default
abort: Z:\NetBeans\Simple Marauroa\Simple Marauroa Java\Simple Marauroa Parent\t
arget\checkout\Simple Marauroa Parent/Card Game Interface DataBase Implementatio
n/src/main/java/com/reflexit/magiccards/core/storage/database/controller/CardCol
lectionHasCardJpaController.java: The system cannot find the path specified

At first I thought that the file was not in the repository, but it is. If you wonder Z, is an USB drive, but I have been able to release smaller projects from the same drive. Performing the same command on my desktop works fine.

This is done on Windows 7 and it seems related the long path I guess.

Any idea?

like image 612
javydreamercsw Avatar asked Sep 06 '12 15:09

javydreamercsw


1 Answers

Using the workingDirectory parameter with a local, shorter path like C:\checkout, did the trick.

like image 169
javydreamercsw Avatar answered Nov 15 '22 09:11

javydreamercsw