mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
#48: Auto apply compile flags based on the pr flags
This commit is contained in:
parent
da67ff1ad2
commit
2d22573001
1 changed files with 14 additions and 0 deletions
|
@ -44,6 +44,7 @@ import java.security.NoSuchAlgorithmException;
|
|||
import java.security.SecureRandom;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
@ -198,6 +199,19 @@ public class Builder
|
|||
System.err.println( "Using --dev or --dont-update with --rev makes no sense, exiting." );
|
||||
System.exit( 1 );
|
||||
}
|
||||
if ( compile.isEmpty() && !pullRequests.isEmpty() )
|
||||
{
|
||||
compile = new ArrayList<>();
|
||||
if ( getPullRequest( Repository.BUKKIT ) != null || getPullRequest( Repository.CRAFTBUKKIT ) != null )
|
||||
{
|
||||
compile.add( Compile.CRAFTBUKKIT );
|
||||
}
|
||||
|
||||
if ( getPullRequest( Repository.SPIGOT ) != null )
|
||||
{
|
||||
compile.add( Compile.SPIGOT );
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue