aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-22 08:51:07 (EST)
committerWinston Prakash2011-12-01 20:46:58 (EST)
commitb0bcbf345475c02e5c9e61244fd99289d818c492 (patch)
tree6f97de2610403afbae68a923e97f6f12b524ef85
parent06ea179602ffdde80dc58f5c9aac95ba1d8963fc (diff)
downloadorg.eclipse.hudson.core-b0bcbf345475c02e5c9e61244fd99289d818c492.zip
org.eclipse.hudson.core-b0bcbf345475c02e5c9e61244fd99289d818c492.tar.gz
org.eclipse.hudson.core-b0bcbf345475c02e5c9e61244fd99289d818c492.tar.bz2
Reset legacy properties after conversion to IProperty instance
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/AbstractProject.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/hudson-core/src/main/java/hudson/model/AbstractProject.java b/hudson-core/src/main/java/hudson/model/AbstractProject.java
index cc4eaa9..6714fbf 100644
--- a/hudson-core/src/main/java/hudson/model/AbstractProject.java
+++ b/hudson-core/src/main/java/hudson/model/AbstractProject.java
@@ -314,21 +314,27 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
super.buildProjectProperties();
if (null == getProperty(BLOCK_BUILD_WHEN_UPSTREAM_BUILDING_PROPERTY_NAME)) {
setBlockBuildWhenUpstreamBuilding(blockBuildWhenUpstreamBuilding);
+ blockBuildWhenUpstreamBuilding = false;
}
if (null == getProperty(BLOCK_BUILD_WHEN_DOWNSTREAM_BUILDING_PROPERTY_NAME)) {
setBlockBuildWhenDownstreamBuilding(blockBuildWhenDownstreamBuilding);
+ blockBuildWhenDownstreamBuilding = false;
}
if (null == getProperty(CONCURRENT_BUILD_PROPERTY_NAME)) {
setConcurrentBuild(concurrentBuild);
+ concurrentBuild = false;
}
if (null == getProperty(CLEAN_WORKSPACE_REQUIRED_PROPERTY_NAME)) {
setCleanWorkspaceRequired(cleanWorkspaceRequired);
+ cleanWorkspaceRequired = false;
}
if (null == getProperty(QUIET_PERIOD_PROPERTY_NAME)) {
setQuietPeriod(quietPeriod);
+ quietPeriod = null;
}
if (null == getProperty(SCM_CHECKOUT_RETRY_COUNT_PROPERTY_NAME)) {
setScmCheckoutRetryCount(scmCheckoutRetryCount);
+ scmCheckoutRetryCount = null;
}
}
@@ -606,8 +612,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
// ugly name because of EL
public boolean getHasCustomQuietPeriod() {
- return (hasCascadingProject() && getCascadingProject().getHasCustomQuietPeriod())
- || (!hasCascadingProject() && quietPeriod!=null);
+ return null != getIntegerProperty(QUIET_PERIOD_PROPERTY_NAME).getValue();
}
/**
@@ -626,7 +631,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
}
public boolean hasCustomScmCheckoutRetryCount(){
- return scmCheckoutRetryCount != null;
+ return null != getIntegerProperty(SCM_CHECKOUT_RETRY_COUNT_PROPERTY_NAME).getValue();
}
@Override