ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Little (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IVY-1401) NullPointerException thrown when calling buildnumber task
Date Tue, 29 Jan 2013 11:47:12 GMT
Tom Little created IVY-1401:
-------------------------------

             Summary: NullPointerException thrown when calling buildnumber task
                 Key: IVY-1401
                 URL: https://issues.apache.org/jira/browse/IVY-1401
             Project: Ivy
          Issue Type: Bug
         Environment: Windows
            Reporter: Tom Little


When calling the ivy ant task buildnumber with a branch tag set.

E.g. Repo layout;

[org]/[module]/[branch]/[revision]/[type]s/[module]-[revision].[ext]

Call:
<ivy:buildnumber organisation="myorg" module"mymod" branch="BRANCH-A" resolver="myRepo"
/>

Will throw this exception:
java.lang.NullPointerException
	at org.apache.ivy.ant.IvyBuildNumber.doExecute(IvyBuildNumber.java:215)
	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.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)

However if you add a revision explictly this error will no longer be thrown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message