[BUILDTOOLS-72] Apache FileExistsException Created: 20/Jan/15  Updated: 02/Aug/21  Resolved: 10/Mar/15

Status: Closed
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Europia79 Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: BuildTools
Environment:

Windows 7 git-bash terminal
git version 1.9.4.msysgit.2
apache maven 3.2.1
jdk7 + jdk8


Attachments: Text File BuildTools.log.txt    

 Description   

Patching with WorldServer.patch
Exception in thread "main" org.apache.commons.io.FileExistsException: Destination 'CraftBukkit\src\main\java\net' already exists
at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2748)
at org.spigotmc.builder.Builder.main(Builder.java:324)



 Comments   
Comment by Justin Rose [ 31/Jul/21 ]

I fixed this by cloning the repo and fixing the mistake in the code... Builder tries to write to nmsDir when it isn't empty, leads to unhandled exception. Surrounding it with a try/catch and deleting the nmsDir fixes the problem.

EDIT:

Didn't solve issue, instead look at BUILDTOOLS-591

Comment by Binary Banana [ 13/Jun/21 ]

@Europia79 How did you resolve this?

Comment by Europia79 [ 06/Apr/15 ]

Yeah, that's the first thing I tried, was removing the files, but it happens from a clean invocation of java -jar BuildTools.jar

if anyone wants to jump on Skype or TeamViewer, I can show you.

Comment by Kyle K. [ 05/Apr/15 ]

This probably means that the files already exist. Please remove them and try again.

Comment by cindy_k [ 10/Mar/15 ]

Please ask for help on the forums or in IRC for this issue.
http://www.spigotmc.org/pages/irc/
Thank you!

Generated at Sat Dec 13 14:31:37 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.