building teamcity bundled rest-api

Hello,

I am attempting to extend the rest-api with a method to lookup a build's fullname based on the build's typeId.

The need for this has been described pretty well in:
https://github.com/JFrogDev/teamcity-artifactory-plugin/issues/30

You can use SBuild getFullName on the server side pretty well, but on the agent side, I don't really see a way to accomplish it from within the agent plugin.  Having this functionality would be best exposed via the rest-api so that it can be generally available.

----
I see that I can modify the bundled source code from here:
https://confluence.jetbrains.com/display/TW/REST+API+Plugin

I have attempted to build both:
http://svn.jetbrains.org/teamcity/plugins/rest-api/trunk/
and 
http://svn.jetbrains.org/teamcity/plugins/rest-api/trunk-protocol-9.1/

The trunk makes some mention of using gradle -b update-libs.gradle update, which I have run without issues in trunk, the 9.1 does not contain the update-libs.gradile file.

I update the build.properties path.variable.teamcitydistribution variable and both branches fail to build when using ant dist.

Do you have any suggestions on how to resolve these issues?
Thanks!
--dave

Buildfile: c:\working\dhorner-rest-api\trunk\build.xml


clean.module.rest-api:
[delete] Deleting directory c:\working\dhorner-rest-api\trunk\out\production\rest-api

clean.module.contrib:

rest-api.clean:

clean:

register.custom.compilers:

compile.module.rest-api.production:
[mkdir] Created dir: c:\working\dhorner-rest-api\trunk\out\production\rest-api
[javac2] c:\working\dhorner-rest-api\trunk\rest-api.xml:286: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac2] Compiling 307 source files to c:\working\dhorner-rest-api\trunk\out\production\rest-api
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:57: error: cannot find symbol
[javac2] import jetbrains.buildServer.web.CorsOrigins;
[javac2] ^
[javac2] symbol: class CorsOrigins
[javac2] location: package jetbrains.buildServer.web
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:113: error: cannot find symbol
[javac2] private final CorsOrigins myAllowedOrigins = new CorsOrigins();
[javac2] ^
[javac2] symbol: class CorsOrigins
[javac2] location: class APIController
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\problem\TestOccurrence.java:30: error: cannot find symbol
[javac2] import jetbrains.buildServer.serverSide.MultiTestRun;
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] location: package jetbrains.buildServer.serverSide
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:40: error: cannot find symbol
[javac2] import jetbrains.buildServer.diagnostic.ThreadDumpDataProvider;
[javac2] ^
[javac2] symbol: class ThreadDumpDataProvider
[javac2] location: package jetbrains.buildServer.diagnostic
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:113: error: cannot find symbol
[javac2] private final CorsOrigins myAllowedOrigins = new CorsOrigins();
[javac2] ^
[javac2] symbol: class CorsOrigins
[javac2] location: class APIController
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:455: error: cannot find symbol
[javac2] NamedThreadFactory.executeWithNewThreadNameFuncThrow("Processing REST request", () -> {
[javac2] ^
[javac2] symbol: method executeWithNewThreadNameFuncThrow(String,()->{ doUn[...]ll; })
[javac2] location: class NamedThreadFactory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:546: error: cannot find symbol
[javac2] " Add the origin to '" + CorsOrigins.CORS_ORIGINS_PROPERTY +
[javac2] ^
[javac2] symbol: variable CorsOrigins
[javac2] location: class APIController
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\APIController.java:554: error: cannot find symbol
[javac2] CorsOrigins.CORS_ORIGINS_PROPERTY +
[javac2] ^
[javac2] symbol: variable CorsOrigins
[javac2] location: class APIController
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\FinderImpl.java:80: error: cannot find symbol
[javac2] return NamedThreadFactory.executeWithNewThreadNameFuncThrow("Using " + getClass().getSimpleName() + " to get single item for locator \"" + locatorText + "\"",
[javac2] ^
[javac2] symbol: method executeWithNewThreadNameFuncThrow(String,()->getIte[...]null))
[javac2] location: class NamedThreadFactory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\FinderImpl.java:91: error: cannot find symbol
[javac2] return NamedThreadFactory.executeWithNewThreadNameFuncThrow("Using " + getClass().getSimpleName() + " to get items for locator \"" + locatorText + "\"",
[javac2] ^
[javac2] symbol: method executeWithNewThreadNameFuncThrow(String,()->getIte[...]true))
[javac2] location: class NamedThreadFactory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\FinderImpl.java:270: error: cannot find symbol
[javac2] return NamedThreadFactory.executeWithNewThreadNameFuncThrow("Filtering items", () -> getItems(pagingFilter, finalUnfilteredItems, locator));
[javac2] ^
[javac2] symbol: method executeWithNewThreadNameFuncThrow(String,()->getIte[...]ator))
[javac2] location: class NamedThreadFactory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\Agent.java:136: error: cannot find symbol
[javac2] webUrl = ValueWithDefault.decideDefault(fields.isIncluded("webUrl", true), () -> webLinks.getAgentUrl(agent, agent.getAgentTypeId()));
[javac2] ^
[javac2] symbol: method getAgentUrl(SBuildAgent,int)
[javac2] location: variable webLinks of type WebLinks
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\Agent.java:142: error: cannot find symbol
[javac2] String absoluteUrl = webLinks.getAgentUrl(agent, agent.getAgentTypeId());
[javac2] ^
[javac2] symbol: method getAgentUrl(SBuildAgent,int)
[javac2] location: variable webLinks of type WebLinks
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\Agent.java:143: error: cannot find symbol
[javac2] String relativeUrl = new RelativeWebLinks().getAgentUrl(agent, agent.getAgentTypeId());
[javac2] ^
[javac2] symbol: method getAgentUrl(SBuildAgent,int)
[javac2] location: class RelativeWebLinks
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:217: error: cannot find symbol
[javac2] return ValueWithDefault.decideDefault(myFields.isIncluded("composite"), () -> myBuildPromotion.isCompositeBuild());
[javac2] ^
[javac2] symbol: method isCompositeBuild()
[javac2] location: variable myBuildPromotion of type BuildPromotion
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:802: error: cannot find symbol
[javac2] BuildPromotionEx.ArtifactsState state = ((BuildPromotionEx)myBuildPromotion).getArtifactStateInfo().getState();
[javac2] ^
[javac2] symbol: method getArtifactStateInfo()
[javac2] location: interface BuildPromotionEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:1317: error: cannot find symbol
[javac2] ((BuildCustomizerEx)customizer).setApplyCleanSourcesToDependencies(submittedTriggeringOptions.cleanSourcesInAllDependencies);
[javac2] ^
[javac2] symbol: method setApplyCleanSourcesToDependencies(Boolean)
[javac2] location: interface BuildCustomizerEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:1323: error: cannot find symbol
[javac2] ((BuildCustomizerEx)customizer).setApplyTagsToDependencies(submittedTriggeringOptions.tagDependencies);
[javac2] ^
[javac2] symbol: method setApplyTagsToDependencies(Boolean)
[javac2] location: interface BuildCustomizerEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:1530: error: cannot find symbol
[javac2] result.addParameter(TriggeredByBuilder.TYPE_PARAM_NAME, "user");
[javac2] ^
[javac2] symbol: variable TYPE_PARAM_NAME
[javac2] location: class TriggeredByBuilder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\Build.java:1533: error: cannot find symbol
[javac2] result.addParameter(TriggeredByBuilder.TYPE_PARAM_NAME, "request");
[javac2] ^
[javac2] symbol: variable TYPE_PARAM_NAME
[javac2] location: class TriggeredByBuilder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\AgentPool.java:128: error: package AgentPoolLimits does not exist
[javac2] return maxAgents == AgentPoolLimits.DEFAULT.getMaxAgents() ? null : agentPool.getMaxAgents();
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\AgentPool.java:147: error: package AgentPoolLimits does not exist
[javac2] maxAgents = AgentPoolLimits.DEFAULT.getMaxAgents();
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\agent\AgentPool.java:157: error: cannot find symbol
[javac2] beanContext.getSingletonService(AgentPoolManager.class).updateAgentPool(agentPool.getAgentPoolId(), newName, new AgentPoolLimitsImpl(minAgents, maxAgents));
[javac2] ^
[javac2] symbol: class AgentPoolLimitsImpl
[javac2] location: class AgentPool
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\BuildPromotionFinder.java:594: error: method getStartedEquivalentPromotions in interface BuildPromotionEx cannot be applied to given types;
[javac2] final Set<BuildPromotion> filter = new HashSet<BuildPromotion>(((BuildPromotionEx)getItem(equivalent)).getStartedEquivalentPromotions(-1));
[javac2] ^
[javac2] required: no arguments
[javac2] found: int
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\BuildPromotionFinder.java:1198: error: method getStartedEquivalentPromotions in interface BuildPromotionEx cannot be applied to given types;
[javac2] final List<BuildPromotionEx> result = build.getStartedEquivalentPromotions(-1);
[javac2] ^
[javac2] required: no arguments
[javac2] found: int
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\BuildPromotionFinder.java:1715: error: cannot find symbol
[javac2] final List<OrderedBuild> buildsBefore = ((BuildTypeEx)buildType).getBuildTypeOrderedBuilds().getBuildsBeforeInBranches(item, new Filter<String>() {
[javac2] ^
[javac2] symbol: method getBuildsBeforeInBranches(BuildPromotion,<anonymous Filter<String>>)
[javac2] location: interface BuildTypeOrderedBuilds
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\TriggeredBy.java:114: error: cannot find symbol
[javac2] String buildId = triggeredByParams.get(TriggeredByBuilder.BUILD_ID_PARAM_NAME);
[javac2] ^
[javac2] symbol: variable BUILD_ID_PARAM_NAME
[javac2] location: class TriggeredByBuilder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\build\TriggeredBy.java:126: error: cannot find symbol
[javac2] String typeInParams = triggeredByParams.get(TriggeredByBuilder.TYPE_PARAM_NAME);
[javac2] ^
[javac2] symbol: variable TYPE_PARAM_NAME
[javac2] location: class TriggeredByBuilder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\Property.java:96: error: cannot find symbol
[javac2] if (serviceLocator.getSingletonService(ParameterFactory.class).isSecureParameter(parameter.getControlDescription())) {
[javac2] ^
[javac2] symbol: method isSecureParameter(ControlDescription)
[javac2] location: interface ParameterFactory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\PagerData.java:144: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac2] newBuilder.replaceQueryParam(START, null).replaceQueryParam(COUNT, null);
[javac2] ^
[javac2] cast to Object for a varargs call
[javac2] cast to Object[] for a non-varargs call and to suppress this warning
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\PagerData.java:144: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac2] newBuilder.replaceQueryParam(START, null).replaceQueryParam(COUNT, null);
[javac2] ^
[javac2] cast to Object for a varargs call
[javac2] cast to Object[] for a non-varargs call and to suppress this warning
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\ProjectFinder.java:374: error: cannot find symbol
[javac2] return myProjectManager.findProjects(((UserEx)user).getProjectVisibilityHolder().getKnownVisibleProjects());
[javac2] ^
[javac2] symbol: method getProjectVisibilityHolder()
[javac2] location: interface UserEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\ProjectFinder.java:376: error: cannot find symbol
[javac2] return ((UserEx)user).getProjectVisibilityHolder().getAllProjectsOrdered();
[javac2] ^
[javac2] symbol: method getProjectVisibilityHolder()
[javac2] location: interface UserEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\BranchFinder.java:282: error: an enum switch case label must be the unqualified name of an enumeration constant
[javac2] case ACTIVE_HISTORY_BRANCHES:
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\BranchFinder.java:286: error: cannot find symbol
[javac2] activeBranchesPolicy = BranchesPolicy.ACTIVE_HISTORY_BRANCHES;
[javac2] ^
[javac2] symbol: variable ACTIVE_HISTORY_BRANCHES
[javac2] location: class BranchesPolicy
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\problem\TestOccurrence.java:160: error: cannot find symbol
[javac2] if (!(testRun instanceof MultiTestRun)) return null;
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\project\PropEntityProjectFeature.java:96: error: incompatible types: String cannot be converted to SProject
[javac2] newFeature = factory.createProjectFeature(forcedId, type, properties != null ? properties.getMap() : new HashMap<String, String>(), project.getProjectId());
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\project\PropEntityProjectFeature.java:98: error: incompatible types: String cannot be converted to SProject
[javac2] newFeature = factory.createNewProjectFeature(type, properties != null ? properties.getMap() : new HashMap<String, String>(), project.getProjectId());
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\DataProvider.java:328: error: cannot find symbol
[javac2] } catch (AgentTypeCannotBeMovedException e) {
[javac2] ^
[javac2] symbol: class AgentTypeCannotBeMovedException
[javac2] location: class DataProvider
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\MuteData.java:96: error: method muteTestsInProject in interface ProblemMutingService cannot be applied to given types;
[javac2] return myProblemMutingService.muteTestsInProject(myCurrentUser, myComment, myUnmuteData.isUnmuteWhenFixed(), myUnmuteData.getUnmuteByTime(), getProject(), myTests);
[javac2] ^
[javac2] required: SUser,String,boolean,Date,Collection<STest>
[javac2] found: SUser,String,boolean,Date,SProject,Collection<STest>
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\MuteData.java:100: error: incompatible types: void cannot be converted to MuteInfo
[javac2] .muteProblemsInProject(myCurrentUser, myComment, myUnmuteData.isUnmuteWhenFixed(), myUnmuteData.getUnmuteByTime(), getProject(), getProblemInfos());
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\MuteData.java:109: error: incompatible types: List<SBuildType> cannot be converted to Collection<String>
[javac2] return myProblemMutingService.muteTestsInBuildTypes(myCurrentUser, myComment, myUnmuteData.isUnmuteWhenFixed(), myUnmuteData.getUnmuteByTime(), getBuildTypes(), myTests, true);
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\MuteData.java:114: error: incompatible types: void cannot be converted to MuteInfo
[javac2] .muteProblemsInBuildTypes(myCurrentUser, myComment, myUnmuteData.isUnmuteWhenFixed(), myUnmuteData.getUnmuteByTime(), getBuildTypes(), getProblemInfos(), true);
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\ProblemFinder.java:265: error: cannot find symbol
[javac2] final Map<Integer,CurrentMuteInfo> currentMutes = myProblemMutingService.getBuildProblemsCurrentMuteInfo(affectedProject);
[javac2] ^
[javac2] symbol: method getBuildProblemsCurrentMuteInfo(SProject)
[javac2] location: variable myProblemMutingService of type ProblemMutingService
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestFinder.java:191: error: cannot find symbol
[javac2] final Map<Long,CurrentMuteInfo> currentMutes = myProblemMutingService.getTestsCurrentMuteInfo(affectedProject);
[javac2] ^
[javac2] symbol: method getTestsCurrentMuteInfo(SProject)
[javac2] location: variable myProblemMutingService of type ProblemMutingService
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\mutes\MuteFinder.java:183: error: retrieveMuteTests(Integer) is not public in LowLevelProblemMutingServiceImpl; cannot be accessed from outside package
[javac2] Collection<Long> mutedTestNameIds = myLowLevelMutingService.retrieveMuteTests(id);
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\mutes\MuteFinder.java:188: error: retrieveMuteProblems(Integer) is not public in LowLevelProblemMutingServiceImpl; cannot be accessed from outside package
[javac2] Collection<Integer> mutedProblemIds = myLowLevelMutingService.retrieveMuteProblems(id);
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\mutes\MuteFinder.java:237: error: cannot find symbol
[javac2] return myProblemMutingService.getTestsCurrentMuteInfo(project).values().stream().flatMap(currentMute -> getMutes(currentMute)).distinct(); //todo: check is distinct can be reimplemented to be more effective here
[javac2] ^
[javac2] symbol: method getTestsCurrentMuteInfo(SProject)
[javac2] location: variable myProblemMutingService of type ProblemMutingService
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\mutes\MuteFinder.java:242: error: cannot find symbol
[javac2] return myProblemMutingService.getBuildProblemsCurrentMuteInfo(project).values().stream().flatMap(currentMute -> getMutes(currentMute)).distinct(); //todo: check is distinct can be reimplemented to be more effective here
[javac2] ^
[javac2] symbol: method getBuildProblemsCurrentMuteInfo(SProject)
[javac2] location: variable myProblemMutingService of type ProblemMutingService
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestOccurrenceFinder.java:161: error: cannot find symbol
[javac2] if (!(item instanceof MultiTestRun)) return null;
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] location: class TestOccurrenceFinder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestOccurrenceFinder.java:269: error: cannot find symbol
[javac2] if (!(item instanceof MultiTestRun)) return Collections.singletonList(item);
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] location: class TestOccurrenceFinder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestOccurrenceFinder.java:270: error: cannot find symbol
[javac2] MultiTestRun compositeRun = (MultiTestRun)item;
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] location: class TestOccurrenceFinder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestOccurrenceFinder.java:270: error: cannot find symbol
[javac2] MultiTestRun compositeRun = (MultiTestRun)item;
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] location: class TestOccurrenceFinder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\data\problem\TestOccurrenceFinder.java:283: error: cannot find symbol
[javac2] if (!(entry instanceof MultiTestRun)) {
[javac2] ^
[javac2] symbol: class MultiTestRun
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\server\Server.java:75: error: cannot find symbol
[javac2] return ValueWithDefault.decideIncludeByDefault(myFields.isIncluded("versionMajor"), myServer.getVersion().getDisplayVersionMajor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: variable myServer of type SBuildServer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\server\Server.java:80: error: cannot find symbol
[javac2] return ValueWithDefault.decideIncludeByDefault(myFields.isIncluded("versionMinor"), myServer.getVersion().getDisplayVersionMinor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: variable myServer of type SBuildServer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\server\Server.java:187: error: cannot find symbol
[javac2] return Integer.toString(serviceLocator.getSingletonService(SBuildServer.class).getVersion().getDisplayVersionMajor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: interface SBuildServer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\model\server\Server.java:189: error: cannot find symbol
[javac2] return Integer.toString(serviceLocator.getSingletonService(SBuildServer.class).getVersion().getDisplayVersionMinor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: interface SBuildServer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\AgentPoolRequest.java:107: error: cannot find symbol
[javac2] AgentPoolLimits agentDetails = AgentPoolLimits.DEFAULT;
[javac2] ^
[javac2] symbol: class AgentPoolLimits
[javac2] location: class AgentPoolRequest
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\AgentPoolRequest.java:107: error: cannot find symbol
[javac2] AgentPoolLimits agentDetails = AgentPoolLimits.DEFAULT;
[javac2] ^
[javac2] symbol: variable AgentPoolLimits
[javac2] location: class AgentPoolRequest
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\AgentPoolRequest.java:109: error: cannot find symbol
[javac2] agentDetails = new AgentPoolLimitsImpl(AgentPoolLimits.DEFAULT.getMinAgents(),
[javac2] ^
[javac2] symbol: class AgentPoolLimitsImpl
[javac2] location: class AgentPoolRequest
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\AgentPoolRequest.java:109: error: package AgentPoolLimits does not exist
[javac2] agentDetails = new AgentPoolLimitsImpl(AgentPoolLimits.DEFAULT.getMinAgents(),
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\AgentPoolRequest.java:110: error: package AgentPoolLimits does not exist
[javac2] agentPool.maxAgents != null ? Integer.valueOf(agentPool.maxAgents) : AgentPoolLimits.DEFAULT.getMaxAgents());
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\BuildRequest.java:652: error: cannot find symbol
[javac2] tbb.addParameter(TriggeredByBuilder.TYPE_PARAM_NAME, "reAddedOnStop");
[javac2] ^
[javac2] symbol: variable TYPE_PARAM_NAME
[javac2] location: class TriggeredByBuilder
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\FilesSubResource.java:195: error: FileInfo has private access in HttpDownloadProcessor
[javac2] myBeanContext.getSingletonService(HttpDownloadProcessor.class).processDownload(new HttpDownloadProcessor.FileInfo() {
[javac2] ^
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\BuildRequest.java:1038: error: method processArtifactDownload in class HttpDownloadProcessor cannot be applied to given types;
[javac2] .processArtifactDownload(build, buildArtifact.getBuildArtifact(), setContentDisposition, eTag, request, response);
[javac2] ^
[javac2] required: SBuild,BuildArtifact,HttpServletRequest,HttpServletResponse
[javac2] found: SBuild,BuildArtifact,boolean,String,HttpServletRequest,HttpServletResponse
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\ChangeRequest.java:112: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac2] requestUriBuilder.replaceQueryParam("count" , null);
[javac2] ^
[javac2] cast to Object for a varargs call
[javac2] cast to Object[] for a non-varargs call and to suppress this warning
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\ChangeRequest.java:113: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[javac2] requestUriBuilder.replaceQueryParam("start", null);
[javac2] ^
[javac2] cast to Object for a varargs call
[javac2] cast to Object[] for a non-varargs call and to suppress this warning
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:203: error: cannot find symbol
[javac2] result.append("Remote address: " ).append(WebUtil.hostAndPort(request.getRemoteAddr(), request.getRemotePort())).append("\n");
[javac2] ^
[javac2] symbol: method hostAndPort(String,int)
[javac2] location: class WebUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:204: error: cannot find symbol
[javac2] result.append("Refined remote address: ").append(WebUtil.hostAndPort(WebUtil.getRemoteAddress(request), request.getRemotePort())).append("\n");
[javac2] ^
[javac2] symbol: method hostAndPort(String,int)
[javac2] location: class WebUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:205: error: cannot find symbol
[javac2] result.append("Local address: ").append(WebUtil.hostAndPort(request.getLocalAddr(), request.getLocalPort())).append("\n");
[javac2] ^
[javac2] symbol: method hostAndPort(String,int)
[javac2] location: class WebUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:527: error: constructor GraphOptimizer in class GraphOptimizer cannot be applied to given types;
[javac2] GraphOptimizer optimizer = new GraphOptimizer((BuildPromotionEx)build, myServiceLocator.getSingletonService(BuildPromotionReplacementLog.class), null);
[javac2] ^
[javac2] required: BuildPromotionEx,BuildPromotionReplacementLog
[javac2] found: BuildPromotionEx,BuildPromotionReplacementLog,<null>
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:528: error: cannot find symbol
[javac2] optimizer.dryRunOptimization(new GraphOptimizer.OptimizationListener() {
[javac2] ^
[javac2] symbol: class OptimizationListener
[javac2] location: class GraphOptimizer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:596: error: cannot find symbol
[javac2] result.append(DiagnosticUtil.getThreadDumpDateFormat().format(startTime)).append("\n");
[javac2] ^
[javac2] symbol: method getThreadDumpDateFormat()
[javac2] location: class DiagnosticUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:621: error: cannot find symbol
[javac2] ThreadDumpDataProvider memoryUsageMonitor = myServiceLocator.findSingletonService(ThreadDumpDataProvider.class);
[javac2] ^
[javac2] symbol: class ThreadDumpDataProvider
[javac2] location: class DebugRequest
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:621: error: cannot find symbol
[javac2] ThreadDumpDataProvider memoryUsageMonitor = myServiceLocator.findSingletonService(ThreadDumpDataProvider.class);
[javac2] ^
[javac2] symbol: class ThreadDumpDataProvider
[javac2] location: class DebugRequest
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:627: error: method printCpuUsage in class DiagnosticUtil cannot be applied to given types;
[javac2] DiagnosticUtil.printCpuUsage(printer, data, startTime);
[javac2] ^
[javac2] required: Printer,ThreadDumpData
[javac2] found: Printer,ThreadDumpData,Date
[javac2] reason: actual and formal argument lists differ in length
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:765: error: cannot find symbol
[javac2] Map<String, String> cacheStat = myServiceLocator.getSingletonService(DBBuildHistory.class).getCacheStat();
[javac2] ^
[javac2] symbol: method getCacheStat()
[javac2] location: class DBBuildHistory
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:777: error: cannot find symbol
[javac2] long timeMs = TimeUnit.MILLISECONDS.convert(NamedThreadUtil.PerfStat.getTotalRetrievalTime(), TimeUnit.NANOSECONDS);
[javac2] ^
[javac2] symbol: variable PerfStat
[javac2] location: class NamedThreadUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\DebugRequest.java:779: error: cannot find symbol
[javac2] props.put("invocationCount", String.valueOf(NamedThreadUtil.PerfStat.getTotalCount()));
[javac2] ^
[javac2] symbol: variable PerfStat
[javac2] location: class NamedThreadUtil
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\ProjectRequest.java:607: error: cannot find symbol
[javac2] return ((ProjectEx)project).getOrCreateToken(secureValue);
[javac2] ^
[javac2] symbol: method getOrCreateToken(String)
[javac2] location: interface ProjectEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\ProjectRequest.java:639: error: cannot find symbol
[javac2] return ((ProjectEx)project).getSecureValue(token, "Requested via REST");
[javac2] ^
[javac2] symbol: method getSecureValue(String,String)
[javac2] location: interface ProjectEx
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\request\ServerRequest.java:322: error: cannot find symbol
[javac2] return "logs".equals(areaId) ? Permission.MANAGE_SERVER_INSTALLATION : Permission.CHANGE_SERVER_SETTINGS;
[javac2] ^
[javac2] symbol: variable MANAGE_SERVER_INSTALLATION
[javac2] location: class Permission
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\swagger\SwaggerConfigImpl.java:61: error: cannot find symbol
[javac2] info.setVersion("" + server.getVersion().getDisplayVersionMajor() + "." + server.getVersion().getDisplayVersionMinor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: variable server of type SBuildServer
[javac2] c:\working\dhorner-rest-api\trunk\src\jetbrains\buildServer\server\rest\swagger\SwaggerConfigImpl.java:61: error: cannot find symbol
[javac2] info.setVersion("" + server.getVersion().getDisplayVersionMajor() + "." + server.getVersion().getDisplayVersionMinor());
[javac2] ^
[javac2] symbol: method getVersion()
[javac2] location: variable server of type SBuildServer
[javac2] Note: Some input files use or override a deprecated API.
[javac2] Note: Recompile with -Xlint:deprecation for details.
[javac2] Note: Some input files use unchecked or unsafe operations.
[javac2] Note: Recompile with -Xlint:unchecked for details.
[javac2] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac2] 81 errors
[javac2] 4 warnings






Please sign in to leave a comment.