mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-09-18 21:45:56 +00:00
Skip redundant clone for recent versions
This commit is contained in:
parent
6fc608d606
commit
a3e4a8358d
1 changed files with 11 additions and 8 deletions
|
@ -517,15 +517,18 @@ public class Builder
|
|||
|
||||
FileUtils.moveDirectory( tmpNms, nmsDir );
|
||||
|
||||
File spigotApi = new File( spigot, "Bukkit" );
|
||||
if ( !spigotApi.exists() )
|
||||
if ( versionInfo.getToolsVersion() < 93 )
|
||||
{
|
||||
clone( "file://" + bukkit.getAbsolutePath(), spigotApi );
|
||||
}
|
||||
File spigotServer = new File( spigot, "CraftBukkit" );
|
||||
if ( !spigotServer.exists() )
|
||||
{
|
||||
clone( "file://" + craftBukkit.getAbsolutePath(), spigotServer );
|
||||
File spigotApi = new File( spigot, "Bukkit" );
|
||||
if ( !spigotApi.exists() )
|
||||
{
|
||||
clone( "file://" + bukkit.getAbsolutePath(), spigotApi );
|
||||
}
|
||||
File spigotServer = new File( spigot, "CraftBukkit" );
|
||||
if ( !spigotServer.exists() )
|
||||
{
|
||||
clone( "file://" + craftBukkit.getAbsolutePath(), spigotServer );
|
||||
}
|
||||
}
|
||||
|
||||
// Git spigotApiGit = Git.open( spigotApi );
|
||||
|
|
Loading…
Add table
Reference in a new issue