continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Smith <dr.louis.sm...@gmail.com>
Subject Re: How to build Ant projects?
Date Fri, 01 Nov 2013 22:38:15 GMT
I always use a pom.xml and do an antrun - it gives me the "outer" reports
available via maven, and has always worked well for us.  I even have one
that builds jar files, then executes them to produce a forrest website with
statistics of all our projects (over 200 at last run..)


On Fri, Nov 1, 2013 at 1:29 PM, v0id null <v0idnull@gmail.com> wrote:

> I'm really not clear on how to create Ant projects in Continuum.
>
> <project name="broker">
>     <property name="phing.buildfile" value="phing.xml" />
>     <property name="phing.command" value="phing" />
>     <target name="help" description="Shows Phing Help">
>         <exec dir="" executable="${phing.command}">
>             <arg line="-help" />
>         </exec>
>     </target>
>     <target name="build" description="Build">
>         <exec dir="" executable="${phing.command}">
>             <arg line="-f ${phing.buildfile}" />
>         </exec>
>     </target>
> </project>
>
> So I'm using this Ant build file to trigger a PHP builder. However, it
> refuses to build. I don't see a single thing in the UI of continuum, no
> broken builds or anything of the sort, and the continuum.log file contains
> this:
>
> Unable to build project due to null values set on ( GOALS , ARGUMENTS ,
> BUILD_FILE, SCHEDULE_ID_OID ) of BUILDDEFINITION ID : 17 Please notify your
> system adminitrator
>
> GOALS: ??? where do I fill this in?
> ARGUMENTS: well no, i don't have any arguments. in the console I just run
> ant
> BUILD_FILE: I'm using the default setting, it's build.xml
> SCHEDULE_ID_OID: I have no idea what this is? Where do I set this?
>
> I thought, maybe it's because for some reason it can't find Ant, so I tried
> to setup an Ant installation only to get this in the logs:
>
> 2013-11-01 13:25:41,143 [qtp172936925-23] WARN
> com.opensymphony.xwork2.ognl.OgnlValueStack  - Error setting expression
> 'installation.installationId' with value '[Ljava.lang.String;@77e79981'
> ognl.MethodFailedException: Method "setInstallationId" failed for object
> installationId = '0' [java.lang.NoSuchMethodException:
>
> org.apache.maven.continuum.model.system.Installation.setInstallationId([Ljava.lang.String;)]
>     at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)
>     at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
>     at
>
> ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
>     at
> ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
>     at
>
> com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)
>     at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
>     at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
>     at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
>     at ognl.SimpleNode.setValue(SimpleNode.java:301)
>     at ognl.ASTChain.setValueBody(ASTChain.java:227)
>     at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
>     at ognl.SimpleNode.setValue(SimpleNode.java:301)
>     at ognl.Ognl.setValue(Ognl.java:737)
>     at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:198)
>     at
>
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:161)
>     at
>
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:149)
>     at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:276)
>     at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)
>     at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
>     at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
>     at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.codehaus.plexus.redback.struts2.interceptor.AutoLoginInterceptor.intercept(AutoLoginInterceptor.java:169)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.codehaus.plexus.redback.struts2.interceptor.ForceAdminUserInterceptor.intercept(ForceAdminUserInterceptor.java:77)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.codehaus.plexus.redback.struts2.interceptor.EnvironmentCheckInterceptor.intercept(EnvironmentCheckInterceptor.java:97)
>     at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
>     at
>
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
>     at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
>     at
>
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>     at
>
> org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:88)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
>     at
>
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
>     at
>
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
>     at
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:82)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
>     at
>
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>     at
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>     at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>     at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
>     at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
>     at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
>     at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>     at
>
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
>     at
>
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>     at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     at org.eclipse.jetty.server.Server.handle(Server.java:365)
>     at
>
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
>     at
>
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
>     at
>
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
>     at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
>     at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
>     at
>
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
>     at
>
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>     at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>     at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.NoSuchMethodException:
>
> org.apache.maven.continuum.model.system.Installation.setInstallationId([Ljava.lang.String;)
>     at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)
>     ... 92 more
> /-- Encapsulated exception ------------\
>
> This is version 1.4.1.
>



-- 
Dr. Louis Smith, ThD
Chief Technology Officer, Kyra InfoTech
Museum Director, Veterans Memorial Railroad

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message