Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

OGNL help getting build.configuration.checkoutsDir #24

Ed ·
Hi,

Working:
${build.configuration.getCheckoutsDir()}

Not working:
build.root=${build.configuration.checkoutsDir}

Am I wrong to assume that the later should work?

For the later, I get this following configuration error:

2006-02-17 16:01:42,554 [Thread-222] ERROR - Failed to trigger configuration.
java.lang.RuntimeException: ognl.NoSuchPropertyException: com.pmease.quickbuild.model.Configuration.checkoutsDirs
at com.pmease.quickbuild.model.Configuration.evaluateStringExpression(Configuration.java:851)
at com.pmease.quickbuild.web.editable.Editable.resolveOgnlExpressions(Editable.java:116)
at com.pmease.quickbuild.builder.Builder.resolveOgnlExpressions(Builder.java:63)
at com.pmease.quickbuild.builder.Builder.execute(Builder.java:73)
at com.pmease.quickbuild.step.BuildStep.run(BuildStep.java:60)
at com.pmease.quickbuild.step.Step.trigger(Step.java:157)
at com.pmease.quickbuild.step.SerialStep.triggerMembers(SerialStep.java:35)
at com.pmease.quickbuild.step.CompositeStep.run(CompositeStep.java:129)
at com.pmease.quickbuild.step.Step.trigger(Step.java:157)
at com.pmease.quickbuild.model.Configuration.performBuild(Configuration.java:1246)
at com.pmease.quickbuild.model.Configuration.trigger(Configuration.java:978)
at com.pmease.quickbuild.triggeringinstance.ManualTriggeringInstance.execute(ManualTriggeringInstance.java:41)
at com.pmease.quickbuild.model.Queue$BuildRunner.run(Queue.java:221)
at java.lang.Thread.run(Thread.java:595)
Caused by: ognl.NoSuchPropertyException: com.pmease.quickbuild.model.Configuration.checkoutsDirs
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.ASTChain.getValueBody(ASTChain.java:109)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at com.pmease.quickbuild.model.Configuration.evaluateStringExpression(Configuration.java:848)
... 13 more

Thanks,
Ed
  • replies 2
  • views 2783
  • stars 0
robinshen ADMIN ·
The second way works at my side. Is there any other expressions that tries to set the property? Because the configuration class only has getter method for this property, so it can only be referenced as a read-only property.

Thanks.
Ed ·
Works in 1.0.2 (upgraded from 1.0) now...

Thanks,
Ed