Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » How to use buckminster.lastTimestamp?
How to use buckminster.lastTimestamp? [message #540522] Wed, 16 June 2010 12:49 Go to next message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Hi,

I'm trying to use the buckminster.lastTimestamp in my build system, but
I'm running into an NPE. I can reproduce it with a simple setup:

1. a generic project called test.bucky, with the following
buckminster.cspec:

<?xml version="1.0" encoding="UTF-8"?>
<cs:cspec xmlns:cs="http://www.eclipse.org/buckminster/CSpec-1.0"
name="test.bucky" componentType="buckminster" version="1.0.0">
<cs:actions>
<cs:public name="test.buckminster.lastModified" actor="ant">
<cs:actorProperties>
<cs:property key="buildFile" value="test.xml"/>
<cs:property key="targets" value="run"/>
</cs:actorProperties>
</cs:public>
</cs:actions>
</cs:cspec>

2. test.xml:

<project default="run">
<target name="run">
<buckminster.lastTimestamp
property="ts"
readerType="svn"

repositoryLocation="http://svn.apache.org/repos/asf/subversion/trunk/README"
dateFormat="yyyyMMddHHmm"
/>

<echo>last modified: ${ts}</echo>
</target>
</project>

3. run the action, get:

[start test.bucky:buckminster$1.0.0#test.buckminster.lastModified]
org.eclipse.core.runtime.CoreException:
/Users/peter/workspace/test.bucky/test.xml:9: java.lang.NullPointerException
/Users/peter/workspace/test.bucky/test.xml:9:
java.lang.NullPointerException: java.lang.NullPointerException


When run from cmd line, the full stack is something like this:

[java] ERROR: org.eclipse.core.runtime.CoreException:
/Users/peter/workspace/test.bucky/test.xml:9: java.lang.NullPointerException
[java] org.eclipse.core.runtime.CoreException:
/Users/peter/workspace/test.bucky/test.xml:9: java.lang.NullPointerException
[java] at
org.eclipse.buckminster.ant.AntRunner.handleInvocationTarget Exception(AntRunner.java:167)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322 )
[java] at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
[java] at
org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
[java] at
org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
[java] at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
[java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
java.lang.NullPointerException
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[java] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
[java] ... 25 more
[java] Caused by: java.lang.NullPointerException
[java] at
org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
[java] ... 46 more
[java] org.eclipse.core.runtime.CoreException:
/Users/peter/workspace/test.bucky/test.xml:9: java.lang.NullPointerException
[java] at
org.eclipse.buckminster.ant.AntRunner.handleInvocationTarget Exception(AntRunner.java:167)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322 )
[java] at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
[java] at
org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
[java] at
org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
[java] at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
[java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
java.lang.NullPointerException
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[java] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
[java] ... 25 more
[java] Caused by: java.lang.NullPointerException
[java] at
org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
[java] ... 46 more
[java] /Users/peter/workspace/test.bucky/helper.xml:9:
java.lang.NullPointerException
[java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
java.lang.NullPointerException
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[java] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
[java] at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
[java] at
org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
[java] at
org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
[java] at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
[java] Caused by: java.lang.NullPointerException
[java] at
org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
[java] ... 46 more
[java] --- Nested Exception ---
[java] java.lang.NullPointerException
[java] at
org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
[java] at
org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
[java] at
org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
[java] at
org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[java] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
[java] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
[java] at
org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
[java] at
org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
[java] at
org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
[java] at
org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
[java] at
org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
[java] at
org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
[java] at
org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
[java] at
org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
[java] at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
[java] at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
[java] at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
[java] at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1383)


Is this the right way to use buckminster.lastModified? Any tips would be
appreciated. Thanks!

--Peter
Re: How to use buckminster.lastTimestamp? [message #540661 is a reply to message #540522] Wed, 16 June 2010 21:18 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
It should not thriw an NPE for starters, can you log an issue and supply
the stackteace?

Some of the timestamp and qualifier replacements only work I'd the
source is in a SCM, and perhaps only when materialized by buckminster.

- henrik
Peter Nehrer <pnehrer@eclipticalsoftware.com> wrote:
> Hi,
>
> I'm trying to use the buckminster.lastTimestamp in my build system,
> but I'm running into an NPE. I can reproduce it with a simple setup:
>
> 1. a generic project called test.bucky, with the following
> buckminster.cspec:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cs:cspec xmlns:cs="http://www.eclipse.org/buckminster/CSpec-1.0"
> name="test.bucky" componentType="buckminster" version="1.0.0">
> <cs:actions>
> <cs:public name="test.buckminster.lastModified" actor="ant">
> <cs:actorProperties>
> <cs:property key="buildFile" value="test.xml"/>
> <cs:property key="targets" value="run"/>
> </cs:actorProperties>
> </cs:public>
> </cs:actions>
> </cs:cspec>
>
> 2. test.xml:
>
> <project default="run">
> <target name="run">
> <buckminster.lastTimestamp
> property="ts"
> readerType="svn"
>
> repositoryLocation="http://svn.apache.org/repos/asf/subversion/trunk/README"
> dateFormat="yyyyMMddHHmm"
> />
>
> <echo>last modified: ${ts}</echo>
> </target>
> </project>
>
> 3. run the action, get:
>
> [start test.bucky:buckminster$1.0.0#test.buckminster.lastModified]
> org.eclipse.core.runtime.CoreException:
> /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException: java.lang.NullPointerException
>
>
> When run from cmd line, the full stack is something like this:
>
> [java] ERROR: org.eclipse.core.runtime.CoreException:
> /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] org.eclipse.core.runtime.CoreException:
> /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.ant.AntRunner.handleInvocationTarget Exception(AntRunner.java:167)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322 )
> [java] at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
> [java] at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
> [java] at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
> [java] at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
> [java] at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
> [java] at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> [java] at
> org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> [java] at
> org.eclipse.equinox.launcher.Main.main(Main.java:1383)
> [java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
> [java] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
> [java] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
> [java] ... 25 more
> [java] Caused by: java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
> [java] ... 46 more
> [java] org.eclipse.core.runtime.CoreException:
> /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.ant.AntRunner.handleInvocationTarget Exception(AntRunner.java:167)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322 )
> [java] at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
> [java] at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
> [java] at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
> [java] at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
> [java] at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
> [java] at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> [java] at
> org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> [java] at
> org.eclipse.equinox.launcher.Main.main(Main.java:1383)
> [java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
> [java] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
> [java] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
> [java] ... 25 more
> [java] Caused by: java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
> [java] ... 46 more
> [java] /Users/peter/workspace/test.bucky/helper.xml:9:
> java.lang.NullPointerException
> [java] Caused by: /Users/peter/workspace/test.bucky/test.xml:9:
> java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:63)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
> [java] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
> [java] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
> [java] at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
> [java] at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
> [java] at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
> [java] at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
> [java] at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
> [java] at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> [java] at
> org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> [java] at
> org.eclipse.equinox.launcher.Main.main(Main.java:1383)
> [java] Caused by: java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
> [java] ... 46 more
> [java] --- Nested Exception ---
> [java] java.lang.NullPointerException
> [java] at
> org.eclipse.buckminster.core.common.model.ExpandingPropertie s.putAll(ExpandingProperties.java:375)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:247)
> [java] at
> org.eclipse.buckminster.core.RMContext.<init>(RMContext.java:242)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getSess ion(GenericReaderType.java:147)
> [java] at
> org.eclipse.buckminster.subversion.GenericReaderType.getLast Modification(GenericReaderType.java:101)
> [java] at
> org.eclipse.buckminster.ant.taskdefs.LastTimestamp.execute(L astTimestamp.java:57)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1337)
> [java] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306 )
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
> [java] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 9)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:662)
> [java] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:495)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:597)
> [java] at
> org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:318 )
> [java] at
> org.eclipse.buckminster.ant.actor.AntActor.internalPerform(A ntActor.java:252)
> [java] at
> org.eclipse.buckminster.core.actor.AbstractActor.perform(Abs tractActor.java:186)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager$D irectActionInvocation.execute(PerformManager.java:143)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.i nternalPerform(PerformManager.java:454)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:293)
> [java] at
> org.eclipse.buckminster.core.internal.actor.PerformManager.p erform(PerformManager.java:305)
> [java] at
> org.eclipse.buckminster.core.commands.Perform.internalRun(Pe rform.java:108)
> [java] at
> org.eclipse.buckminster.core.commands.WorkspaceCommand.run(W orkspaceCommand.java:91)
> [java] at
> org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(Abs tractCommand.java:194)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:3 17)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.run(Headless.java:1 36)
> [java] at
> org.eclipse.buckminster.cmdline.Headless.start(Headless.java :156)
> [java] at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> [java] at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
> [java] at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
[java] at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[java] at
org.eclipse.equinox.launcher.Main.main(Main.java:1383)


Is this the right way to use buckminster.lastModified? Any tips would be
appreciated. Thanks!

--Peter



--
- henrik
Re: How to use buckminster.lastTimestamp? [message #540677 is a reply to message #540661] Wed, 16 June 2010 23:19 Go to previous message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
On 6/16/10 5:18 PM, Henrik Lindberg wrote:
> It should not thriw an NPE for starters, can you log an issue and supply
> the stackteace?

Ok, done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=317127

> Some of the timestamp and qualifier replacements only work I'd the
> source is in a SCM, and perhaps only when materialized by buckminster.

That would be understandable, but I'm using the full svn url in this
case, not a workspace resource path (though the component itself is not
materialized from svn, just imported from local filesystem). Does this
restriction still apply?

Thanks.

--Peter
Previous Topic:plugin jar dependencies
Next Topic:Build errors on downloaded plugins
Goto Forum:
  


Current Time: Thu Aug 05 10:34:31 GMT 2021

Powered by FUDForum. Page generated in 0.02184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top