ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Cuthbert <ben_cuthb...@yahoo.co.uk>
Subject Re: Reference build-path not found.
Date Mon, 23 Aug 2010 19:31:40 GMT
Stack trace.

 at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.Main.runBuild(Main.java:758)
	at org.apache.tools.ant.Main.startAnt(Main.java:217)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: /Users/cuthbe/dev/code/trunk/project-testmodule/build.xml:10: The following error
occurred while executing this line:
/Users/cuthbe/dev/code/trunk/build/build_common.xml:165: impossible to publish artifacts for
com.test#project-testmodule;working@cuthbes-macbook.local: java.lang.NullPointerException
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	... 16 more
Caused by: /Users/cuthbe/dev/code/trunk/build/build_common.xml:165: impossible to publish
artifacts for com.trunk#project-testmodule;working@cuthbes-macbook.local: java.lang.NullPointerException
	at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:318)
	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	... 29 more
Caused by: java.lang.NullPointerException
	at org.apache.ivy.core.IvyPatternHelper.substituteTokens(IvyPatternHelper.java:214)
	at org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:151)
	at org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:100)
	at org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:91)
	at org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:83)
	at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:204)
	at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:170)
	at org.apache.ivy.Ivy.publish(Ivy.java:600)
	at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299)
	... 42 more
--- Nested Exception ---




On 23 Aug 2010, at 20:28, Ben Cuthbert wrote:

> Apologies I think I solved this, well sort of. Now when the publish-remote gets called
I get the following error
> 
> impossible to publish artifacts for com.test#project-testmodule;working@cuthbes-macbook.local:
java.lang.NullPointerException
> 
> 
> Is there some debug logging I can put on?
> 
> 
> On 23 Aug 2010, at 19:55, Ben Cuthbert wrote:
> 
>> All
>> 
>> I am trying to publish my module and I have the follow tasks
>> 
>> <target name="publish-remote-repo" depends="" 
>> 			description="compiles, creates the jar, and then publishes it to the repo.">
>> 		<subant target="publish-remote" buildpathref="dist.dir" />
>> </target>
>> 
>> And in the common file I have
>> 
>> <target name="publish-remote" depends="" description="--> publish this project
in the ivy repository">
>> 		<ivy:publish artifactspattern="${build.dir}/[artifact].[ext]" 
>>   			           resolver="remoterepo-publish"
>>   			           pubrevision="${version}" 
>>   			           status="integration"
>> 				   overwrite="true"
>>   		>
>> 			<artifacts/>
>> 		</ivy:publish>
>> 		<echo message="project ${ant.project.name} released with version ${version}"
/>
>> </target>
>> 
>> 
>> But when I call it using ant I get this error
>> 
>> cuthbes-macbook:build cuthbe$ ant publish-remote-repo
>> Buildfile: build.xml
>> 
>> publish-remote-repo:
>> 
>> BUILD FAILED
>> /Users/cuthbe/dev/code/test/build/build.xml:156: Reference dist.dir not found.
>> 
>> Total time: 0 seconds
>> cuthbes-macbook:build cuthbe$
> 
> 



Mime
View raw message