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 Tue, 24 Aug 2010 07:43:55 GMT
I downloaded 2.2.0 and saw this in the debug

parsing buildfile jar:file:/Users/cuthbe/applications/apache-ant-1.7.1/lib/ivy-2.2.0-rc1.jar!/org/apache/ivy/ant/antlib.xml with URI = jar:file:/Users/cuthbe/applications/apache-ant-1.7.1/lib/ivy-2.2.0-rc1.jar!/org/apache/ivy/ant/antlib.xml
Adding reference: ivy.instance



Stack trace


[ivy:publish] 	default cache: /Users/cuthbe/.ivy2/cache
[ivy:publish] 	default resolver: mainChain
[ivy:publish] 	default latest strategy: latest-revision
[ivy:publish] 	default conflict manager: latest-revision
[ivy:publish] 	circular dependency strategy: warn
[ivy:publish] 	validate: true
[ivy:publish] 	check up2date: true
[ivy:publish] 	-- 4 resolvers:
[ivy:publish] 	mainChain [chain] [local, libs-releases-local, testprojectrepo-publish]
[ivy:publish] 		return first: false
[ivy:publish] 		dual: false
[ivy:publish] 		-> local
[ivy:publish] 		-> libs-releases-local
[ivy:publish] 		-> testprojectrepo-publish
[ivy:publish] 	testprojectrepo-publish [ibiblio]
[ivy:publish] 		cache: null
[ivy:publish] 		m2compatible: true
[ivy:publish] 		ivy patterns:
[ivy:publish] 			http://192.168.2.4:9999/artifactory/testproject-release/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		artifact patterns:
[ivy:publish] 			http://192.168.2.4:9999/artifactory/testproject-release/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		repository: testprojectrepo-publish
[ivy:publish] 		root: http://192.168.2.4:9999/artifactory/testproject-release/
[ivy:publish] 		pattern: [organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		usepoms: true
[ivy:publish] 		useMavenMetadata: true
[ivy:publish] 	local [file]
[ivy:publish] 		cache: null
[ivy:publish] 		m2compatible: false
[ivy:publish] 		ivy patterns:
[ivy:publish] 			/Users/cuthbe/.ivy2/cache/[organisation]/[module]/ivys/ivy-[revision].xml
[ivy:publish] 		artifact patterns:
[ivy:publish] 			/Users/cuthbe/.ivy2/cache/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]
[ivy:publish] 		repository: local
[ivy:publish] 	libs-releases-local [ibiblio]
[ivy:publish] 		cache: null
[ivy:publish] 		m2compatible: true
[ivy:publish] 		ivy patterns:
[ivy:publish] 			http://192.168.2.4:9999/artifactory/libs-releases-local/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		artifact patterns:
[ivy:publish] 			http://192.168.2.4:9999/artifactory/libs-releases-local/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		repository: libs-releases-local
[ivy:publish] 		root: http://192.168.2.4:9999/artifactory/libs-releases-local/
[ivy:publish] 		pattern: [organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
[ivy:publish] 		usepoms: true
[ivy:publish] 		useMavenMetadata: true
[ivy:publish] 	module settings:
[ivy:publish] 		NONE
[ivy:publish] parameter found as ivy variable: ivy.organisation=com.testproject
[ivy:publish] parameter found as ivy variable: ivy.module=testproject-staticdata-common
[ivy:publish] parameter found as ivy variable: ivy.revision=working@cuthbes-macbook.local
[ivy:publish] parameter not found: ivy.deliver.branch
[ivy:publish] parameter found as attribute value: ivy.deliver.revision=1.0
[ivy:publish] parameter found as attribute value: ivy.status=integration
[ivy:publish] :: publishing :: com.testproject#testproject-staticdata-common
[ivy:publish] 	validate = true
[ivy:publish] post 1.3 ivy file: using exact as default matcher
  [antcall] Exiting /Users/cuthbe/dev/code/testproject-trunk/testproject-staticdata-common/build.xml.
      [ant] Exiting /Users/cuthbe/dev/code/testproject-trunk/testproject-staticdata-common/build.xml.

BUILD FAILED
/Users/cuthbe/dev/code/testproject-trunk/build/build.xml:183: The following error occurred while executing this line:
/Users/cuthbe/dev/code/testproject-trunk/testproject-staticdata-common/build.xml:13: The following error occurred while executing this line:
/Users/cuthbe/dev/code/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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.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.taskdefs.Sequential.execute(Sequential.java:62)
	at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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.TaskAdapter.execute(TaskAdapter.java:154)
	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/testproject-trunk/testproject-staticdata-common/build.xml:13: The following error occurred while executing this line:
/Users/cuthbe/dev/code/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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)
	... 30 more
Caused by: /Users/cuthbe/dev/code/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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)
	... 43 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)
	... 56 more
--- Nested Exception ---
/Users/cuthbe/dev/code/testproject-trunk/testproject-staticdata-common/build.xml:13: The following error occurred while executing this line:
/Users/cuthbe/dev/code/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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)
	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.taskdefs.Sequential.execute(Sequential.java:62)
	at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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.TaskAdapter.execute(TaskAdapter.java:154)
	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/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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)
	... 43 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)
	... 56 more
--- Nested Exception ---
/Users/cuthbe/dev/code/testproject-trunk/build/build_common.xml:162: impossible to publish artifacts for com.testproject#testproject-staticdata-common;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)
	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)
	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.taskdefs.Sequential.execute(Sequential.java:62)
	at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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.TaskAdapter.execute(TaskAdapter.java:154)
	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: 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)
	... 56 more
--- Nested Exception ---
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)
	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)
	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)
	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.taskdefs.Sequential.execute(Sequential.java:62)
	at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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.TaskAdapter.execute(TaskAdapter.java:154)
	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)

Total time: 1 second
cuthbes-macbook:build cuthbe$ 

On 23 Aug 2010, at 22:40, Maarten Coene wrote:

> Could you try again with Ivy 2.2.0-RC1 and post the stacktrace again with that 
> version?
> 
> thanks,
> Maarten
> 
> 
> 
> 
> ----- Original Message ----
> From: Ben Cuthbert <ben_cuthbert@yahoo.co.uk>
> To: ivy-user@ant.apache.org
> Sent: Mon, August 23, 2010 10:14:33 PM
> Subject: Re: Reference build-path not found.
> 
> Hi Geoff
> 
> So I change it as suggested and I get this null pointer
> 
> 
> /Users/cuthbe/dev/code/trunk/build/build_common.xml:165: impossible to publish 
> artifacts for com.test#test-project-common;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.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.taskdefs.Sequential.execute(Sequential.java:62)
>    at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    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.TaskAdapter.execute(TaskAdapter.java:154)
>    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/test-project-common/build.xml:13: 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#test-project-common;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)
>    ... 30 more
> Caused by: /Users/cuthbe/dev/code/trunk/build/build_common.xml:165: impossible 
> to publish artifacts for 
> com.test#test-project-common;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)
>    ... 43 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)
>    ... 56 more
> --- Nested Exception ---
> /Users/cuthbe/dev/code/trunk/test-project-common/build.xml:13: 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#test-project-common;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)
>    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.taskdefs.Sequential.execute(Sequential.java:62)
>    at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    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.TaskAdapter.execute(TaskAdapter.java:154)
>    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/build/build_common.xml:165: impossible 
> to publish artifacts for 
> com.test#test-project-common;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)
>    ... 43 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)
>    ... 56 more
> --- Nested Exception ---
> /Users/cuthbe/dev/code/trunk/build/build_common.xml:165: impossible to publish 
> artifacts for com.test#test-project-common;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)
>    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)
>    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.taskdefs.Sequential.execute(Sequential.java:62)
>    at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    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.TaskAdapter.execute(TaskAdapter.java:154)
>    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: 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)
>    ... 56 more
> --- Nested Exception ---
> 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)
>    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)
>    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)
>    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.taskdefs.Sequential.execute(Sequential.java:62)
>    at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    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.TaskAdapter.execute(TaskAdapter.java:154)
>    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)
> 
> Total time: 1 second
> cuthbes-macbook:build cuthbe$ 
> 
> On 23 Aug 2010, at 20:35, Geoff Clitheroe wrote:
> 
>> You can pass -d to ant.
>> 
>> Do you need ${} round dist.dir?
>> 
>> -G
>> 
>> On 24 Aug 2010 07:29, "Ben Cuthbert" <ben_cuthbert@yahoo.co.uk> 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